Creating 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 you begin

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 your workspace. Ensure that the 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 your workspace.

If you are using SOAP security, ensure that you have configured the environment with the proper libraries and configuration files.

Procedure

  1. In the workbench, click File > New > Other > Test > Test Assets > Web service test or click the New Service Test New Service Test icon toolbar button.
  2. Select a project and, in Name, type a name for the test, and then, click Next. 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.
  3. Select a web service request to create the test for. If you select Web service request or one of the options in Specification-based structure, specify a WSDL port and then configuration properties for the HTTP protocol. If you select, XML request and Text request, specify the configuration properties for the HTTP, JMS, WebSphere MQ, WebSphere Java MQ, and Microsoft.Net protocols.

    For information about the configuration properties of each protocol, see the topics in Sending service requests with the generic service client.

  4. Click Finish. The service test is created.
Feedback