Environment variable

Create environment and environment variable:

An environment is a set of variables that allow you to switch the context of your automation script.

Go to Environment setting section in sidebar menu.

Click Add button to create a new environment.

then input variable and value

If you want to switch to another environment, select your desired environment in dropdown list

You can edit name, description and delete an environment by Edit and Delete button.

Use environment variable in automation test:

To use environment variable in automation test, first you need to create parameters for step definition. Refer to this link to create parameters.

Back to scenario step, use syntax “=${env}” to input environment variable into a step scenario. This value will be called when running automation

When execute automation test, select the desired environment: