To manage variables for your browser or mobile test in the mabl Trainer, click on {x} > Manage variables. The variables modal shows all the variables available in the test and their initial and current values. From the variables modal, you can…
The variables modal
How to override variable values
To override variable values in the current training session, enter a new value in the Current variable value column. Variable overrides do not persist outside of the current training session.
Test-generated variables, which include variables created from string template, element property, JavaScript, and API steps, do not do not have an initial value. These variables show [not yet evaluated] for the current value until the step executes in the Trainer.
How to update the session configuration
To make changes to a test's configuration during the training session, including application, environment, URL override, DataTable scenario, and credentials, update the session configuration: {x} > Manage variables > Session configuration.
Managing session configuration
For example, if you are training a test with a DataTable scenario, but you want to make sure the test works with a different scenario, you could apply the different scenario in the session configuration modal and confirm that the test still works as expected.
If the test is not associated with a plan, mabl saves the current configuration with the test as default for subsequent edit sessions.
How to add data-driven variables
If you're implementing shared variables or DataTables, you can create data-driven variables to serve as placeholders for the values you expect to be passed during the run. See the article on managing test data-driven variables for more details.