Values in steps
A step can use a value that is kept outside the sentence: a variable you set, a secret, or something an earlier step read from the page. Each is written the same way, as a name in double braces.
Enter {{email}} into the Email field.Variables
Section titled “Variables”A variable is a name and a value. Use one for anything that differs between environments, or that many workflows share, such as a test account’s email.
A name must be declared before a step can use it. There are two places:
- The project. Every workflow in the project can use it. A project variable has a default, and can have its own value on each environment, so
{{email}}can be one account on staging and another on production. Manage them in Variables and secrets. - The workflow. A workflow can declare its own variables. When a workflow and its project both have a variable of the same name, the workflow’s value is used.
In the editor, type {{ to open a menu of the variables you can use, with their values and where each is set.
A changed value reaches the next run of every workflow that uses it. You do not save the workflows again.
Secrets
Section titled “Secrets”A secret is a project variable whose value is never shown again after you enter it: not in the editor, not in a run, not through MCP. Use one for a test account’s password.
Enter {{password}} into the Password field.Two rules keep a secret out of screenshots and off other sites:
- A step can only type a secret into a field. A step that uses it any other way, such as in a check or in an address, needs a change.
- In a run, a secret is typed only into a password field on the environment’s own site. If the field the step found is anything else, the step ends Not found and nothing is typed.
Hold only test accounts’ passwords in secrets.
Remember a value the page shows
Section titled “Remember a value the page shows”Some values exist only once the test is running: an order number, a ticket number, a total. A step can read one from the page and give it a name. The steps after it use the name.
Remember the ticket number in the Repair booked banner as {{ticketNumber}}.Check that the page shows "Ticket {{ticketNumber}} booked".The remembering step says two things: what the value is (“the ticket number”) and where it is shown (“in the Repair booked banner”). It ends with as {{name}}, or into {{name}}. These forms also work:
Set {{orderNumber}} to the order number in the confirmation banner.Remember the Total in the order summary as {{total}}.The rules:
- Only steps after the remembering step can use the name.
- A name is set once in a workflow.
- The name cannot be one the project or the workflow already has as a variable or a secret.
- The name goes in braces, and the step says where the value is shown. “Remember the ticket number.” alone needs a change, and says so.
A workflow that breaks one of the first three rules is not saved. The step says which rule, and the workflow saves once it is fixed.
A remembered value can be typed, compared, or used inside quoted text:
Check that the Total on the receipt is {{total}}.Check that the banner shows {{ticketNumber}}.After a run, the remembering step shows the value it read.