Once registered with the current run-context via
implementation of the
TestRunListener interface will get notified whenever
test execution enters or exits a node and when a problem occurs. An illustrative example
is provided in the test-suite
TestRunListener.qft, located in the directory
demo/runlistener in your QF-Test installation. Best deactivate the debugger
before running the whole test-suite.
Note A variant of the
TestRunListener interface called
DaemonTestRunLister can be used to monitor a test-run remotely via the
daemon API. It is described in subsection 52.2.5.
The run listener API consists of the following classes:
to be implemented and registered with a run-context via
To implement the interface you can also derive from the class
which provides empty implementations of all methods so you only need to implement
those methods you are interested in.
information about the currently executed nodes and the current error state. It defines
the following constants for execution states and error levels:
The first two states apply only to 'Test-set' and 'Test-case' nodes.
runStopped method you can also check whether
the test run has been interrupted or completed normally. Therefore
STATE_RUN_TERMINATED are defined.
de.qfs.apps.qftest.extensions.qftest.TestSuiteNode is a representation
of a QF-Test node that is currently being executed, including information about the type
of node, its name, comment, etc.
|Last update: 3/15/2023|
Copyright © 1999-2022 Quality First Software GmbH