Create a service test manually
You can create a service test without recording by simply adding the test elements as required and manually editing the test element details in the test editor.Before beginning
Verify that the Agent Controller is running on the local computer.
Tests are stored in test projects, which are test projects that include a source folder. You must create a test project before creating a test.
Ensure that you have a valid WSDL file in workspace. Verify WSDL files use the proper syntax for the test environment.
If you are using Secure Sockets Layer (SSL) authentication, ensure that you have any required key files in workspace.
If you are using SOAP security, ensure that you have configured the environment with the proper libraries and configuration files. To create a test:
- In the workbench, click File > New > Other > Test > Test Assets > Service Test or click the New Service Test
toolbar button.
- Select a project and then, in Test file name, type a name for the test. The name that you type is the base name for the recording, test, and other required files. You see these files in standard Navigator or the Java™ Package Explorer with their distinguishing suffixes, but you see only the simple (test) name in the Test Navigator.
- Click Finish.
- To add a Web service call, select the test element in the test editor, click Add, and then select Web Service Call.
- Select the WSDL file that corresponds to the call and click Finish.
- Edit the Web service call element and add all the required information to make a valid call.
- Select the Protocol tab to configure the transport protocol for this call. If necessary, click Change to configure the transport protocol for the entire test, including proxy and HTTPS parameters.
- On the Web service call, click Update Return. This opens the Return Preview window, displaying the data that will be used to perform the call.
- Click Update Test. This performs the Web service call and creates a message return element with the return data. If a message return element already exists, then it is updated with latest return data. The message return test element enables you to implement data correlation and content-based verification points.
Related
Service testing guidelines
Related tasks
Verify WSDL syntax compliance for JMS services Record a service test with the generic service client Record a service test using an HTTP proxy Create a service test from a BPEL model Create a service test for WebSphere MQ Create a service test for a plain XML call Change service test generation preferences