CTestCombiner Class Reference

class CTestCombiner : public CTestModuleBase

Inherits from

Public Member Functions
~CTestCombiner()
voidComplete(CTestCase *, TInt)
TInt GetTestCasesL(const TFileName &, RPointerArray< TTestCaseInfo > &)
TInt InitL(TFileName &, TBool)
CTestCombiner *NewL()
voidReceiveResponse(TDesC &)
voidRemoteTimeout()
TInt RunTestCaseL(const TInt, const TFileName &, TTestResult &)
voidSetEventPendingL(TEventIf)
Private Member Functions
CTestCombiner()
voidAppendTestResultToResultDes(TDes &, const TDesC &)
voidConstructL()
voidExecuteMeasurementL(CStifItemParser *)
TInt GetIndexForNewTestModuleController(void)
CTCTestCase *GetLocalRunningTest(TDesC &)
CTCTestCase *GetLocalTest(TDesC &)
CRemoteTestCase *GetRemoteRunningTestOnSlave(TUint32)
CRemoteSendReceive *GetRemoteSendReceive(TUint32)
CRemoteTestCase *GetRemoteTest(TDesC &)
CRemoteTestCase *GetRemoteTest(TUint32)
CRemoteTestCase *GetRemoteTestRunSent(TUint32)
CRemoteTestCase *GetRunningRemoteTest(TUint32)
CTestCase *GetRunningTest(TDesC &)
CSlaveInfo *GetSlave(TUint32)
CSlaveInfo *GetSlave(TDesC &)
CTestCase *GetTest(TDesC &)
CStifSectionParser *GetTestCaseL(TInt, const TFileName &)
CTCTestModule *GetTestModuleL(TDesC &, TDesC &, const TDesC &)
voidReadInitializationL(const TDesC &)
voidRunTestL()
voidStartMeasurementL(const TDesC &, CStifItemParser *)
TInt StartTestL(CStartInfo &)
voidStopMeasurementL(const TDesC &)
TBool UnsetEvent(TEventIf &, TRequestStatus &)
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()
CTestModuleBase::CTestModuleBase()
CTestModuleBase::OOMHandleWarningL(const TFileName &,const ,TInt &)
CTestModuleBase::OOMTestFinalizeL(const TFileName &,const )
CTestModuleBase::OOMTestInitializeL(const TFileName &,const )
CTestModuleBase::OOMTestQueryL(const TFileName &,const ,TOOMFailureType &,TInt &,TInt &)
CTestModuleBase::TestModuleIf()
CTestModuleBase::Version()
CTestModuleBase::~CTestModuleBase()
Inherited Enumerations
CTestModuleBase:TOOMFailureType
Public Attributes
CStifLogger *iLog
Private Attributes
TBool iAddTestCaseTitleToLogName
TBool iCancelIfError
RPointerArray< CDefinedValue >iDefined
TEventIf iEvent
RPointerArray< TEventTc >iEventArray
TEventIfPckg iEventPckg
TInt iFailedTestCase
TInt iIndexTestModuleControllers
RArray< TAny * >iLoopAllocationArray
TBool iLoopIsUsed
CRemoteReceiver *iRemoteReceiver
TInt iRemoteTimeout
TInt iResult
TInt iRunningTests
TBool iSchedulerActive
TInt iScriptFailed
TName iScriptFailedDescription
CStifSectionParser *iSectionParser
RPointerArray< CRemoteSendReceive >iSendReceive
TBool iSeparateProcesses
RPointerArray< CSlaveInfo >iSlaveArray
CStifLogger *iStdLog
CStifLogger *iTCLog
RPointerArray< CTestCase >iTestCases
RPointerArray< TTestMeasurement >iTestMeasurementArray
RPointerArray< CTCTestModule >iTestModules
CTestRunner *iTestRunner
TBool iUITestingSupport
TName iWaitTestCase

Constructor & Destructor Documentation

CTestCombiner()

CTestCombiner()[private]

C++ default constructor.

~CTestCombiner()

~CTestCombiner()

Destructor.

Member Functions Documentation

AppendTestResultToResultDes(TDes &, const TDesC &)

voidAppendTestResultToResultDes(TDes &aResultDescr,
const TDesC &aTestCaseResultDescr
)[private]

Append to TC's result description (if possible due to length) limitation provided text in [] brackets.

Parameters

TDes & aResultDescr
const TDesC & aTestCaseResultDescr

Complete(CTestCase *, TInt)

