Using the Debugger (Java)
In this chapter we will learn how to run a test suite with QF-Test's built-in and intuitive debugger. If you are familiar with debugging from other IDEs like Eclipse, you will find this debugger similar in function and usefulness.
This chapter is also available as a video tutorial at "Using the Debugger".
By the end of this chapter you will be familiar with the following debugger functionality:
- Setting a Breakpoint e.g. via Ctrl+F8 (⇧+⌘+B on macOS).
-
Pausing a test run at any time and resuming operation using the debugger
button
or the pause test run hotkey Alt+F12.
-
Stepping Through a Test or Sequence using the
debugger buttons 'Single step'
, 'Step over'
and 'Step out'
.
-
Skipping Execution of Nodes
using the debugger buttons 'Skip over'
and 'Skip out'
.
- Error or Exception triggering Debugging Mode.
- Resolving Errors directly from the Run log.
- Jump directly to the current error in the run log via Ctrl+J. (Jump to run log in chapter section 5.5).
NoteInstead of the debugger buttons you can also enter the commands via the QF-Test menu and most by keyboard shortcuts as well. You'll find the shortcut listed beside the menu option, if available. For a complete list, refer to the Keyboard shortcuts section of the user manual. You can also find a little helper there for attaching to your keyboard which shows the function key assignment of QF-Test.
There are some more functions related to the debugger that we will come to in later chapters:
-
Locating the current node using the debugger button
(Locate the current node in chapter section 6.3).
- "Continue execution from here" via the popup menu of the respective node (figure 6.9).
-
Rethrowing exceptions using the toolbar button
.
- The variable bindings table (section 6.3).