variants | exampleContext | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Variants (defined in the frontmatter of a feature) can be used to run the same feature in different variants. For every entry in variants, the feature file is run.
The properties defined per variant are available in using thevariant.<name>
placeholder.
Given network is ${variant.nw}
and modem is ${variant.modem}
These are useful in case variable placeholders need to be constructed.
Given network is <variant.nw>
and modem is <variant.modem>
Given the placeholder <variant.nw>
is embedded in another placeholder:
${tracker.<variant.nw>.id}/pgps/get
{
"thingName": "${tracker.<variant.nw>.name}"
}