RobotTestingFramework
2.0.1
Robot Testing Framework
|
The FixtureManager can be used to to setup any fixture which is required for the tests before executing the tests by a TestSuite. More...
#include <robottestingframework/FixtureManager.h>
Public Member Functions | |
FixtureManager (std::string param="") | |
FixtureManager constructor The parameter string is parsed into (argc/argv) format and will be passed to the fixture manager using setup(int argc, char** argv). More... | |
FixtureManager (FixtureEvents *dispatcher, std::string param="") | |
FixtureManager constructor The parameter string is parsed into (argc/argv) format and will be passed to the fixture manager using setup(int argc, char** argv). More... | |
virtual | ~FixtureManager () |
FixtureManager destructor. More... | |
bool | setup () |
setup is called by a test suite. More... | |
virtual bool | setup (int argc, char **argv) |
setup is called to start the fixture manager More... | |
virtual void | tearDown () |
tearDown is called after to stop the fixture manager More... | |
virtual bool | check () |
check if the fixture is okay. More... | |
void | setDispatcher (FixtureEvents *dispatcher) |
setDispatcher Sets the FixtureEvents dispatcher More... | |
FixtureEvents * | getDispatcher () |
getResult returns an instance of FixtureEvents dispatcher More... | |
void | setParam (const std::string param) |
setParam Sets the optional parameters of the fixture manager. More... | |
std::string | getParam () |
getParam gets the original parameter string which is set for the fixture manager More... | |
Private Attributes | |
std::string | param |
FixtureEvents * | dispatcher |
The FixtureManager can be used to to setup any fixture which is required for the tests before executing the tests by a TestSuite.
The fixtureCollapsed
method of the FixtureEvents class is used by a fixture manager to inform any class which inherited from FixtureEvents that the corresponding fixture has been collapsed.
Here's an example of using a FixtureManager:
Definition at line 63 of file FixtureManager.h.
robottestingframework::FixtureManager::FixtureManager | ( | std::string | param = "" | ) |
FixtureManager constructor The parameter string is parsed into (argc/argv) format and will be passed to the fixture manager using setup(int argc, char** argv).
param | fixture manager optional parameters |
robottestingframework::FixtureManager::FixtureManager | ( | FixtureEvents * | dispatcher, |
std::string | param = "" |
||
) |
FixtureManager constructor The parameter string is parsed into (argc/argv) format and will be passed to the fixture manager using setup(int argc, char** argv).
dispatcher | an instance of FixtureEvents |
param | fixture manager optional parameters |
|
virtual |
FixtureManager destructor.
|
virtual |
check if the fixture is okay.
This is called automatically from the corresponding test suite to ensure the correctness of the fixture before running each test case.
FixtureEvents* robottestingframework::FixtureManager::getDispatcher | ( | ) |
getResult returns an instance of FixtureEvents dispatcher
std::string robottestingframework::FixtureManager::getParam | ( | ) |
getParam gets the original parameter string which is set for the fixture manager
void robottestingframework::FixtureManager::setDispatcher | ( | FixtureEvents * | dispatcher | ) |
setDispatcher Sets the FixtureEvents dispatcher
dispatcher | an instance of FixtureEvents dispatcher |
void robottestingframework::FixtureManager::setParam | ( | const std::string | param | ) |
setParam Sets the optional parameters of the fixture manager.
The parameter string is parsed into (argc/argv) format and will be passed to the fixture manager using setup(int argc, char** argv).
param | the parameter string |
bool robottestingframework::FixtureManager::setup | ( | ) |
setup is called by a test suite.
The setup() function parses the fixture paramteres and call the setup(int argc, char**argv) which can be ovveriden by the user customized fixture manager.
|
virtual |
setup is called to start the fixture manager
argc | The number of the pasred argument from string parameter |
argv | The arguments which is parsed using string parameter |
|
virtual |
tearDown is called after to stop the fixture manager
|
private |
Definition at line 148 of file FixtureManager.h.
|
private |
Definition at line 147 of file FixtureManager.h.