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:

envv:
    - "df.myint:randomInt(1,2)"
    - "df.myseq:sequenceInt(10,100)"
    - "df.mystr:randomString(3,5)"
    - "df.mybool:randomBool()"
    - "df.myenum:randomList(ignore,success,fail)"
    - "df.randomTimeoutMs:randomInt(100,5000)"

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

  1. randomInt - randomInt(from,to)

  2. randomString - randomString(minimum string length, maximum string length)

  3. sequenceInt - sequenceInt(from,to) - every call to this varaibles incrases the variable value in a sequence

  4. randomBool - randomBool()

  5. randomList - randomList(comma separated values) - for example, randomList(ignore,success,fail)

Last updated

Was this helpful?