Composite Application Validation System (CAVS) is part of the
Application Integration Architecture Foundation Pack and with CAVS you
can test your SOA Composites like SOAPUI or the SOA Test Suite. SOAPUI
can test your composite services and it can mock an other service but
you need to redeploy some composites to override the endpoints ( so it
uses the mocked services endpoints ). The SOA Test Suite is also Ok but
is focused to 1 composite. An AIA Process usually contains many
composites. So for AIA you need a Test framework who can send a request
and can simulate some Composite adapter references services and without
redeploying any composites. CAVS can do this for you. Test definition In the definitions tab you can see your already defined tests and simulators. Press the Create Test button. Add a request between the cavs:CAVSRequestInput_1 element, you can add more then one request. Add a cavs:CAVSRequestInput_2 element etc. Important press Generate Xpath so it will generate the validation rules for this test. When you pressed Generate Xpath on the response window you can see all the validations rules ( these based on the response message) You can add your own. Group Definition With a Group Definition you can combine test definitions to one group test Assign some test defintions to this group definition. You can execute the group definition and look at the instances tab for the results. Simulation Definition With a simulation you can for example emulate an reference adapter service of a Provider ABCS. To make an simulator go to the definition tab and press the create simulator button. Provide the values The simulator part is finished, now you can assign this simulator to a ABCS. When you create an ABCS with the JDeveloper AIA service constructor, it will create a AIAServiceConfigurationProperties.xml file. This file contains the endpoint url's and if it needs to route the reference to a CAVS simulator. The AIA deployment framework will add this AIAServiceConfigurationProperties to the AIAConfigurationProperties.xml file ( located in AIA_Home\aia_instances\AIA_Instance\AIAMetaData\config ) and also located in the MDS in the config folder To route every request to a simulator you need to go the AIA homepage and press the Go button of the setup window. Go the AIA Configuration Tab. When you open the AIAConfigurationProperties.xml you can see that the ABCS properties are changed The last part is to combine Testing and Simulation by making an Routing Setup. Routing Setup In a Routing Setup you can add particular simulation to one or more ABCS and use this in a test definition. Create a Routing Setup And open the Test definition and lookup the Routing Setup This will set the simulator on the ABCS's before the test is executed. That's all and hope this gives you a quickstart in the AIA CAVS tool. |
Friday, May 11, 2012
Test your services with AIA CAVS
########
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment