This article explains how to train your tests against DataTable scenarios.
Before you start
If you're editing an existing test, make sure the test is associated with the DataTable(s) first.
Select a scenario for your training session
Whether you are creating a new test or editing an existing one, select the DataTable and scenario for training. You can only train with one scenario (row) in a given training session. If you're looking for information on executing all DataTable scenarios, see running tests with DataTable scenarios.
For example, if you're training a test with different types of user accounts, you can select just one account scenario from the DataTable for training.
Before launching the Trainer or API Test Editor, select the DataTable and scenario you'd like to use for training.
Training a browser test with a specific DataTable scenario
You may also launch the mabl Trainer with the DataTable scenario used in a specific test run: click on the Edit test button on the test output page. This option makes it easier to investigate and debug a test run.
How to check scenario values during a training session
In the Trainer, you can check your scenario values by clicking on {x} (variables) > Manage variables. The manage variables modal shows the DataTable scenario and values used for the current training session.
DataTable scenario values in the variables modal
To check your scenario or switch scenarios for training, open the session configuration modal: {x} > Manage variables > Session configuration
In the API Test Editor, current scenario values are available from the Variables panel.