Tutorial

Video Icon

In the near future we will upload videos for every chapter of the tutorial which will lead you step by step through QF-Test.

14.5
Resolving Errors directly from the Run-log

The Jump to run-log button from the dialog in figure 14.12 will not only open the run-log but takes us directly to the node that holds the error details. Apart from the actual error message you will find screenshots and a copy of the variable bindings table (stack trace), which we will be introduced later on (The Variable Bindings table).

The error details tell you that the expected value does not match with the one shown in the application. As the one in the application is correct we want to update the expected value with the one from the application. This can be easily achieved as follows:

  • Action Right-click the red-bordered node "Failed: Check text: default ..." indicating the actual error
  • Select »Update check node with current data« from the context menu.
Update check node with current data
Figure 14.13:  Update check node with current data

This locates the corresponding 'Check text' node in the test-suite and updates the expected value of the 'Text' attribute with the gotten value as indicated by the run-log.

Corrected check node
Figure 14.14:  Corrected check node

The previously faulty node still is highlighted with a red border since we have not run it again.

  • Action Now continue execution by releasing the pause button Continue.

QF-Test runs the rest of the test-suite, i.e. the 'Check text' and 'Cleanup' nodes, and informs you at the end of the run that there was one error, which you have already fixed.

Since the error has been fixed and we will continue using the test-cases as examples you could rename the second test-case and delete '(with error)' in its name as well as '(causing Error)' in the name of the test-step.

Jump into run-log: You do not have to wait for an error dialog to open the run-log at the current point of execution (or close to it). Whenever you are in debugging mode, select the »Debugger«-»Jump to Run-Log« menu option, or use the [Control-J] shortcut. If you just want to open the run-log without jumping to the current point of exection you can use [Strg-L]. This will work after the test run finished too.