CTestRunner Class Reference

class CTestRunner : public CActive

Inherits from

Public Member Functions
~CTestRunner()
voidCancelTestCases()
voidDoCancel()
CTestRunner *NewL(CTestCombiner *)
TBool ReceiveResponseL(TDesC &)
TInt RunError(TInt)
voidRunL()
voidSetRunnerActive()
Private Member Functions
CTestRunner(CTestCombiner *)
TInt CheckDefined(TPtrC &)
TBool CheckUnsetEvent()
voidConstructL()
TBool ExecuteAllocateL(CStifItemParser *)
TBool ExecuteCombinerPauseL(CStifItemParser *)
TBool ExecuteCompleteL(CStifItemParser *, CTestCase *)
TBool ExecuteEndLoopL()
TBool ExecuteEventCtlL(CStifItemParser *, TTCKeywords::TKeywords)
TBool ExecuteEventSetL(CStifItemParser *)
TBool ExecuteEventUnsetL(CStifItemParser *)
TBool ExecuteFreeL(CStifItemParser *)
voidExecuteFreeL(CSlaveInfo *)
TBool ExecuteLineL(CStifItemParser *)
voidExecuteLoopL(CStifItemParser *)
TBool ExecutePauseL(CStifItemParser *, CTestCase *)
TBool ExecuteRemoteEventCtlL(CStifItemParser *, CSlaveInfo *, TInt)
TBool ExecuteRemoteL(CStifItemParser *)
TBool ExecuteRemoteRunL(CStifItemParser *, CSlaveInfo *, HBufC *, TInt)
TBool ExecuteRemoteSendReceiveL(CStifItemParser *, CSlaveInfo *)
TBool ExecuteRemoteSetUnsetEventL(CStifItemParser *, CSlaveInfo *, TInt)
TBool ExecuteRemoteTestCtlL(CStifItemParser *, CTestCase *, TInt)
TBool ExecuteRemoteUnknownL(CStifItemParser *, CSlaveInfo *, TDesC &)
TBool ExecuteRunL(CStifItemParser *)
TBool ExecuteTestCtlL(CStifItemParser *, TTCKeywords::TKeywords)
voidParseOptArgL(const TDesC &, TPtrC &, TPtrC &)
voidParseRunParamsL(CStifItemParser *, CStartInfo &)
CStifItemParser *PreprocessLineL(TDesC &)
TBool ReceiveResponseEventCtlL(CStifTFwIfProt &)
TBool ReceiveResponseRunL(CStifTFwIfProt &)
TBool ReceiveResponseSendReceiveL(CStifTFwIfProt &)
TBool ReceiveResponseTestCtlL(CStifTFwIfProt &)
TBool ReceiveResponseUnknownL(CStifTFwIfProt &)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
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()
Private Member Enumerations
enumTRunnerState {
ERunnerIdle, ERunnerRunning, ERunnerWaitTestCase, ERunnerWaitEvent, ERunnerWaitUnset, ERunnerWaitTimeout, ERunnerCancel, ERunnerError, ERunnerAllocate, ERunnerFree, ERunnerRemote, ERunnerReady
}
Inherited Enumerations
CActive:TPriority
Private Attributes
TInt iEndLoopStartPos
TEventIf iEvent
TTimeIntervalMicroSeconds iExpectedLoopTime
HBufC *iLine
TInt iLoopCounter
TBuf< 10 >iLoopCounterDes
TInt iLoopStartPos
TInt iLoopTimes
TInt iPassedIterationCnt
TInt iPasslimit
TBool iPasslimitEnabled
TInt iPauseCombRemainingTime
RTimer iPauseCombTimer
TInt iPauseTime
RTimer iPauseTimer
TName iPausedTestCase
CRemoteTimer *iRemoteTimer
TBuf< 256 >iRunErrorMessage
TTime iStartTime
TRunnerState iState
CTestCombiner *iTestCombiner
TBool iTimedLoop
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CTestRunner(CTestCombiner *)

CTestRunner(CTestCombiner *aTestCombiner)[private]

C++ default constructor.

Parameters

CTestCombiner * aTestCombiner

~CTestRunner()

~CTestRunner()

Destructor.

Member Functions Documentation

CancelTestCases()

voidCancelTestCases()

Cancel testcases.

CheckDefined(TPtrC &)

TInt CheckDefined(TPtrC &aWord)[private]

Checks if aWord is defined value.

Parameters

TPtrC & aWord

CheckUnsetEvent()

TBool CheckUnsetEvent()[private]

Check unset event we are waiting.

ConstructL()

voidConstructL()[private]

By default Symbian OS constructor is private.

DoCancel()

voidDoCancel()[virtual]

DoCancel derived from CActive handles the Cancel.

ExecuteAllocateL(CStifItemParser *)

TBool ExecuteAllocateL(CStifItemParser *aItem)[private]

Executes allocate script line.

Parameters

CStifItemParser * aItem

ExecuteCombinerPauseL(CStifItemParser *)

TBool ExecuteCombinerPauseL(CStifItemParser *aItem)[private]

