Show TOC

Procedure documentationExecuting Test Scenarios Locate this document in the navigation structure

 

You can load a test scenario in Web Services Navigator (WS Navigator) and test at once all Web services for which it contains information. When the system receives the responses from the Web services, 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 Web services.

  • WS Navigator is allowed to access the systems on which the Web 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 Web 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 Web 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 Web 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 requests in the order in which the Web services 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, WS Navigator compares the responses with the expected results and provides detailed statistics.

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

  2. Choose the Result tab in the Test Scenario Execution Details screen area.

    The Web service response details appear as a tree structure.

  3. Review the response details:

    • To collapse or expand the whole structure, use the buttons at the right end of the toolbar in the top part of the Result tab page.

    • 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.

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

    • Choose Accept Results to save the current response as an expected test result in the test scenario. The system marks the test of the selected Web service 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  .

    • You can copy test results by choosing corresponding option from the Change (Change) menu.

      You can also do this with the input parameters.

Note Note

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

End of the note.