Manual | Tutorial | Standard Library | Release Notes
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
Version 4.5.0 |
| Test execution |
This chapter gives some hints about how to implement your tests to get stable and reliable test execution.
| Dependencies |
The 'Dependencies' concept of QF-Test provides functionality to guarantee that all prerequisites for a test-case are fulfilled before running it. It is also capable of reacting to unexpected behavior, e.g. closing an error dialog, which pops up and blocks your tests.
The concept is described in section 38.3 and a use-case can be found in the tutorial in the chapter 'Dependencies'.
You should at least implement a 'Dependency' which is responsible for launching the SUT, containing a 'Setup' for launching, a 'Cleanup' for a normal exit and a 'Catch' to react on any unexpected behavior.
Note If you implement a 'Cleanup', try to close the SUT normally first and only if the SUT does not terminate correctly, kill it via 'Stop client'.
For SWING and SWT applications please use the procedures
qfs.cleanup.swing.closeAllModalDialogs
and
qfs.cleanup.swt.closeAllModalDialogsAndShells
from the standard library
qfs.qft
for closing unexpected error dialogs.
| Timeout vs. delay |
Instead of using the 'Delay before' and 'Delay after' attributes you should try to use QF-Test's synchronization nodes to optimize test execution time.
The first kind of synchronization nodes are the 'waiter' nodes like 'Wait for component to appear', 'Wait for client to connect', 'Wait for document to load' and 'Wait for process to terminate'. You can specify the 'Timeout' attribute to wait for a component, process or document. The 'Wait for component to appear' node even provides the functionality to wait for the absence of a component.
The second kind are the 'check' nodes which allow you to specify the 'Timeout' attribute as well. Those nodes can be used to continue the test when a GUI element of your SUT has reached a defined state.
| What to do if the run-log contains an error |
If the test report contains an error message or exceptions, the following steps should be performed to find the source of that failure very fast:
3.1+ Since QF-Test version 3.1 it is possible to mark nodes via the context menu-item »Set mark« or setting bookmarks for specific nodes via the menu item »Add bookmark«. These features enable you to find important nodes very fast again.
If you encounter problems with component recognition, please see section 5.9 and chapter 34.
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | Last update: 02/13/2019 Copyright © 1999-2019 Quality First Software GmbH |