Show TOC

Procedure documentationExecuting a Test Scenario Locate this document in the navigation structure

 

You can load a test scenario in Web Services Navigator (WS Navigator) and test all the services it contains. When the system receives the service responses, it checks if they are identical to the expected results. In case they are different, you can choose to accept the responses, or to exclude particular operation parameters from the check.

Prerequisites

  • You have loaded a scenario in WS Navigator in one of the following ways:

    • You have just created a new scenario.

    • You have loaded a test scenario file using   Test Scenario   Editor   Import  .

  • You know the WSDL or WSIL URL, the user name, and the password necessary to access the tested services.

    To access the WSIL service on SAP NetWeaver you should use a user account that has the WSILSecurityRole action.

  • WS Navigator is allowed to access the systems on which the tested services run. More information: Configuring Web Services Navigator White List

Procedure

Running a Test Scenario
  1. Choose   Test Scenario   Execution  .

  2. Choose Change Service Access and enter the information necessary for accessing the services in the scenario.

    Consider the following points:

    • You need to provide this information only the first time you run a scenario. The system keeps it until the scenario is loaded in WS Navigator.

    • You can omit this step if you have provided the service access information for the current test scenario during a previous execution of the scenario, or in the test scenario editor.

    Note Note

    If you want to repeat the test for the same services deployed on another system, you should repeat this step to specify the URL of the WSIL document for the system you want to test.

    End of the note.
  3. Choose the Invoke button.

    The system starts to send service requests in the order in which they are presented in the test scenario. The scenario executes asynchronously, which benefits the execution of time-consuming scenarios.

    You can halt the scenario execution using the Cancel button. When the test finishes, the system compares the responses with the expected results and provides detailed statistics.

Reviewing and Accepting Test Results
  1. Select an operation from the list.

    The service response appears in the Test Scenario Execution Details screen area.

  2. Review the response details:

    • Choose Show Expected Test Result if you want to compare the response with the expected results.

    • Choose Input Parameters if you want to review the test data sent to the selected service operation.

  3. Manage the test results when they are different from the expected results:

    • Choose Accept Results to save the current service response as an expected test result in the test scenario. The system marks the test of the selected operation as successful. You can make additional modifications to the expected test results in   Test Scenario   Editor   Test Scenario Execution Details   Expected Result Data  .

    • Choose Add to exclude list to prevent WS Navigator from checking the correctness of the corresponding response parameter. The system modifies the test scenario so that the value of the response parameter should always be accepted as correct. You can make additional modifications to the list of parameters excluded from checking in   Test Scenario   Editor   Test Scenario Execution Details   Exclude List  .

Note Note

You can save the changes to the scenario using   Test Scenario   Editor   Export  .

End of the note.