3. Modify Functional Test

This step shows how to add test steps to test cases and update their request parameters.

Add request test step

  1. In the Navigator tree, hover over the test case node and click the hamburger menu (flyout-ellipsis.png).

  2. In the flyout menu, select the REST Request test step. To find it faster, start typing its name in the Add Test Step search field.

    Flyout menu in ReadyAPI showing the REST Request test step highlighted, with the Search field in use to quickly locate the step
  3. In the Add Request Test Step dialog:

    • Enter a name for the new test step.

    • Select the template request to use.

    • Clear any assertion checkboxes you don’t want.

    • Click Add Test Step.

    Dialog box for adding a Request Test Step in ReadyAPI, showing fields to enter the step name, select a template request, clear assertion checkboxes, and click the Add Test Step button

    The new request now appears in the test case.

    ReadyAPI displaying the newly added request step listed among other test steps in the Navigator tree

Modify request parameters

Now, we have two requests that simulate the same operation. Let’s change their parameters so that the requests return different sets of data:

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

  2. In the request editor, click somewhere within the Value cell of the status row and type available. Press Enter to confirm the change.

    Functional testing of web services with ReadyAPI: Set parameter values
  3. Similarly, select the second request in the test case, and enter sold in the Value cell for the status parameter. Press Enter to confirm the change:

    Functional testing of web services with ReadyAPI: Set parameter values

Now, we are ready to run our test case. We will do this in the next step.

Prev Next

See Also

Publication date: