00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
#ifndef TestCaseH
00011
#define TestCaseH
00012
00013
#include "../GeneralInclude/TestConstants.h"
00014
00072 class TestCase {
00073
00074
int testId;
00075
char* testName;
00076
bool testOutcome;
00077
char* testMessage;
00078
00079
bool testResultFlag;
00080
00081
protected :
00082
00093
void setTestResult(
bool outcome,
char* testMessage);
00094
00109
bool isNonNominalCheckAllowed(
void)
const;
00110
00111
public :
00112
00118
TestCase(
int testId,
char* testName);
00119
00126
virtual bool setUpTestCase(
void);
00127
00131
virtual void runTestCase(
void) = 0;
00132
00139
virtual bool shutDownTestCase(
void);
00140
00145
char*
getTestName(
void)
const;
00146
00151
bool getTestOutcome(
void)
const;
00152
00158
char*
getTestMessage(
void)
const;
00159 };
00160
00161
#endif