Store Variables


Stored variables in RESTful API testing are variables that are used to store data from a response body or response headers. This data can then be used in subsequent requests or assertions. You can use this throughout the test case or test session.


Store variable from Response Body

  1. Send an API request, and at the bottom of the screen, the response body will appear for the request you sent.
  2. Click Outline, then select Store Variable to upload it directly into Stored Variables tab.

store response body in tab

NOTE:
  • Navigate to Stored Variables > Response Body tab, and click Store Variable to add the field manually.

Store Variable in Headers tab

  1. Click Store Variable in the Headers tab. Enter the variable name and enter the header name. Click Create to store variable.
  2. At the bottom of the page, click the Headers tab, mouse over to the response header, and click store variable; it will update in the stored variables headers tab.

Store header in Tab