32.4 Activating debugger mode on error or exception

When debugging a test it is often helpful if test execution stops and switches to debugger mode exactly when an error, an exception or sometimes even just a warning occurs.

Using this technique we will debug the second test case in this section and the next.

If you now open the Debugger menu and the Options submenu again, it should look like this:

Debugger options
Figure 32.10:  Debugger options: stop test on error

We have to change the debugger options because otherwise the test would just run through, analogous to the previous examples from chapters one and two.

QF-Test stops at the erroneous node and switches to debugger mode:

Test run stopped by error
Figure 32.11:  QF-Test pauses on error

The node that caused the error is marked by a red square. In addition, an error dialog appears that provides details about the cause of the error. From there we switch to the run log which, as so often, is the key to fixing the problem.

Error message
Figure 32.12:  Error message