In Testsigma, it is possible to fetch data or perform actions via REST API calls along with normal Test Steps so as to provide maximum flexibility and control in your tests. If some of the test data is to be fetched dynamically from an API Endpoint, this is the best way to do it.


Let us explain with the help of a simple and rudimentary example. We will be performing the following steps:

1. Validate the status and store the server name in the Header into a variable

2. Navigate to Wikipedia Website

3. Search for the server in Wikipedia




1. Validate the status code and store server name inside Header response into a run-time variable


We will check the Response Status Code of a GET request to https://app.testsigma.com and verify the Status Code to be 200 (SUCCESS). We will also store the Server name from Response Header into the run-time variable named server_name using the following REST Test Step.


For more details about storing Run-time Test Data from REST API Response, please check the following article:

Storing Test Data from REST API Response in Testsigma


For more details about using Run-time Test Data in REST API Test Steps, please check the following article:

Using Run-time Test Data in REST API Test Steps in Testsigma




2. Navigate to Wikipedia Website


We can navigate to Testsigma using the template - Go to https://www.wikipedia.org




3. Search for the server in wikipedia


We have already stored the name of the Server from Header Response in Step 2 into a run-time parameter variable named server_name. Now we can use the same and search the Server name in Wikipedia for more details about it. We can use the template - Type $|server_name| in the wikisearchbox field