|
|
TestObserver |
| Declared In: |
Abstract base class for objects that can observe the execution of tests.
A TestObserver can be added to a TestRun to observe the execution of tests as they run and track their progress. It will be notified when tests start, stop, and fail, as well as when test suites start and stop.
Informs the observer that the input Test failed execution, and of information about the failure.
Informs the observer that the input Test started execution.
Informs the observer that the input Test completed execution.
Constructor for the TestObserver class.
Informs the observer that the input TestSuite started execution.
Informs the observer that the input TestSuite completed execution.
Destructor for the TestObserver class.
testDidFail |
Informs the observer that the input Test failed execution, and of information about the failure.
testThe Test that failed execution.
failureInformation about why the Test failed.
Informs the observer that the input Test failed execution, and of information about the failure. This information includes source code file name and line number, as well as an informative message. A Test can either complete (stop) or fail, not both.
testDidStart |
Informs the observer that the input Test started execution.
testThe Test that started execution.
Informs the observer that the input Test started execution.
testDidStop |
Informs the observer that the input Test completed execution.
testThe Test that completed execution.
Informs the observer that the input Test completed execution. A Test only completes if it did not fail.
TestObserver |
Constructor for the TestObserver class.
public
TestObserver();
Constructor for the TestObserver class.
testSuiteDidStart |
Informs the observer that the input TestSuite started execution.
testSuiteThe TestSuite that started execution.
Informs the observer that the input TestSuite started execution.
testSuiteDidStop |
Informs the observer that the input TestSuite completed execution.
testSuiteThe TestSuite that completed execution.
Informs the observer that the input TestSuite completed execution. TestSuites always complete, regardless of whether any of their component Tests fail.
~TestObserver |
Destructor for the TestObserver class.
public
virtual ~TestObserver();
Destructor for the TestObserver class.
Last Updated: 2009-08-12