voidComplete(CTestCase *aTestCase,
TIntaError =  KErrNone
)

Test Case completion from CTCTestCase.

Parameters

CTestCase * aTestCase
TInt aError =  KErrNone

ConstructL()

voidConstructL()[private]

By default Symbian OS constructor is private.

ExecuteMeasurementL(CStifItemParser *)

voidExecuteMeasurementL(CStifItemParser *aItem)[private]

Executes measurement script line.

Parameters

CStifItemParser * aItem

GetIndexForNewTestModuleController(void)

TInt GetIndexForNewTestModuleController(void)[private]

Returns new index for test module controller. This number is appended to module controller name. This method is used when option to run every test case in separate process is set to on.

Parameters

void

GetLocalRunningTest(TDesC &)

CTCTestCase *GetLocalRunningTest(TDesC &aTestId)[private]

Gets a running testcase identified with testid from test case array.

Parameters

TDesC & aTestId

GetLocalTest(TDesC &)

CTCTestCase *GetLocalTest(TDesC &aTestId)[private]

Gets a testcase identified with testid from test case array.

Parameters

TDesC & aTestId

GetRemoteRunningTestOnSlave(TUint32)

CRemoteTestCase *GetRemoteRunningTestOnSlave(TUint32aSlaveDevId)[private]

Gets a testcase running on slave with aSlaveDevId.

Parameters

TUint32 aSlaveDevId

GetRemoteSendReceive(TUint32)

CRemoteSendReceive *GetRemoteSendReceive(TUint32aSlaveId)[private]

Gets a correct CRemoteSendReceive object on slave with aSlaveId.

Parameters

TUint32 aSlaveId

GetRemoteTest(TDesC &)

CRemoteTestCase *GetRemoteTest(TDesC &aTestId)[private]

Gets a testcase identified with aSlaveId from slave array.

Parameters

TDesC & aTestId

GetRemoteTest(TUint32)

CRemoteTestCase *GetRemoteTest(TUint32aSlaveId)[private]

Gets a testcase identified with aSlaveId from slave array.

Parameters

TUint32 aSlaveId

GetRemoteTestRunSent(TUint32)

CRemoteTestCase *GetRemoteTestRunSent(TUint32aSlaveId)[private]

Parameters

TUint32 aSlaveId

GetRunningRemoteTest(TUint32)

CRemoteTestCase *GetRunningRemoteTest(TUint32aSlaveId)[private]

Gets a running testcase identified with aSlaveId from slave array.

Parameters

TUint32 aSlaveId

GetRunningTest(TDesC &)

CTestCase *GetRunningTest(TDesC &aTestId)[private]

Gets a running testcase identified with testid from test case array.

Parameters

TDesC & aTestId

GetSlave(TUint32)

CSlaveInfo *GetSlave(TUint32aSlaveId)[private]

Get running slave.

Parameters

TUint32 aSlaveId

GetSlave(TDesC &)

CSlaveInfo *GetSlave(TDesC &aSlaveName)[private]

Parameters

TDesC & aSlaveName

GetTest(TDesC &)

CTestCase *GetTest(TDesC &aTestId)[private]

Gets a testcase identified with testid from test case array.

Parameters

TDesC & aTestId

GetTestCaseL(TInt, const TFileName &)

CStifSectionParser *GetTestCaseL(TIntaCaseNumber,
const TFileName &aConfig
)[private]

GetTestCaseL gets the specified test case section from the configfile.

Parameters

TInt aCaseNumber
const TFileName & aConfig

GetTestCasesL(const TFileName &, RPointerArray< TTestCaseInfo > &)

TInt GetTestCasesL(const TFileName &aConfigFile,
RPointerArray< TTestCaseInfo > &aTestCases
)[virtual]

GetTestCasesL is used to inquire testcases.

Parameters

const TFileName & aConfigFile
RPointerArray< TTestCaseInfo > & aTestCases

GetTestModuleL(TDesC &, TDesC &, const TDesC &)

CTCTestModule *GetTestModuleL(TDesC &aModule,
TDesC &aIniFile,
const TDesC &aConfigFile
)[private]

GetTestModuleL returns a specified test module description.

Parameters

TDesC & aModule
TDesC & aIniFile
const TDesC & aConfigFile

InitL(TFileName &, TBool)

TInt InitL(TFileName &aIniFile,
TBoolaFirstTime
)[virtual]

Test module initialization.

Parameters

TFileName & aIniFile
TBool aFirstTime

NewL()

CTestCombiner *NewL()[static]

Two-phased constructor.

ReadInitializationL(const TDesC &)

voidReadInitializationL(const TDesC &aIniFile)[private]

Read initialization from file.

Parameters

const TDesC & aIniFile

ReceiveResponse(TDesC &)

voidReceiveResponse(TDesC &aMsg)

Handles responce received from slave

Parameters

TDesC & aMsg

RemoteTimeout()

voidRemoteTimeout()

Handles timeouts.

RunTestCaseL(const TInt, const TFileName &, TTestResult &)

TInt RunTestCaseL(const TIntaCaseNumber,
const TFileName &aConfig,
TTestResult &aResult
)[virtual]

RunTestCase is used to run an individual test case specified by aTestCase.

Parameters

const TInt aCaseNumber
const TFileName & aConfig
TTestResult & aResult

RunTestL()

voidRunTestL()[private]

RunTestL runs the testcase specified in section.

SetEventPendingL(TEventIf)

voidSetEventPendingL(TEventIfaEvent)

Set event request pending.

Parameters

TEventIf aEvent

StartMeasurementL(const TDesC &, CStifItemParser *)

voidStartMeasurementL(const TDesC &aType,
CStifItemParser *aItem
)[private]

Starts measurement.

Parameters

const TDesC & aType
CStifItemParser * aItem

StartTestL(CStartInfo &)

TInt StartTestL(CStartInfo &aStartInfo)[private]

StartTestL starts a specified testcase from another test module.

Parameters

CStartInfo & aStartInfo

StopMeasurementL(const TDesC &)

voidStopMeasurementL(const TDesC &aType)[private]

Stops measurementplugin's measurement.

Parameters

const TDesC & aType

UnsetEvent(TEventIf &, TRequestStatus &)

TBool UnsetEvent(TEventIf &aEvent,
TRequestStatus &aStatus
)[private]

Check requested events and send unset to first requested.

Parameters

TEventIf & aEvent
TRequestStatus & aStatus

Member Data Documentation

TBool iAddTestCaseTitleToLogName

TBool iAddTestCaseTitleToLogName[private]

TBool iCancelIfError

TBool iCancelIfError[private]

RPointerArray< CDefinedValue > iDefined

RPointerArray< CDefinedValue >iDefined[private]

TEventIf iEvent

TEventIf iEvent[private]

RPointerArray< TEventTc > iEventArray

RPointerArray< TEventTc >iEventArray[private]

TEventIfPckg iEventPckg

TEventIfPckg iEventPckg[private]

TInt iFailedTestCase

TInt iFailedTestCase[private]

TInt iIndexTestModuleControllers

TInt iIndexTestModuleControllers[private]

CStifLogger * iLog

CStifLogger *iLog

RArray< TAny * > iLoopAllocationArray

RArray< TAny * >iLoopAllocationArray[private]

TBool iLoopIsUsed

TBool iLoopIsUsed[private]

CRemoteReceiver * iRemoteReceiver

CRemoteReceiver *iRemoteReceiver[private]

TInt iRemoteTimeout

TInt iRemoteTimeout[private]

TInt iResult

TInt iResult[private]

TInt iRunningTests

TInt iRunningTests[private]

TBool iSchedulerActive

TBool iSchedulerActive[private]

TInt iScriptFailed

TInt iScriptFailed[private]

TName iScriptFailedDescription

TName iScriptFailedDescription[private]

CStifSectionParser * iSectionParser

CStifSectionParser *iSectionParser[private]

RPointerArray< CRemoteSendReceive > iSendReceive

RPointerArray< CRemoteSendReceive >iSendReceive[private]

TBool iSeparateProcesses

TBool iSeparateProcesses[private]

RPointerArray< CSlaveInfo > iSlaveArray

RPointerArray< CSlaveInfo >iSlaveArray[private]

CStifLogger * iStdLog

CStifLogger *iStdLog[private]

CStifLogger * iTCLog

CStifLogger *iTCLog[private]

RPointerArray< CTestCase > iTestCases

RPointerArray< CTestCase >iTestCases[private]

RPointerArray< TTestMeasurement > iTestMeasurementArray

RPointerArray< TTestMeasurement >iTestMeasurementArray[private]

RPointerArray< CTCTestModule > iTestModules

RPointerArray< CTCTestModule >iTestModules[private]

CTestRunner * iTestRunner

CTestRunner *iTestRunner[private]

TBool iUITestingSupport

TBool iUITestingSupport[private]

TName iWaitTestCase

TName iWaitTestCase[private]