Let’s see how to add test steps to test cases and to change request parameters. We will modify “/pet/findByStatus-Request 1 Test Case” . We will add a REST Request test step to it.
Add Request Test Step
In the Navigator tree on the left, hover over the /pet/findByStatus-Request 1 Test Case node and click the hamburger button ().
In the flyout menu, select the REST Request test step. To find it quickly, you can start typing the name in the Search field:
In the subsequent dialog, enter the test step name, select the template request for the test step you are creating, clear assertion checkboxes and click Add Test Step:
The request will be added to the test case:
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:
In the Navigator tree, select the GET Request test step.
In the request editor, click somewhere within the Value cell of the status row and type available. Press Enter to confirm the change.
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:
Now, we are ready to run our test case. We will do this on the next step.