Show TOC

Procedure documentationTesting a Web Service Operation Locate this document in the navigation structure

 

To test a Web service interface, you should choose one of its operations and provide input parameters for this operation. When the test completes, you can save it for standalone use, or add it to a test scenario.

Prerequisites

You have selected the Web service interface you want to test.

Procedure

  1. Choose the Operation step on the Service Test tab page.

  2. Choose the operation you want to test from the list in the Operations screen area.

    Note Note

    To test the selected operation without providing test data, choose the Result step in the navigation area.

    End of the note.
  3. Choose Next to proceed to the Input Parameters step.

    When the selected operation has input parameters, they appear in the Parameters screen area. You can provide test data in one of the following ways:

    • To enter test data manually, deselect the Skip checkbox next to a parameter and enter a value.

    • To import a test data file saved from a previous test of the operation, choose   Import   Test Data  .

    • To import test data from an existing test scenario file, choose   Import   Test Scenario  .

      You can specify a scenario test data file that contains test data both for the currently selected operation and for other services and operations. The importing tool selects only the test data for the currently tested service interface and operation. When the scenario file contains two or more sections with test data for the selected operation, the importing tool selects the test data in the first section from the beginning of the file.

  4. Choose Next to proceed to the Result step.

    You may need to provide a user name and password. The system sends the test data to the Web service. On successful completion of the test you can compare the test data and results, and the inbound and outbound SOAP messages and HTTP logs.

    • To save the SOAP message that was sent to the service for future tests, select the XML Content tab in the Input Parameters screen area and choose Download as File. You can later use the saved file with the   Import   Test Data   option described above.

    • To repeat the test with the current test data, choose Invoke.

    • To save the current test to a scenario, choose Add to Test Scenario. More information: Creating a Test Scenario