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, move the Trainer cursor to the beginning of the test, click on the play button, and select a playback option:
- If you want to observe the process of running steps, such as in troubleshooting scenarios, choose Play from cursor
- If you want to quickly play through all steps, for example to confirm the test works after an update, choose Fast play from cursor
Pausing playback
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 one of the following options:
- Play through here - play up to this step with small pauses between each step. Use this option to understand test behavior and troubleshoot issues with test implementation.
- Fast play through here - quickly play up to this step. Use this option to quickly get your application in the correct state before adding new steps.
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
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