Debugging Tests

Test Builder

In the Test Builder there are various directional controls to help with debugging. These are indicated by the following icons:

There is also a Pause on Error () mode which will hold execution if a Test Step fails. When this is enabled, the Test Case will pause whenever an error occurs.

Finally there is also a Step To option for navigating to a specific Test Step anywhere in the test. This will re-navigate the Test Builder to the defined point without executing other steps.

Adding Breakpoints

To debug an issue, or to add new Test Steps in the middle of a test, breakpoints are recommended. Setting a breakpoint on a Test Step will mean that the Test Builder will pause execution on this step once it is reached.

To add a breakpoint to a Test Step, right-click on the Test Step in Provar Desktop and select ‘Toggle Breakpoint’:

NOTE: you can also use a ‘Disable Test Item’ option, which will keep the Test Step in the Test Case but skip it at runtime.

Viewing the log

You can view the detailed log file for any Test Step by right-clicking on the step in the Test Builder:

This is also available in the Test Runner in Provar Desktop.

2017-05-12T11:34:49+00:00

Leave A Comment