CTestRunner Class Reference
|
class CTestRunner : public CActive
|
|
Private Member Functions
|
|
|
CTestRunner
(
CTestCombiner
*)
|
|
TInt
|
CheckDefined
(
TPtrC
&)
|
|
TBool
|
CheckUnsetEvent
()
|
|
void
|
ConstructL
()
|
|
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
*)
|
|
void
|
ExecuteFreeL
(
CSlaveInfo
*)
|
|
TBool
|
ExecuteLineL
(
CStifItemParser
*)
|
|
void
|
ExecuteLoopL
(
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
)
|
|
void
|
ParseOptArgL
(const
TDesC
&,
TPtrC
&,
TPtrC
&)
|
|
void
|
ParseRunParamsL
(
CStifItemParser
*,
CStartInfo
&)
|
|
CStifItemParser
*
|
PreprocessLineL
(
TDesC
&)
|
|
TBool
|
ReceiveResponseEventCtlL
(
CStifTFwIfProt
&)
|
|
TBool
|
ReceiveResponseRunL
(
CStifTFwIfProt
&)
|
|
TBool
|
ReceiveResponseSendReceiveL
(
CStifTFwIfProt
&)
|
|
TBool
|
ReceiveResponseTestCtlL
(
CStifTFwIfProt
&)
|
|
TBool
|
ReceiveResponseUnknownL
(
CStifTFwIfProt
&)
|
|
Private Member Enumerations
|
|
enum
|
TRunnerState
{
ERunnerIdle
,
ERunnerRunning
,
ERunnerWaitTestCase
,
ERunnerWaitEvent
,
ERunnerWaitUnset
,
ERunnerWaitTimeout
,
ERunnerCancel
,
ERunnerError
,
ERunnerAllocate
,
ERunnerFree
,
ERunnerRemote
,
ERunnerReady
}
|
Constructor & Destructor Documentation
CTestRunner(CTestCombiner *)
Member Functions Documentation
CheckDefined(TPtrC &)
|
TInt
|
CheckDefined
|
(
|
TPtrC
&
|
aWord
|
)
|
[private]
|
Checks if aWord is defined value.
CheckUnsetEvent()
|
TBool
|
CheckUnsetEvent
|
(
|
)
|
[private]
|
Check unset event we are waiting.
ConstructL()
|
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian OS constructor is private.
DoCancel()
|
void
|
DoCancel
|
(
|
)
|
[virtual]
|
DoCancel derived from
CActive
handles the Cancel.
ExecuteAllocateL(CStifItemParser *)
Executes allocate script line.
ExecuteCombinerPauseL(CStifItemParser *)
Executes pause in combiner
ExecuteCompleteL(CStifItemParser *, CTestCase *)
Executes complete script line.
ExecuteEndLoopL()
|
TBool
|
ExecuteEndLoopL
|
(
|
)
|
[private]
|
Handle the endloop keyword operations.
ExecuteEventCtlL(CStifItemParser *, TTCKeywords::TKeywords)
Executes event control command.
ExecuteEventSetL(CStifItemParser *)
Executes event set script line.
ExecuteEventUnsetL(CStifItemParser *)
Executes event unset script line.
ExecuteFreeL(CStifItemParser *)
Executes free script line.
ExecuteFreeL(CSlaveInfo *)
|
void
|
ExecuteFreeL
|
(
|
CSlaveInfo
*
|
aSlave
|
)
|
[private]
|
ExecuteLineL(CStifItemParser *)
Executes one script line.
ExecuteLoopL(CStifItemParser *)
Handle the loop keyword operations.
ExecutePauseL(CStifItemParser *, CTestCase *)
Executes pause script line.
ExecuteRemoteEventCtlL(CStifItemParser *, CSlaveInfo *, TInt)
Executes remote event control script line.
ExecuteRemoteL(CStifItemParser *)
Executes remote script line.
ExecuteRemoteRunL(CStifItemParser *, CSlaveInfo *, HBufC *, TInt)
Executes remote run script line.
ExecuteRemoteSendReceiveL(CStifItemParser *, CSlaveInfo *)
Executes asynchronous remote sendreceive control script line.
ExecuteRemoteSetUnsetEventL(CStifItemParser *, CSlaveInfo *, TInt)
Executes remote event set unset line
ExecuteRemoteTestCtlL(CStifItemParser *, CTestCase *, TInt)
Executes remote test control script line.
ExecuteRemoteUnknownL(CStifItemParser *, CSlaveInfo *, TDesC &)
Executes remote unknown control script line.
ExecuteRunL(CStifItemParser *)
Executes run script line.
ExecuteTestCtlL(CStifItemParser *, TTCKeywords::TKeywords)
Executes test control script line.
ParseOptArgL(const TDesC &, TPtrC &, TPtrC &)
|
void
|
ParseOptArgL
|
(
|
const
TDesC
&
|
aOptArg,
|
|
|
TPtrC
&
|
aArg,
|
|
|
TPtrC
&
|
aVal
|
|
|
)
|
[private]
|
Parses optional argument.
ParseRunParamsL(CStifItemParser *, CStartInfo &)
PreprocessLineL(TDesC &)
Preprocess hardcoded values in test case.
ReceiveResponseEventCtlL(CStifTFwIfProt &)
Handles received Event system control responses from slave.
ReceiveResponseL(TDesC &)
Handles received response from slave.
ReceiveResponseRunL(CStifTFwIfProt &)
Handles received run responses from slave.
ReceiveResponseSendReceiveL(CStifTFwIfProt &)
Handles received asynchronous sendreceive responses from slave.
ReceiveResponseTestCtlL(CStifTFwIfProt &)
Handles received test control responses from slave.
ReceiveResponseUnknownL(CStifTFwIfProt &)
Handles received responses for unspecified commands from slave.
RunError(TInt)
RunError derived from
CActive
handles errors from active handler.
RunL()
RunL derived from
CActive
handles the completed requests.
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]
|
TTimeIntervalMicroSeconds
iExpectedLoopTime
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]
|
TName
iPausedTestCase
|
TName
|
iPausedTestCase
|
[private]
|
CRemoteTimer * iRemoteTimer
TBuf< 256 > iRunErrorMessage
|
TBuf
< 256 >
|
iRunErrorMessage
|
[private]
|
TTime
iStartTime
|
TTime
|
iStartTime
|
[private]
|
CTestCombiner * iTestCombiner
TBool
iTimedLoop
|
TBool
|
iTimedLoop
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.