By playing test steps in the mabl Trainer, also known as Trainer playback, you can verify that the test steps produce the expected result before running the test locally or in the cloud.
This article explains how to play browser and mobile test steps in the mabl Trainer, including how to:
How to play all test steps
To play all test steps, make sure the Trainer cursor is at the beginning of the test and click the Play button.
Playing from the beginning
If you are running a test in the mabl Trainer and click the pause button, the mabl Trainer does not stop execution until after it finishes the step that is currently running.
Disabling auto-scroll
During playback, the Trainer automatically scrolls to the step in play. To disable auto-scroll in the Trainer window, click on the the settings icon and uncheck "Auto-scroll to Trainer cursor":
Disabling auto-scroll
How to play up to a specific step
To play up to a specific step, take the following steps:
- Move the Trainer cursor to the beginning of the test.
- Hover over the step that you want to play up to.
- Click on …(More actions)
- Select Play through here.
Play through here is a useful way to get your application in the correct state before adding new steps.
Play through here
How to play one step at a time
Replaying a single test step is helpful when you want to review your test more slowly or troubleshoot the behavior of a single step. Before you play the step, make sure your application is in the correct state.
To play the next step in the test, click on the Step forward button.
Step forward
If you are replaying a set of conditional steps in the Trainer, you need to play them all together. See documentation on replaying conditional steps in the Trainer for more information.
To play any step in the test, regardless of where the Trainer cursor is located, do the following:
- Hover over the step that you want to play
- Click on … (More actions)
- Select Play step
Play step