Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

TestCase.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // TestCase.h 00005 // 00006 // Version 1.0 00007 // Date 13.09.02 00008 // Author A. Pasetti (P&P Software) 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; // true if setTestResult was called 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
Copyright 2003 P&P Software GmbH - All Rights Reserved