ADTF  3.18.3
pcbjunitoutputter.h
Go to the documentation of this file.
1 
7 #ifndef _TEST_PCB_JUNIT_INCLUDES_
8 #define _TEST_PCB_JUNIT_INCLUDES_
9 
14 {
15  protected:
19 
25 
30 
31  FILE* m_hRedirectedFileHandle = nullptr;
32 
33  public:
40  cPCBJunitReportOutputter(const tChar* strFile, tInt nBuild, A_UTILS_NS::cCommandLine& oCmdLine);
42 
43  public:
48  void setFlags(int nFlags);
49 
53  void beginReport();
54 
58  void endReport();
59 
64  void beginTester(ITester* pTester);
65 
70  void endTester(ITester* pTester);
71 
77 
83 
94  void writeResult(ITester* pTester,
95  bool bPassed,
96  const char* strExpression,
97  const char* strFile,
98  int nLine,
99  const char* strFunction,
100  const char* strMessage);
101 
102  private:
103  A_UTILS_NS::cString NormalizeToHTML(const A_UTILS_NS::cString& strInput);
104 };
105 
106 #endif //_TEST_PCB_JUNIT_INCLUDES_
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
int tInt
type definition for signed integer value (platform and compiler dependent type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
Command line processing.
Definition: commandline.h:54
cDOM implements a XML parser which can be used to read in XML files and perform simple (!...
File name class.
Definition: filename.h:59
This interface has to be implemented by the test report class.
Definition: testbench.h:90
This class is the base class of all test cases.
Definition: testbench.h:44
Class which is used to create XML file in JUNIT format.
void writeTestFunction(tTestDoc *pDoc)
Will be called when test case begins.
void endTester(ITester *pTester)
Will be called when test ends.
void setFlags(int nFlags)
Sets flags as specfied in enumeration tOutputterFlags.
int m_nOriginalStdOut
STDOUT_FILENO.
cPCBJunitReportOutputter(const tChar *strFile, tInt nBuild, A_UTILS_NS::cCommandLine &oCmdLine)
This class is used to generate the XML file in Junit format.
tInt m_nBuild
It the build number.
A_UTILS_NS::cDOMElement * skipped
It is a pointer to the tests that are not done.
A_UTILS_NS::cString m_strCurrentSuite
The variable represents the name of the CurrentSuite.
void endReport()
Will be called when report ends.
A_UTILS_NS::cDOMElement * m_pCurrentSuite
It is a pointer to the current testgroup.
A_UTILS_NS::cDOMElement * m_pCurrentTest
It is a pointer to the current test.
void beginTester(ITester *pTester)
Will be called when test begins.
void writeResult(ITester *pTester, bool bPassed, const char *strExpression, const char *strFile, int nLine, const char *strFunction, const char *strMessage)
Will be called when the result is wriiten to the file.
void writeTestFunctionEnd(tTestDoc *pDoc)
Will be called when test case ends.
A_UTILS_NS::cDOM m_oDOM
This implements a XML parser which can be used to read in XML files.
int m_nOriginalStdErr
STDERR_FILENO.
void beginReport()
Will be called when report starts.
A_UTILS_NS::cFilename m_strFile
The object to the class Filename used as Test file.
tBool m_bRedirect
tTrue if "noredirect" from cmdLine is disabled
tInt m_nFlags
It is the flag value.
This structure defines a test case.
Definition: testbench.h:16