Scenario variables
Scenario variables are useful when you need to reuse the same information multiple times. They make scenarios easier to manage and maintain.
Use scenario variables when you need:
- Temporary data that only exists during one scenario run
- To pass information between modules in the same scenario
- Data that doesn't need to persist after the scenario completes
- Simple counters or flags within a single scenario run
To use scenario variables, use the Set variable or Set variables tools in your scenario.
If you need to access the defined variable(s) in a different route than where they were set, use the Get Variable or Get Variables tools.
Create a scenario variable
You can create scenario variables in your scenario.
Click the Tool icon on the Scenario Builder toolbar to select the Set variable tool.
You can also click the giant plus in your canvas to select Tools < Set variable.
To set multiple variables at once, select the Set variables tool.
Fill in the following information:
Field | Description |
|---|---|
Variable name |
|
Variable value |
|
Variable lifetime | Select the lifetime of your variable:
|
If you are using the Set variables tool, repeat this for each variable.
Click Save to save your variable.






