Variables

Basic usage:

To add a variable, click on the + button at the top of a test, and click "add variable".

To call a variable, type ${variablename} in the value of an action. If the variable exists, you will see them highlighted like this:

Official variables

System variables:

  • ${random} - A random string that is unique in every instance.
  • ${random1} - A random string that is persisted throughout the test.
  • ${random2} - A random string that is persisted throughout the test.
  • ${random3} - A random string that is persisted throughout the test.

Auto-generated when recording:

  • ${baseUrl} - Will be auto-generated when starting a new recording.
Variables are currently only supported in the "value" of an action. They will soon be supported in the selector as well.
Passing variables from the test into the component is only partially supported, but will be fully supported soon.
Currently, only string variables are supported. Numbers (for using as MS in a pause action or a timeout) will be supported in the future.
Group 6Record it…Play it…Generate it…GeneratorsSelector AlgorithmsPrivate modeTest organizationTeamsWorkspacesDedicated supportTest data storageDebugger toolsAdaptable TestsCLI tools and APIWhite-labeled codeVariablesMulti-test playbackManual testsComponents