If there is a Data-driven variables section on the flow details page, it means that the flow uses "flow data-driven variables." These are variables that have their value set from a different source, such as a prior test step, an environment variable, or a DataTable scenario.
Data-driven variables section on the flow details page
mabl stores a default value for the variable with the flow. If the same flow is used in a different test where the variable hasn't been defined, the flow uses the default value for this variable. For this reason, it is important to construct your tests such that a flow data-driven variable's value is set correctly for the context the flow is used in.
Behavior of flow data-driven variables
The primary function of flow data-driven variables is to serve as a backup in case the flow gets imported into a test where the variables haven't been defined.
When you import a flow with data-driven variables into a test, the flow data-driven variables become test data-driven variables when you save the test. If you delete the test data-driven variables that came from the flow, the test falls back to the flow data-driven variables as a backup.
Updating flow data-driven variables
If you need to update the default value for a flow data-driven variable, you can take the following steps:
- Go to Tests > Flows
- Select the flow you would like to modify
- Click on the Edit variables button
- Update the default values
- Click Save to confirm your changes
Edit flow data-driven variables