Open Test Data Variables
Add a new variable
Mark as sensitive (optional)
3
, true
, or "hello world"
and click Save.
var1
:
VARS.
) to come up with the value that will be assigned to this new variable
VARS
object
VARS.<name>
to refer to the variable with name <name>
. VARS
is a JS object so you can use it like how you would any other JS object.
VARS.plan
is ‘premium’ skip the upsell page”.
✔️ Do | ❌ Avoid |
---|---|
Give variables descriptive, lower‑camelCase names (totalRevenueToday ). | Abbreviations that will be hard to remember later (trtd ). |
Store secrets in project variables marked Sensitive. | Hard‑coding credentials directly in steps. |
Re‑use variables instead of duplicating text across steps. | Updating the same literal value in many places. |
Reset or regenerate variables at the start of each run when needed. | Relying on state left over from previous runs. |