22 #ifndef ROBOTTESTINGFRAMEWORK_TESTCASE_H 23 #define ROBOTTESTINGFRAMEWORK_TESTCASE_H 63 virtual bool setup(
int argc,
char** argv);
74 virtual void run() = 0;
167 #endif // ROBOTTESTINGFRAMEWORK_TESTCASE_H std::string getEnvironment()
getParam gets the environment string which is set for the test case
bool succeeded() const override
succeeded
TestResult * getResult()
getResult Returns an instance of TestResult if run(TestResult &result) has been already called by a T...
std::string getParam()
getParam gets the original paramter string which is set for the test case
void interrupt() override
interrupt interrupts the current test run
The TestResult class is used to deliver the test results including any error and failures produced by...
void setRepetition(unsigned int rep)
setRepetition sets the run repetition by default the run() method is called only once; The number of ...
The simplest form of a test unit.
virtual bool setup(int argc, char **argv)
setup is called before the test run.
The base class to implememnt a test case.
virtual ~TestCase()
TestCase destructor.
void failed()
failed Sets the test successful flag to false which indicates that the test was not successful...
virtual void run()=0
run is called by the TestCase class if setup is successfull;
virtual void tearDown()
tearDown is called after the test run
TestCase(std::string name, std::string param="")
TestCase constructor.
void setParam(const std::string param)
setParam Sets the optional parameters of the test.
unsigned int getRepetition()
getRepetition gets the tun repetition
void setEnvironment(const std::string environment)
setEnvironment Optioanlly specifies the environment in which the test case is executed.