Skip to content
Testsigma DOCS

Test Data

Test Data Type: Runtime


In Testsigma, Runtime Test Data allows you to save data gathered while running a Test Case. For example, you can utilise the Runtime Test Data Type to copy data from one page and confirm its presence on another page. The Runtime Test Data Type in Testsigma lets you dynamically store and use data during the test. You can keep this data as a runtime variable, making automated tests more flexible and adaptable.



Prerequisites


  1. Use the Store keyword in NLP to create a new step in the test case for saving a dynamic value as Runtime data.

  2. Remove the test data placeholder, enter the text by storing the data in the text, and click Create Step to generate a runtime variable. Store Variable

  1. Use the NLP step Store the value displayed in the text box element field into a variable test data.
  2. Click the element in NLP to select or create an element and replace the test data placeholder.
  3. Enter the text to store the data in the text field.
  4. NLP stores the value displayed in the text box with the UI identifier Email address Input (element) into the variable user-robert (test data).

  1. Use NLP to create a new step in the Test Case and include a placeholder for test data.

  2. Click the test data placeholder to replace it, and then select the $ Runtime from the Test Data Types dropdown menu. Runtime Test Data

  3. A list of runtime variables already created in the project will appear in the Runtime Variables overlay.

  4. Select the Runtime Variable from the overlay or search for a runtime variable and insert it into the test steps. Select Variable

    You can also click the Switch Project button in the overlay, select the Project, Application, and Version, and use a Runtime Variable created in other projects.


  1. Bill Payment: After successfully making the payment, you need to save the system-generated Bill ID and use it in the next step for verification.
Action to useStore the value displayed in the text box element field into a variable test data.
Actual statement usedStore the value displayed in the text box Bill_ID field into a variable billid_no.
Usage for retrieving the valueEnter $ billid_no in the Enteryour::BillNumber field.
  1. SSID Creation for Router: You want to save the SSID used in a form on the first page so that you can insert it in a form on the last page.
Action to useStore text from the element element into a variable test data.
Actual statement usedStore text from the element SSID into a variable ssid_no.
Usage for retrieving the valueEnter $ ssid_no in the Enteryour::SSIDNumber field.