Debug an automated test using breakpoints
Pause a test to troubleshoot failures or unexpected behavior by adding a breakpoint for a particular test step.
시작하기 전에
Role required: admin
프로시저
- Navigate to All > Automated Test Framework (ATF) > Tests.
- Select the test you want to run.
- Select Test Steps related list to list out all the test steps for the selected test.
- Right-click the test step where you want to add or remove a breakpoint.
-
Select Add/Remove Breakpoint from the list.
The test step gets marked for the modified breakpoint.주:The breakpoint mark on a step states that if the breakpoint is active and the test is run using Debug Test, the test pauses just before the breakpoint test step. The breakpoints are not considered if you click Run Test to run the test.
The breakpoints you set on a test are user-specific. Other users can't see and modify your breakpoints on a test, and vice versa.
주:You can set multiple breakpoints for a test but can have only 1 breakpoint every test step. - 옵션: Click the Breakpoint related list to show all the test steps within a test that have breakpoints.
-
Click Debug Test to run the test with breakpoints.
The Debug Test modal displays.
- Safari – the browser used to run the client-side steps of the selected test
- Pause before rollback – Option to pause the test just before rollback happens after the completion of the test
-
Analyze and debug the steps at which breakpoints have been implemented.
주:Every breakpoint causes the running of the test to pause for 10 minutes. You can debug the test step within the allocated 10 minutes and then the test starts running again until it reaches the next breakpoint.The following options display only when the test is paused for a breakpoint:
- Continue: Test execution continues until the next breakpoint.
- Step over: Test pauses at every step. If you don’t want to pause in the current step, select the Step over option to jump to the next step.