Executes pause in combiner

Parameters

CStifItemParser * aItem

ExecuteCompleteL(CStifItemParser *, CTestCase *)

TBool ExecuteCompleteL(CStifItemParser *aItem,
CTestCase *aTestCase
)[private]

Executes complete script line.

Parameters

CStifItemParser * aItem
CTestCase * aTestCase

ExecuteEndLoopL()

TBool ExecuteEndLoopL()[private]

Handle the endloop keyword operations.

ExecuteEventCtlL(CStifItemParser *, TTCKeywords::TKeywords)

TBool ExecuteEventCtlL(CStifItemParser *aItem,
TTCKeywords::TKeywordsaKeyword
)[private]

Executes event control command.

Parameters

CStifItemParser * aItem
TTCKeywords::TKeywords aKeyword

ExecuteEventSetL(CStifItemParser *)

TBool ExecuteEventSetL(CStifItemParser *aItem)[private]

Executes event set script line.

Parameters

CStifItemParser * aItem

ExecuteEventUnsetL(CStifItemParser *)

TBool ExecuteEventUnsetL(CStifItemParser *aItem)[private]

Executes event unset script line.

Parameters

CStifItemParser * aItem

ExecuteFreeL(CStifItemParser *)

TBool ExecuteFreeL(CStifItemParser *aItem)[private]

Executes free script line.

Parameters

CStifItemParser * aItem

ExecuteFreeL(CSlaveInfo *)

voidExecuteFreeL(CSlaveInfo *aSlave)[private]

Frees slave.

Parameters

CSlaveInfo * aSlave

ExecuteLineL(CStifItemParser *)

TBool ExecuteLineL(CStifItemParser *aItem)[private]

Executes one script line.

Parameters

CStifItemParser * aItem

ExecuteLoopL(CStifItemParser *)

voidExecuteLoopL(CStifItemParser *aItem)[private]

Handle the loop keyword operations.

Parameters

CStifItemParser * aItem

ExecutePauseL(CStifItemParser *, CTestCase *)

TBool ExecutePauseL(CStifItemParser *aItem,
CTestCase *aTestCase
)[private]

Executes pause script line.

Parameters

CStifItemParser * aItem
CTestCase * aTestCase

ExecuteRemoteEventCtlL(CStifItemParser *, CSlaveInfo *, TInt)

TBool ExecuteRemoteEventCtlL(CStifItemParser *aItem,
CSlaveInfo *aSlave,
TIntaCmd
)[private]

Executes remote event control script line.

Parameters

CStifItemParser * aItem
CSlaveInfo * aSlave
TInt aCmd

ExecuteRemoteL(CStifItemParser *)

TBool ExecuteRemoteL(CStifItemParser *aItem)[private]

Executes remote script line.

Parameters

CStifItemParser * aItem

ExecuteRemoteRunL(CStifItemParser *, CSlaveInfo *, HBufC *, TInt)

TBool ExecuteRemoteRunL(CStifItemParser *aItem,
CSlaveInfo *aSlave,
HBufC *aSetUnsetEvent = NULL,
TIntaCaseNumber = 0
)[private]

Executes remote run script line.

Parameters

CStifItemParser * aItem
CSlaveInfo * aSlave
HBufC * aSetUnsetEvent = NULL
TInt aCaseNumber = 0

ExecuteRemoteSendReceiveL(CStifItemParser *, CSlaveInfo *)

TBool ExecuteRemoteSendReceiveL(CStifItemParser *aItem,
CSlaveInfo *aSlave
)[private]

Executes asynchronous remote sendreceive control script line.

Parameters

CStifItemParser * aItem
CSlaveInfo * aSlave

ExecuteRemoteSetUnsetEventL(CStifItemParser *, CSlaveInfo *, TInt)

TBool ExecuteRemoteSetUnsetEventL(CStifItemParser *aItem,
CSlaveInfo *aSlave,
TIntaCmd
)[private]

Executes remote event set unset line

Parameters

CStifItemParser * aItem
CSlaveInfo * aSlave
TInt aCmd

ExecuteRemoteTestCtlL(CStifItemParser *, CTestCase *, TInt)

TBool ExecuteRemoteTestCtlL(CStifItemParser *aItem,
CTestCase *aTestCase,
TIntaCmd
)[private]

Executes remote test control script line.

Parameters

CStifItemParser * aItem
CTestCase * aTestCase
TInt aCmd

ExecuteRemoteUnknownL(CStifItemParser *, CSlaveInfo *, TDesC &)

TBool ExecuteRemoteUnknownL(CStifItemParser *aItem,
CSlaveInfo *aSlave,
TDesC &aCommand
)[private]

Executes remote unknown control script line.

Parameters

CStifItemParser * aItem
CSlaveInfo * aSlave
TDesC & aCommand

ExecuteRunL(CStifItemParser *)

TBool ExecuteRunL(CStifItemParser *aItem)[private]

Executes run script line.

Parameters

CStifItemParser * aItem

ExecuteTestCtlL(CStifItemParser *, TTCKeywords::TKeywords)

