Show TOC Start of Content Area

Procedure documentation Testing Web Services with Pre-Defined Input Data  Locate the document in its SAP Library structure

Use

When you test a service endpoint, you can export the test data and save it in a test scenario in XML format. A test scenario contains information about which endpoint you tested, with what input data you tested it, and specifies the output that the endpoint returned.

You can re-use a test scenario to test the same endpoint with the same input data.

More information about exporting a test scenario: Testing a Web Service Operation.

Prerequisites

The test scenario for the service endpoint is available.

Procedure

       1.      In the Select Service step, choose Import Test Scenario Data.

The Test Data File Selection window opens.

       2.      In the File to Import field, choose the test scenario, and then choose Next.

       3.      By default, the WSDL option is selected and the URL field is automatically populated. The WSDL URL points to the endpoint available on the provider system to which the test scenario was exported.

Note

If you run the test scenario on a provider system (for example System B) which is different from the provider system (System A) to which the test scenario has been exported, then you have to enter a WSDL URL for the endpoint available on the provider system on which you want to test the endpoint (in our example, this should be System B).

If you do not know the WSDL URL for the endpoint, you can choose the WSIL option, and enter a WSIL URL in the URL field.

       4.      Enter the user name and password for the provider system, and then choose Next.

The system directs you to the Test Execution Status step.

       5.      Choose Execute.

If the test executes successfully, the system displays Ok in the Status Text field.

You can proceed with the following tasks:

       To make a preview of the test result, choose Result.

The system directs you to the Result step and you can see the test scenario result.

       To change the test scenario input data, choose Input Parameters.

The system directs you to the Enter Input Parameters step where you can change the parameters of the test scenario.

       To save your changes, choose Save and Return.

       To cancel your changes, choose the Test Execution Status step of the wizard.

Note

If you changed the input parameters of the test scenario, you have to execute the test again to get the output from the new test scenario. The system notifies you that the expected result differs from the executed one due to the changes.

       To make a preview of the difference between executed result and the expected result, choose Show Difference.

The system directs you to the Parameter Difference step. You can make a preview of the difference and accept the new result.

       To save the result in the test scenario, choose Accept Result and Return.

       To discard the result and leave the Parameter Difference step, choose Test Execution Status step.

       To re-export the test scenario, choose Export Test Data and save the test scenario document with the latest changes on your local machine.

To return to the start screen of the WS Navigator, choose the Select Service step.

 

End of Content Area