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