Version 8.0.2 |
During test development you sometimes want to stop all connected clients and reset all dependencies as well as delete global QF-Test variables in order to establish a well defined starting point for the next test execution.
For that purpose QF-Test offers »Run«-»Reset everything« in its main menu. To accommodate their particular needs test developers can additionally implement a ResetListener which allows to
To manage ResetListeners the QF-Test runcontext
provides the methods addResetListener()
,
isResetListenerRegistered()
and removeResetListener()
.
The ResetListener interface itself has two methods:
| |||||||||||||||||
The following example shows the implementation and registration of a ResetListener. It
restores the global QF-Test variable client
and prevents from closing the
respective SUT.
| ||||
Example 53.39: Example of a ResetListener implementation |
Last update: 12/4/2024 Copyright © 1999-2024 Quality First Software GmbH |
1. Functional cookies
We use functional cookies to ensure the basic functionality of the website.
2. Performance and statistic cookies
We use Matomo for analyzing and optimizing our website. Cookies permit an anonymous collection of information that help us offering you a clear and user-friendly visit of our web pages.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing returning visitors.
This cookie is used to track from which website the anonymized user proceeded to our website.
The Matomo session cookie is used to track the visitor's page requests during the session.
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.