Run Scenario ( Playback )
After recording steps and actions in the AI Recorder, you can use Run Scenario (Playback) to verify that the flow behaves as expected. This helps confirm that the steps are in the correct order, the logic works, and the scenario executes successfully.
Running a scenario is an important step before generating code. It ensures that the test flow is stable and behaves exactly as intended.
You can then choose to:
Run End-to-End
After recording your steps and actions, you can run the entire scenario from start to finish to verify that everything works as expected.
To do this, pause the recorder and click the Run button. The browser automatically reloads to its initial state, and the scenario is executed from the first step to the last.
Use this option to confirm that:
- The scenario follows the intended flow
- The steps are in the correct order
- The logic is sound
- The actions run successfully without errors
Example Use Case
You’ve finished recording a login and purchase flow. Use Run End-to-End to verify that the entire sequence, from entering credentials to placing an order, works as expected.
Run From a Specific Step
This option allows you to start running the scenario from a specific step, rather than from the beginning. It’s useful when you want to skip the initial steps and verify if the later part of the scenario is working correctly.
NOTE
Before using this option, make sure the Chromium window (your application under test) is already in the expected state for the step you’re starting from. This ensures the test runs accurately and avoids failures due to missing context from earlier steps.
To use this option:
Hover over the step you want to start from.
Click the ⋮ (three-dot menu) next to the step and select Run from this step.
The scenario begins execution from the selected step and continues to the end.
Example Use Case
You’ve already tested and confirmed the login steps. You want to start playback from the “Add to Cart” step to check if the cart and checkout logic is functioning correctly.
Run Until a Specific step
This option allows you to run the scenario from the beginning up to a specific step. It’s useful when you want to test the initial part of the flow or stop execution at a certain point for verification.
To use this option:
Hover over the step you want to run until.
Click the ⋮ (three-dot menu) next to the step and select Run until this step.
The scenario begins execution from the first step and stops after running the selected step.
Example Use Case
You’re debugging an issue in the login process. Use Run until this step to execute steps up to the login confirmation and stop right after to inspect the result.
After Running a Scenario
Once the selected steps have run successfully, whether you ran the entire scenario, from a step, or until a step, you can click Go back to recording mode to:
- Continue recording and add more steps, or
- Proceed to Generate Code and Save
This ensures you only generate code once your scenario is complete and validated.
NOTE
Playback won’t overwrite your recorded steps. You can run it as many times as needed before generating code.