3. Modify Functional Test

Add a request test step to a test case and update its parameters.

Add request test step

  1. In the Navigator, hover over the test case, click the ellipsis , and select Add REST request.

    Tip

    Use the search field to quickly find the REST request option.

    Test case selected in the Navigator with the context menu open, highlighting the Add REST request option to add a new REST test step.
  2. In the Add REST Request Test Step dialog:

    1. Enter a name.

    2. Select a request.

    3. Clear unnecessary assertions.

    4. Click Add Test Step.

    Add REST Request Test Step dialog showing request selection, test case selection, and Add Test Step button.

    The new request appears under the selected test case in the Navigator.

    Navigator panel showing REST Request 2 added under a test case.

Modify request parameters

You now have two requests for the same operation. Update their parameters to return different results.

  1. In the Navigator, select the GET Request test step.

  2. In the request editor, in the Value cell for the status parameter, enter available. Press Enter to apply the change.

    Request editor showing the status query parameter updated to available.
  3. Select the second request in the test case. Then, in the Value cell for the status parameter, enter sold. Press Enter to apply the change.

    Request editor showing the status parameter set to sold for REST Request 2.

Next step

Run the test case to verify that each request returns different results.

PrevNext

See Also

Publication date: