Variables

Reuse values across steps and environments with {{NAME}} placeholders.

Using variables

Write {{NAME}} in any step field to insert a variable. Values are resolved when the step runs.

Variables can be set on the organization, a project, a suite or a single test. Set variable, Extract from element and Extract from JavaScript also create variables during a run.

Resolution order

When the same name is defined in several places, the most specific value wins:

  • Values passed with an API or CI run
  • Test variables
  • Suite variables
  • Project variables
  • Organization variables

Environments

Variables can have environment-specific values. At each level, a value set for the active environment replaces the general value. A run uses the environment it was started with, or the organization's default environment.

Built-in values

These names are generated at run time and need no setup:

  • {{TIMESTAMP}}: the current time in milliseconds, useful for unique emails
  • {{ALPHANUMERIC}}: a random string of 16 lowercase letters and digits
  • {{TOTP:secret}}: a one-time passcode generated from a two-factor secret

Secrets

Test and suite variable values are encrypted at rest. For passwords, also tick Make this value private (Hide in display) on the Assign step so the value is masked in the editor.