Defining variables for automation

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

Screen Shot 2016-06-09 at 10.30.29

It is possible to rewrite simply this test using symbol, which as like variables prefixed with a column sign, as shown below:

Screen Shot 2016-06-09 at 10.30.53

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

Screen Shot 2016-06-09 at 10.35.20

Advertisements