In ScenarioBuilder v126.96.36.199, the following improvements have been made regarding variables:
- Set a Variable action has been split up into multiple actions and organized by type.
- Values of variables are now set when the Set Variable step executed, not when the step that calls on the variable is executed.
1. Variable Actions
Previously, ScenarioBuilder contained the following action to set a variable:
In ScenarioBuilder v188.8.131.52, the "Set A Variable" action has been split up and organized by type:
These actions can be found under the "Conditionals and Variables" section in the Actions menu on the right.
To use the action, select the action for the type of variable that you need.
Set Generic Variable - add a generic pre-defined variable to your scenario.
Set Date Variable - add a pre-defined date variable to your scenario.
Set Time Variable - add a pre-defined time variable to your scenario.
Set Environment Variable - add a pre-defined environment variable to your scenario.
Set a Random Variable - add a pre-defined random variable to your scenario.
Properties of Set Variable actions
Each of the Set Variable actions have the following properties:
Variable Name - Provide a meaningful name for the variable.
Variable Value - Provide or select a value or a type for the variable.
Variable Scope (new in v184.108.40.206) - Specify the level at which you want to access your variable.
Encrypted - Check the box to encrypt the variable value.
Scenario Section - This is for Global Scenarios only. Specify the section name that can be called from other scenarios.
3. Values of Variables
In previous versions of ScenarioBuilder, the value of a variable was set when an action/step called on the variable. Now beginning in ScenarioBulder v220.127.116.11, the value of a variable is set when the set variable action is executed.