CAVS (Composite Application Validation System) is mainly used for simulating your integration points for composite testing. It can basically mimic the end system and validate your request and send valid response upon successful validation.
- It is a servlet. URL (http://host:port/AIAValidationSystemServlet/syncresponsesimulator). You can configure multiple simulator instances and it get recognized by simid parameter.
- It is part of AIAApplication ($CONTAINER_HOME/applications/AIAApplication/ValidationSystemServlet.war)
- Execution logs can be found at ($CONTAINER_HOME/application-deployments/AIAApplication/oc4j_soa_default_group_1/application.log)
How to use:
Let's say we have simple Echo service, which returns upper case data back. We want to validate the request that, it has input and return the static response back.
- Login to AIA console (http://host:port/AIA)
- Click on Validation System (GO)
- Click on Create Simulator
- Enter the request and response as below (Make sure to include namespace for both request and response and don't remove CAVS namespace)
- Click Next
- Click on Request and Generate XPath (this will generate xpath for all possible combinations)
- Make changes to validation as necessary. E.g. I made one nodekey (which is required) and just changed "equal to" to "is valid" operation for input.
- Click on Save and record simulator id number
- Now it is ready to tested with SOAP UI and end point would be http://host:port/AIAValidationSystemServlet/syncresponsesimulator?simid=<<>> or http://host:port/AIAValidationSystemServlet/syncresponsesimulator (generic). If you use generic one, it will compare against all simulator to get exact match
- Out of the box always have support for real or CAVS endpoint for any partnerlink. If you are implementing custom code make sure you use dynamic parterlink for AIA so that it has CAVS support (more information at: http://chintanblog.blogspot.com/2010/03/aia-bpel-dynamic-partnerlink-lookup.html)
- In AIAHome/config/AIAConfigurationProperties.xml file, make following changes: