CTestReport Class Reference

class CTestReport : public CBase

Inherits from

Public Member Functions
~CTestReport()
voidAddTestCaseResultL(const TTestInfo &, const TFullTestResult &, const TInt)
voidAddTestModuleVersion(TTestModuleVersionInfo &)
voidGenerateReportL()
CTestReport *NewL(CTestReportSettings &, const TTestReportMode)
voidUpdateReportSummaryL()
Private Member Functions
CTestReport(const TTestReportMode)
voidCloseXMLTagsInUnfinishedFileL(void)
voidConstructL(CTestReportSettings &)
voidWriteDelimiterL(const TDesC &, TInt)
voidWriteHeaderL()
voidWriteLineL(TRefByValue< const TDesC >, ...)
voidWriteTrailerL()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTTestReportMode { ETestReportBlank = 0x00000000, ETestReportSummary = 0x00000001, ETestReportEnvironment = 0x00000002, ETestReportCases = 0x00000004, ETestReportFull = ETestReportSummary | ETestReportEnvironment | ETestReportCases }
enumTTestReportOutput { ETestReportNone = 0x00000000, ETestReportDebug = 0x00000001, ETestReportPlainText = 0x00000002, ETestReportHtml = 0x00000004, ETestReportAll = ETestReportDebug | ETestReportPlainText | ETestReportHtml }
Private Attributes
RFile iFile
CStifLogger::TLoggerType iFormat
RFs iFs
TInt iModulesVersionsPos
CStifLogger::TOutput iOutput
TTestHWInfo iReportHWInfo
TTestReportMode iReportMode
TInt iSummaryPos
RPointerArray< TTestModuleVersionInfo >iTestModulesVersionsInfo
RPointerArray< TTestSummary >iTestSummaries
TTestSummary *iTotalSummary
TBool iXML

Constructor & Destructor Documentation

CTestReport(const TTestReportMode)

CTestReport(const TTestReportModeaReportMode)[private]

Default C++ constructor.

Parameters

const TTestReportMode aReportMode

~CTestReport()

~CTestReport()

Destructor.

Member Functions Documentation

AddTestCaseResultL(const TTestInfo &, const TFullTestResult &, const TInt)

voidAddTestCaseResultL(const TTestInfo &aTestInfo,
const TFullTestResult &aTestResult,
const TIntaError
)

Add test case result.

Parameters

const TTestInfo & aTestInfo
const TFullTestResult & aTestResult
const TInt aError

AddTestModuleVersion(TTestModuleVersionInfo &)

voidAddTestModuleVersion(TTestModuleVersionInfo &aVersion)

Adds version of test module to RPointerArray

Parameters

TTestModuleVersionInfo & aVersion

CloseXMLTagsInUnfinishedFileL(void)

voidCloseXMLTagsInUnfinishedFileL(void)[private]

Adds needed tags to get valid xml file.

Parameters

void

ConstructL(CTestReportSettings &)

voidConstructL(CTestReportSettings &aTestReportSettings)[private]

By default Symbian OS constructor is private.

Parameters

CTestReportSettings & aTestReportSettings

GenerateReportL()

voidGenerateReportL()

Generate result reports.

NewL(CTestReportSettings &, const TTestReportMode)

CTestReport *NewL(CTestReportSettings &aTestReportSettings,
const TTestReportModeaReportMode
)[static]

Two-phased constructor.

Parameters

CTestReportSettings & aTestReportSettings
const TTestReportMode aReportMode

UpdateReportSummaryL()

voidUpdateReportSummaryL()

Update result reports.

WriteDelimiterL(const TDesC &, TInt)

voidWriteDelimiterL(const TDesC &aDelimiter,
TIntaCount
)[private]

Write delimiter line.

Parameters

const TDesC & aDelimiter
TInt aCount

WriteHeaderL()

voidWriteHeaderL()[private]

Write result file header.

WriteLineL(TRefByValue< const TDesC >, ...)

voidWriteLineL(TRefByValue< const TDesC >aStr,
...
)[private]

Write data to file.

Parameters

TRefByValue< const TDesC > aStr
...

WriteTrailerL()

voidWriteTrailerL()[private]

Write result file trailer.

Member Enumerations Documentation

Enum TTestReportMode

Enumerators

ETestReportBlank = 0x00000000
ETestReportSummary = 0x00000001
ETestReportEnvironment = 0x00000002
ETestReportCases = 0x00000004
ETestReportFull = ETestReportSummary | ETestReportEnvironment | ETestReportCases

Enum TTestReportOutput

Enumerators

ETestReportNone = 0x00000000
ETestReportDebug = 0x00000001
ETestReportPlainText = 0x00000002
ETestReportHtml = 0x00000004
ETestReportAll = ETestReportDebug | ETestReportPlainText | ETestReportHtml

Member Data Documentation

RFile iFile

RFile iFile[private]

CStifLogger::TLoggerType iFormat

CStifLogger::TLoggerType iFormat[private]

RFs iFs

RFs iFs[private]

TInt iModulesVersionsPos

TInt iModulesVersionsPos[private]

CStifLogger::TOutput iOutput

CStifLogger::TOutput iOutput[private]

TTestHWInfo iReportHWInfo

TTestHWInfo iReportHWInfo[private]

TTestReportMode iReportMode

TTestReportMode iReportMode[private]

TInt iSummaryPos

TInt iSummaryPos[private]

RPointerArray< TTestModuleVersionInfo > iTestModulesVersionsInfo

RPointerArray< TTestModuleVersionInfo >iTestModulesVersionsInfo[private]

RPointerArray< TTestSummary > iTestSummaries

RPointerArray< TTestSummary >iTestSummaries[private]

TTestSummary * iTotalSummary

TTestSummary *iTotalSummary[private]

TBool iXML

TBool iXML[private]