Enter Variable
This command is not part of the Default Command Set. You have to register the Incubator Command Set first (see Configuration).
Requires version 3.0
Prompts the user to enter a value for a variable at test runtime.
Use this command when a value (e.g. a one-time password or a dynamically assigned value)
cannot be known in advance and must be supplied interactively during the test run.
The variable name must start with '$'. For secret variables (e.g. passwords), prefix the
variable name with '$$' — Wetator will mask the value in reports.
Parameters
variable-name
The name of the variable to set (required).
Must start with '$'. Use '$$' prefix to mark the variable as secret.
Must start with '$'. Use '$$' prefix to mark the variable as secret.
hint-text
An optional message shown in the input dialog to guide the user.
If omitted, a default message is shown.
Examples
Prompt for a one-time password during the test run
Prompt the user to enter a one-time password, store it in the secret variable '$$otp', and then use it to fill in the OTP field.
| Command | Parameter | Optional Parameter | |
|---|---|---|---|
| enter-variable | $$otp | Please enter the one-time password from your authenticator app | |
| set | One-Time Password | ${$otp} | |
| click-on | Verify |
