Context Variables (scenario parameters)
Last updated
Last updated
In a manner similar to traditional programming languages, the platform supports context (local) variables. These variables are designed for use within specific scenarios, and their scope is limited to the execution of those scenarios. In all other cases, they are assigned a null value.
You can setup context variables when creating a scenario (START step settings, Parameters tab):
You can both write and read context variables in your scenario as if they were regular object fields. You can invoke this variable typing or choosing {{ContextVar.variableName}}
You can set the context variables values in Link scenario step:
As mentioned before, a variable receives value only during the scenario run. Therefore, when testing blocks via testing step, if set, the current value is returned.