Show TOC

Executing Test ScenariosLocate this document in the navigation structure

Use

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 Start of the navigation path Test Scenario Next navigation step Editor Next navigation step Import End of the navigation path.

  • 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 Start of the navigation path Test Scenario Next navigation step Execution End of the navigation path.

  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

    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.

  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 Start of the navigation path Test Scenario Next navigation step Editor Next navigation step Test Scenario Execution Details Next navigation step Expected Result Data End of the navigation path.

    • 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 Start of the navigation path Test Scenario Next navigation step Editor Next navigation step Test Scenario Execution Details Next navigation step Exclude List End of the navigation path.

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

      You can also do this with the input parameters.

Note

You can save the changes to the scenario using Start of the navigation path Test Scenario Next navigation step Editor Next navigation step Export End of the navigation path.