Show TOC

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

 

When you want to remove a scenario step, or to change the order in which Web Services Navigator (WS Navigator) executes the scenario steps, you can use the scenario editor. You can also use the scenario editor when you want to change the way a particular scenario step is run.

For each step you select in the editor, you can do one or more of the following:

  • Modify the test data for the service request.

  • Modify the expected test results which WS Navigator compares with the service response.

  • Modify the list of operation parameters for which WS Navigator always accepts the response results as correct.

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.

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

Procedure

Editing a Scenario
  1. Choose   Test Scenario   Editor  .

  2. Edit the scenario list:

    • To change the order in which WS Navigator executes the scenario steps, use the arrow buttons to move a particular step up or down in the list.

    • To remove a single step, choose Delete (Delete).

    • To remove all scenario steps at once, choose Remove All.

Note Note

Removing scenario steps cannot be undone.

End of the note.
Editing a Scenario Step
  1. Choose   Test Scenario   Editor  .

  2. Select the scenario step you want to edit.

    You may need to provide WSDL or WSIL URL, user name, password, and timeout.

  3. In the Test Scenario Execution Details screen area, modify the details of the selected step:

    Caution Caution

    Choose Save Changes every time you modify the execution details. The editor saves the changes only for the currently selected tab in Test Scenario Execution Details. The changes will be lost if you select another step in the editor, or if you switch from the editor to other part of WS Navigator.

    End of the caution.
    • Choose Input Parameters to modify the test data sent to the service.

      You can add or remove single parameters or arrays of parameters as necessary. To enter test data manually, deselect the Skip checkbox next to a parameter and enter a value.

      When you want to clear all test data and remove the input parameters you have added, choose Reset.

    • Choose Expected Result Data to modify the data that WS Navigator uses to check if the service response is correct.

      Similarly to the input parameters, you can add or remove response parameters and modify their values.

    • Choose Exclude List to modify the set of response parameters for which WS Navigator does not check if the response is identical to the expected result.

      By default, the list contains operation parameters added after test scenario execution using Add to exclude list. To add a parameter manually, use the service response structure available in Expected Result Data and use the forward slash (/) character as a delimiter.