Webinar: Scaling QA with Generative AI. Register Now.
Turn your manual testers into automation experts! Request a Demo

How to setup global variables in testRigor?

When you work with test automation, parameterizing data or creating variables instead of hard coding test data can often be a more efficient practice, especially when you have test cases in which test data may change. Instead of updating all the test cases individually, which can take a lot of time and effort, you can edit global variables to update all instances within your test cases at once.

For example: Let’s parameterize username and password, which means if the credentials change, there is no need to update the test cases, but rather we can simply change the test data.

  1. Go to Test Data (by default Global Variables is selected)
  2. Click on +Add
  3. Select the variable type (for the username, we will use Text)
  4. Give the variable a name. We must take case sensitivity into account since this will be how we call the variable into our test case.
  5. Set the value of the variable.

The process to create the password variable is the same as the one described previously, with the difference that we select Hidden as the variable type instead of Text.

Users can also save files as variables.

Multiline variables can also come in handy.

This is how the variables will appear in the Test Data section.

Note: You can always edit or delete a global variable.

To call a variable within the test case, we always have to use the keywords stored value or saved value.

enter stored value "Username" into "Username"
enter stored value "Password" into "Password"
Related Articles

How to use AI effectively in QA

AI Features that are available for QA Our AI test case automation tool has implemented many ways to take advantage of using AI. ...

Codegen Suite Setup

Setup Account Plan Before getting started, you’ll need to enable codegen on your account plan. Steps: Enable the Code ...

How to Automate Native Desktop Testing with testRigor?

What is Native Desktop Testing? Native desktop testing refers to testing software applications that are designed to run directly ...
Privacy Overview
This site utilizes cookies to enhance your browsing experience. Among these, essential cookies are stored on your browser as they are necessary for ...
Read more
Strictly Necessary CookiesAlways Enabled
Essential cookies are crucial for the proper functioning and security of the website.
Non-NecessaryEnabled
Cookies that are not essential for the website's functionality but are employed to gather additional data. You can choose to opt out by using this toggle switch. These cookies gather data for analytics and performance tracking purposes.