Custom variables allow you to share a single value across multiple tests. You might define a custom variable called "my_app.title", define a corresponding value such as “RainforestQA”, then easily drop it in to any test step to share the same value across multiple steps and tests.

If you need to update the value, simply update the custom variable in the Settings → Variables page within your Rainforest account. This will update it anywhere the custom variable placeholder was used!

How to create a new custom variable

To add new custom variables (see example below): 

  1. Select the "Step Variables" option from the Settings menu. 
  2. Click on the "Add New +" button on the right side of "Custom Variables" to create new variable.
  3. Give your custom variable a name. Note that the Name should be descriptive and easily understood, as this is the Name you will initially select when inserting your variable into your test. 
  4. Give your variable a description that is easily understood by your other team members. 
  5. Create your rows of custom variables. Note that each row is a field:value pair, and as noted above, you’ll want to make sure that the FIELD name is descriptive and non-vague. 

How to add a custom variable into a test

Within the step editor, click '{} step variables' to bring up the step variables menu:

Click on any of the step variable groups to reveal all the step variables within it:

Finally, click the variable you wish to insert.

Did this answer your question?