TBool ExecuteTestCtlL(CStifItemParser *aItem,
TTCKeywords::TKeywordsaKeyword
)[private]

Executes test control script line.

Parameters

CStifItemParser * aItem
TTCKeywords::TKeywords aKeyword

NewL(CTestCombiner *)

CTestRunner *NewL(CTestCombiner *aTestCombiner)[static]

Two-phased constructor.

Parameters

CTestCombiner * aTestCombiner

ParseOptArgL(const TDesC &, TPtrC &, TPtrC &)

voidParseOptArgL(const TDesC &aOptArg,
TPtrC &aArg,
TPtrC &aVal
)[private]

Parses optional argument.

Parameters

const TDesC & aOptArg
TPtrC & aArg
TPtrC & aVal

ParseRunParamsL(CStifItemParser *, CStartInfo &)

voidParseRunParamsL(CStifItemParser *aItem,
CStartInfo &aStartInfo
)[private]

Parses run parameters.

Parameters

CStifItemParser * aItem
CStartInfo & aStartInfo

PreprocessLineL(TDesC &)

CStifItemParser *PreprocessLineL(TDesC &line)[private]

Preprocess hardcoded values in test case.

Parameters

TDesC & line

ReceiveResponseEventCtlL(CStifTFwIfProt &)

TBool ReceiveResponseEventCtlL(CStifTFwIfProt &aMsg)[private]

Handles received Event system control responses from slave.

Parameters

CStifTFwIfProt & aMsg

ReceiveResponseL(TDesC &)

TBool ReceiveResponseL(TDesC &aMsg)

Handles received response from slave.

Parameters

TDesC & aMsg

ReceiveResponseRunL(CStifTFwIfProt &)

TBool ReceiveResponseRunL(CStifTFwIfProt &aMsg)[private]

Handles received run responses from slave.

Parameters

CStifTFwIfProt & aMsg

ReceiveResponseSendReceiveL(CStifTFwIfProt &)

TBool ReceiveResponseSendReceiveL(CStifTFwIfProt &aMsg)[private]

Handles received asynchronous sendreceive responses from slave.

Parameters

CStifTFwIfProt & aMsg

ReceiveResponseTestCtlL(CStifTFwIfProt &)

TBool ReceiveResponseTestCtlL(CStifTFwIfProt &aMsg)[private]

Handles received test control responses from slave.

Parameters

CStifTFwIfProt & aMsg

ReceiveResponseUnknownL(CStifTFwIfProt &)

TBool ReceiveResponseUnknownL(CStifTFwIfProt &aMsg)[private]

Handles received responses for unspecified commands from slave.

Parameters

CStifTFwIfProt & aMsg

RunError(TInt)

TInt RunError(TIntaError)[virtual]

RunError derived from CActive handles errors from active handler.

Parameters

TInt aError

RunL()

voidRunL()[virtual]

RunL derived from CActive handles the completed requests.

SetRunnerActive()

voidSetRunnerActive()

Calls SetActive() from CActive.

Member Enumerations Documentation

Enum TRunnerState

Enumerators

ERunnerIdle
ERunnerRunning
ERunnerWaitTestCase
ERunnerWaitEvent
ERunnerWaitUnset
ERunnerWaitTimeout
ERunnerCancel
ERunnerError
ERunnerAllocate
ERunnerFree
ERunnerRemote
ERunnerReady

Member Data Documentation

TInt iEndLoopStartPos

TInt iEndLoopStartPos[private]

TEventIf iEvent

TEventIf iEvent[private]

TTimeIntervalMicroSeconds iExpectedLoopTime

TTimeIntervalMicroSeconds iExpectedLoopTime[private]

HBufC * iLine

HBufC *iLine[private]

TInt iLoopCounter

TInt iLoopCounter[private]

TBuf< 10 > iLoopCounterDes

TBuf< 10 >iLoopCounterDes[private]

TInt iLoopStartPos

TInt iLoopStartPos[private]

TInt iLoopTimes

TInt iLoopTimes[private]

TInt iPassedIterationCnt

TInt iPassedIterationCnt[private]

TInt iPasslimit

TInt iPasslimit[private]

TBool iPasslimitEnabled

TBool iPasslimitEnabled[private]

TInt iPauseCombRemainingTime

TInt iPauseCombRemainingTime[private]

RTimer iPauseCombTimer

RTimer iPauseCombTimer[private]

TInt iPauseTime

TInt iPauseTime[private]

RTimer iPauseTimer

RTimer iPauseTimer[private]

TName iPausedTestCase

TName iPausedTestCase[private]

CRemoteTimer * iRemoteTimer

CRemoteTimer *iRemoteTimer[private]

TBuf< 256 > iRunErrorMessage

TBuf< 256 >iRunErrorMessage[private]

TTime iStartTime

TTime iStartTime[private]

TRunnerState iState

TRunnerState iState[private]

CTestCombiner * iTestCombiner

CTestCombiner *iTestCombiner[private]

TBool iTimedLoop

TBool iTimedLoop[private]