ADTF
3.18.2
|
This interface has to be implemented by the main test program. More...
Public Types | |
enum | tLogType { TEST_LOG_UNKNOWN = 0 , TEST_LOG_PASSED = 1 , TEST_LOG_FAILED = 2 } |
Enumeration values used as parameter in method Log() More... | |
Public Member Functions | |
virtual void * | GetEnvironment ()=0 |
virtual tInt | Initialize (tInt argc, const tChar *argv[])=0 |
Initialize test bench. More... | |
virtual tInt | RunTests ()=0 |
Will run all tests. More... | |
virtual tInt | Shutdown ()=0 |
Shutdown of test bench. More... | |
virtual void | RegisterTester (ITester *pTester)=0 |
Registers a new tester at the test bench. More... | |
virtual void | LogTestFunction (const tChar *strFunction)=0 |
Logs test function. More... | |
virtual void | Log (tInt nLogType, const tChar *strText, const tChar *strExpression, const tChar *strFile, tInt nLine, const tChar *strFunction=nullptr, const tChar *strMessage=nullptr)=0 |
Generates log output. More... | |
virtual void | LogStartFunction (tTestDoc *pDoc)=0 |
Generate log output at start of function. More... | |
virtual void | LogStopFunction (tTestDoc *pDoc)=0 |
Generate log output at stop of function. More... | |
virtual void | RegisterOutputter (ITestReportOutputter *pOutputter)=0 |
Register test report outputer. More... | |
virtual tBool | IsOK ()=0 |
Returns OK state. More... | |
virtual tResult | GetPluginDirs (A_UTILS_NS::cStringList &lstDirs)=0 |
Returns the plugins dir. More... | |
virtual A_UTILS_NS::cFilename | GetOutputDir ()=0 |
Returns the tester output dir. More... | |
virtual A_UTILS_NS::cFilename | GetWorkingDir ()=0 |
Returns the tester working dir. More... | |
This interface has to be implemented by the main test program.
Definition at line 171 of file testbench.h.
enum tLogType |
Enumeration values used as parameter in method Log()
Enumerator | |
---|---|
TEST_LOG_UNKNOWN | unknown |
TEST_LOG_PASSED | log when passed |
TEST_LOG_FAILED | log when failed |
Definition at line 177 of file testbench.h.
|
pure virtual |
|
pure virtual |
Returns the tester output dir.
|
pure virtual |
Returns the plugins dir.
lstDirs | [out] List of plugin dirs |
|
pure virtual |
Returns the tester working dir.
Initialize test bench.
argc | Count of arguments |
argv | Array of pointers to arguments |
|
pure virtual |
Returns OK state.
|
pure virtual |
Generates log output.
nLogType | Values as defined in tLogType |
strText | Text to be logged |
strExpression | Expression to be logged |
strFile | Name of source file |
nLine | Line if code in source file |
strFunction | Name of function |
strMessage | User defined message |
|
pure virtual |
Generate log output at start of function.
pDoc | Pointer to test document |
|
pure virtual |
Generate log output at stop of function.
pDoc | Pointer to test document |
|
pure virtual |
Logs test function.
strFunction | Name of function |
|
pure virtual |
Register test report outputer.
pOutputter | Pointer to outputter |
|
pure virtual |
Registers a new tester at the test bench.
pTester | Pointer to tester |
|
pure virtual |
Will run all tests.
|
pure virtual |
Shutdown of test bench.