Defining variables for automation

Applies to CucumberStudio Cloud, and to Enterprise ver. 3.3. Last updated on November 23, 2020

It is sometimes useful to define values that will be used during automation but make the tests unclear (for example a staging environment url such as in the test below):

Defining CucumberStudio variables for automation

Click the image to enlarge it.

It is possible to rewrite simply this test using symbols. They are prefixed with a column sign, like variables, as shown below:

Defining CucumberStudio variables for automation

Click the image to enlarge it.

Now, when exporting the code for automation, the scenario will use a variable called staging that can be set in the automation layer:

Defining CucumberStudio variables for automation: Exported code

Click the image to enlarge it.

Highlight search results