Debug a test | Tutorial
Watch this short video to learn how to debug your scripts: how you place breakpoints, add new elements, remove elements, switch to manual mode, change the data of a test step, and edit a step's name.
For your convenience, we have also listed the steps for the main procedures below the video.
- If the test run pauses because it could not locate an element in the browser, click the element (for example a field or check box) in the browser to map it to the respective step.
- To confirm your selection, click the checkmark icon. The test automatically continues its run.
-
In the left pane, click the element's empty status circle. A blue stop appears, indicating the breakpoint.
When the test run reaches this breakpoint, the status circle turns orange and an orange bar appears at the top of the live browser, indicating that the session is waiting for user input. You can add a new step or make other changes.
- Click a field.
- Enter the required data.
- Press enter. This adds the action as a new step.
- To delete a step or otherwise revert an action that was added by mistake, select the step and click the delete icon. This removes the step but does not revert the data in the browser.
-
To delete the step data from the live browser page, on the toolbar above the browser, turn off the Record actions option. This turns on manual mode.
Note:The Record actions option is unavailable on the Mobile Web platform.
-
Remove the step data from the browser. For example, if you have entered a name or phone number, delete it from the field.
- When done making changes in the browser, turn on the Record actions option again. This step is important because if you skip it, the test and the browser are out of sync, which could cause problems when you resume automation.
- Double-click the step name. This makes the field writable.
- Modify the text.
- Press enter to confirm the change.
- Select a test step that requires data input.
- To expand the test details and modify the data, click the down arrow at the top right of the test step.
- Modify the data as needed. You can now resume the test run. Modifying data only takes effect the next time you run the test. It has no impact on the current run.
- Click the status circle again. This turns off the breakpoint and the test resumes its run and advances through the remaining steps.
- In the toolbar above the browser, click Cancel.