Version 8.0.1 |
This chapter gives some hints about how to implement your tests to get stable and reliable test execution.
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 41.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.
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.
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.10 and section 5.3.
Last update: 9/10/2024 Copyright © 1999-2024 Quality First Software GmbH |
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.