Envv
Often during a flow execution the tester want to use a reusable context (variable) that can be used both as values for configurations, messages, or for checks/testing.
Envv is configured as a list of variable definitions:
Varaible format - df."variable-name":function(values)
For example, to create an envv of a random int from 100 to 500 => df.myint:randomInt(100,500)
How to use envv
The envv can be used as part of the values for configurations, message, checks and tests just by setting the envv name in {{}}.
For example, using the above random int from 100 to 500, just set as {{df.myint}}
as value.
The following envv functions can be used
randomInt - randomInt(from,to)
randomString - randomString(minimum string length, maximum string length)
sequenceInt - sequenceInt(from,to) - every call to this varaibles incrases the variable value in a sequence
randomBool - randomBool()
randomList - randomList(comma separated values) - for example,
randomList(ignore,success,fail)
Last updated
Was this helpful?