RobotTestingFramework
2.0.1
Robot Testing Framework
|
The TestResult class is used to deliver the test results including any error and failures produced by tests to any listener. More...
#include <robottestingframework/TestResult.h>
Public Member Functions | |
TestResult () | |
TestResult constructor. More... | |
virtual | ~TestResult () |
TestResult destructor. More... | |
void | addListener (TestListener *listener) |
Adding a new listener. More... | |
void | removeListener (TestListener *listener) |
Remove a listener. More... | |
void | reset () |
Clear the listener list. More... | |
void | addReport (const Test *test, TestMessage msg) |
This is called to report any arbitrary message from tests. More... | |
void | addError (const Test *test, TestMessage msg) |
This is called when an error occurred during test run. More... | |
void | addFailure (const Test *test, TestMessage msg) |
This is called when a failure occurred during test run. More... | |
void | startTest (const Test *test) |
This is called when a Test is started. More... | |
void | endTest (const Test *test) |
This is called when a Test is finished. More... | |
void | startTestSuite (const Test *test) |
This is called when a TestSuite is started. More... | |
void | endTestSuite (const Test *test) |
This is called when a TestSuite is finished. More... | |
void | startTestRunner () |
This is called when the TestRunner is started. More... | |
void | endTestRunner () |
This is called when the TestRunner is finished. More... | |
Private Types | |
typedef std::set< TestListener * > | ListenerContainer |
typedef std::set< TestListener * >::iterator | ListenerIterator |
Private Attributes | |
ListenerContainer | listeners |
The TestResult class is used to deliver the test results including any error and failures produced by tests to any listener.
The listeneres can be added by addListener
.
Here's an example of using a TestResult:
Definition at line 43 of file TestResult.h.
|
private |
Definition at line 45 of file TestResult.h.
|
private |
Definition at line 46 of file TestResult.h.
robottestingframework::TestResult::TestResult | ( | ) |
TestResult constructor.
|
virtual |
TestResult destructor.
void robottestingframework::TestResult::addError | ( | const Test * | test, |
TestMessage | msg | ||
) |
This is called when an error occurred during test run.
test | pointer to the corresponding test |
msg | correspoinding error message |
void robottestingframework::TestResult::addFailure | ( | const Test * | test, |
TestMessage | msg | ||
) |
This is called when a failure occurred during test run.
test | pointer to the corresponding test |
msg | correspoinding failure message |
void robottestingframework::TestResult::addListener | ( | TestListener * | listener | ) |
Adding a new listener.
listener | pointer to a TestListener object |
void robottestingframework::TestResult::addReport | ( | const Test * | test, |
TestMessage | msg | ||
) |
This is called to report any arbitrary message from tests.
test | pointer to the corresponding test |
msg | correspoinding error message |
void robottestingframework::TestResult::endTest | ( | const Test * | test | ) |
This is called when a Test is finished.
test | pointer to the corresponding test |
void robottestingframework::TestResult::endTestRunner | ( | ) |
This is called when the TestRunner is finished.
void robottestingframework::TestResult::endTestSuite | ( | const Test * | test | ) |
This is called when a TestSuite is finished.
test | pointer to the corresponding test |
void robottestingframework::TestResult::removeListener | ( | TestListener * | listener | ) |
Remove a listener.
listener | pointer to a TestListener object |
void robottestingframework::TestResult::reset | ( | ) |
Clear the listener list.
void robottestingframework::TestResult::startTest | ( | const Test * | test | ) |
This is called when a Test is started.
test | pointer to the corresponding test |
void robottestingframework::TestResult::startTestRunner | ( | ) |
This is called when the TestRunner is started.
void robottestingframework::TestResult::startTestSuite | ( | const Test * | test | ) |
This is called when a TestSuite is started.
test | pointer to the corresponding test |
|
private |
Definition at line 133 of file TestResult.h.