How to test a virtual service created from WSDL?

book

Article ID: 126268

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)

Issue/Introduction



I am able to create a virtual service from WSDL, but can't get a valid response when sending a request.
How to test a virtual service created from WSDL?

Environment

Release:
Component: ITKOTF

Resolution

We can create a test case from a WSDL file from different ways.

With DevTest Workstation we can use the WebService Execution step, provide the WSDL file or URL used to create the VSM and set the endpoint to the virtual service model running in the VSE.
1. Create a new test case. Select the menu File, New, Test Case. Provide a name to the test case.
2. Right click in the test case and add the Web Service Execution (XML) step under Web/Web Services.

<Please see attached file for image>

User-added image

3. Provide the WSDL URL or file under WSDL URL field and the correct Endpoint. In this case it needs to be your VSE Server address, the port the VSM is listening and the proper base path, that can be verified in the HTTP/S Listener step of your VSM. The other fields should be completed automatically if the WSDL URL/file can be used.

<Please see attached file for image>

User-added image

4. Execute the test by selecting the green arrow at the top right side or running the test case in the ITR.

<Please see attached file for image>

User-added image


Another option is to use the option "Create a Web Services Test" from the Workstation Quick Start:
1. Select the Quick Start Icon.
2. Select the Create a Web Services Test option.
3. Provide the WSDL URL or the WSDL file to create the test case.
If there are no issues to load the WSDL file, the Operations will be automatically loaded.
4. If needed, change the test name on the bottom of the screen and select the green arrow to get the test case created.

<Please see attached file for image>

User-added image

Attachments

1558690573184000126268_sktwi1f5rjvs16gax.png get_app
1558690571398000126268_sktwi1f5rjvs16gaw.png get_app
1558690569440000126268_sktwi1f5rjvs16gav.png get_app
1558690566589000126268_sktwi1f5rjvs16gau.png get_app