Use env, vars, and random with simple JavaScript to compose dynamic values in step fields.
env.*
: environment variables from your selected Environmentvars.*
: test variables produced by earlier steps (e.g., Extract Text)random.*
: built‑in random data generators (email, name, uuid, etc.){{ ... }}
. You can mix text with expressions, chain methods, and apply simple JavaScript.
{{
opens an autocomplete with tabs for Env, Vars, and Random. Select an item to insert it automatically.
env.*
): Read‑only key‑values defined in the selected Environmentvars.*
): Values saved by earlier steps in the same test caserandom.*
): Utilities like email()
, firstName()
, uuid()
, number(min,max)
{{ ... }}
Hello {{ vars.firstName }}!
{{ vars.email.trim().toLowerCase() }}
{{ env.API_BASE }}/users/{{ vars.userId }}
{{ random.email() }}
{{ env.APP_URL }}/account/{{ vars.accountId }}
{{ vars.username.trim().toLowerCase() }}
{{ env.TAGS.split(',').map(t => t.trim()) }}
{{ vars.displayName || env.DEFAULT_NAME }}
Hello {{ vars.firstName }} {{ vars.lastName }}!
env.*
(read‑only)trim()
/toLowerCase()
for robust comparisons in verifications{{ }}
. The following are directly available:
env.*
(read‑only)vars.*
(alias: testVars.*
)random.*
{{ ... }}
without additional quotes; the editor handles string composition{{
and }}
are present and balanced