32.2 Stepping through Execution

Now we want to execute the test cases step by step.

As you will have noticed, "Step in" Step-In opens a node with children and makes the first child node the active node. This is, as always, indicated by the arrow marker on the node.

If you continue from the point where execution of the test suite was paused in the last section, i.e. from the node "Test case: First", the test case would now be opened:

Step in
Figure 32.4:  Step in

In the case of a leaf node, i.e. a node that has no children, the effect is the same as the following function.

With the button "Step over" Step-Over a node including all its child nodes is executed. The next node to be executed at the same level then becomes the active one and gets the arrow.

Step over
Figure 32.5:  Step over

"Step out" Step-Out executes the remaining sibling nodes and stops at the next node to be executed on the parent hierarchy level.

Step out
Figure 32.6:  Step out

In the example this is the Cleanup node. As already explained in the first chapter A full Test Run, Setup and Cleanup nodes have the special property of being executed before and after each test case to establish a defined starting state for every test case.

Note This behavior only occurs if you started the complete test suite or the test set and are in debugger mode. If no test execution was active and you had only selected the test case, the "Step over" function causes the test case to be executed and then the next test case to be selected.

Note Please note during interactive test creation with menus and comboboxes that these often collapse when the application loses focus, which is the case when switching to debugger mode. In such cases it is advisable to execute the node that opens a menu or combobox together with the node that performs the selection, i.e. do not switch to debugger mode in between. For example, you can achieve this by setting a breakpoint Breakpoint after the node that performs the selection and, when reaching the node that opens the menu or combobox, resume test execution by releasing the Pause button Continue.