CTestExecution Class Reference
class CTestExecution : public CObject |
Public Member Enumerations |
---|
enum | TRequestType { ERqPrint, ERqEvent, ERqSnd, ERqRcv, ERqInterference, ERqMeasurement, ERqCommand } |
enum | TTestState { ENotStarted, EOnGoing, EFinished, ECancelled } |
enum | TTestThreadFailure { ETestThreadOk = 0, ETestMemLeak = 0x00000001, ETestRequestLeak = 0x00000002, ETestHandleLeak = 0x00000004 } |
Constructor & Destructor Documentation
CTestExecution()
CTestExecution | ( | ) | [private] |
~CTestExecution()
~CTestExecution | ( | ) | [virtual] |
Member Functions Documentation
CancelCommandRequest()
TInt
| CancelCommandRequest | ( | ) | |
Cancels command request. Created to allow test case to kill itself.
CancelEvent()
Completes a event cancel request.
CancelEventRequest()
TInt
| CancelEventRequest | ( | ) | [private] |
CancelInterferenceRequest()
TInt
| CancelInterferenceRequest | ( | ) | [private] |
Cancels test interference request.
CancelPrintRequest()
TInt
| CancelPrintRequest | ( | ) | [private] |
CancelRemoteCmdRequest()
TInt
| CancelRemoteCmdRequest | ( | ) | [private] |
CancelRequestL(const RMessage2 &)
Cancels asynchronous request
CancelTestExecution()
TInt
| CancelTestExecution | ( | ) | |
Cancels test(s) execution in special cases e.g. timeout, exit etc.
CancelTestRequest()
TInt
| CancelTestRequest | ( | ) | [private] |
Cancels test execution request
CleanupEvents()
Completes print request if print queue is empty
CloseTestExecution(const RMessage2 &)
CommandMutexHandle()
TInt
| CommandMutexHandle | ( | ) | [inline] |
CommandSemHandle()
TInt
| CommandSemHandle | ( | ) | [inline] |
CompleteEvent(TInt)
void | CompleteEvent | ( | TInt | aError | ) | [private] |
CompletePrintRequestIfQueueEmpty()
void | CompletePrintRequestIfQueueEmpty | ( | ) | |
Completes print request if print queue is empty
CompleteTestExecution(const TInt, const TFullTestResult::TCaseExecutionResult, const TInt, const TInt, const TDesC &)
CompleteTestExecution(const TInt)
void | CompleteTestExecution | ( | const TInt | aCompletionCode | ) | |
Parameters
const TInt aCompletionCode | |
ConstructL(CTestModule *, TInt, const TFileName &)
By default Symbian OS constructor is private.
DoErrorPrint()
Completes a print request.
DoNotifyCommand()
Completes a command request. Created to allow test case to kill itself.
DoNotifyEvent()
Completes a event request.
DoNotifyInterference()
void | DoNotifyInterference | ( | ) | |
Completes a interference request.
DoNotifyMeasurement()
TInt
| DoNotifyMeasurement | ( | ) | |
Completes a measurement request.
DoNotifyPrint()
Completes a print request.
DoRemoteReceive()
Enables remote command receiving.
EventMutexHandle()
TInt
| EventMutexHandle | ( | ) | [inline] |
EventSemHandle()
TInt
| EventSemHandle | ( | ) | [inline] |
EventStateChange(TEventIf &)
FullResult()
Access to "shared" memory.
GetConfigFileName()
const TDesC & | GetConfigFileName | ( | ) | const [inline] |
GetTestCaseArguments()
const TDesC & | GetTestCaseArguments | ( | ) | const |
InterferenceMutexHandle()
TInt
| InterferenceMutexHandle | ( | ) | [inline] |
InterferenceSemHandle()
TInt
| InterferenceSemHandle | ( | ) | [inline] |
KillTestMeasurement()
TInt
| KillTestMeasurement | ( | ) | |
Make sure that any of the test measurement process's won't stay to run if test case is crashed of test measurement object is not deleted.
KillTestinterferenceThread()
TInt
| KillTestinterferenceThread | ( | ) | |
Make sure that any of the test interference thread's won't stay to run if test case is crashed of test interference object is not deleted.
MeasurementMutexHandle()
TInt
| MeasurementMutexHandle | ( | ) | [inline] |
MeasurementSemHandle()
TInt
| MeasurementSemHandle | ( | ) | [inline] |
NewL(CTestModule *, TInt, const TFileName &)
NewL is first phase of two-phased constructor.
NotifyCommand(const RMessage2 &)
Executes command for ongoing test case. Created to allow test case to kill itself.
NotifyEvent(const RMessage2 &)
Sets a event notification
NotifyPrint(const RMessage2 &)
Sets a print notification
NotifyRemoteCmd(const RMessage2 &)
Sets a RemoteCmd notification
PrintMutexHandle()
TInt
| PrintMutexHandle | ( | ) | [inline] |
PrintSemHandle()
TInt
| PrintSemHandle | ( | ) | [inline] |
RcvMutexHandle()
TInt
| RcvMutexHandle | ( | ) | [inline] |
RcvSemHandle()
TInt
| RcvSemHandle | ( | ) | [inline] |
ReadRemoteCmdInfo(const RMessage2 &)
Reads a RemoteCmd notification
Resume(const RMessage2 &)
Resumes a paused test case
RunTestCase(const RMessage2 &)
SetTestThread(TThreadId)
void | SetTestThread | ( | TThreadId | aThreadId | ) | [inline] |
Set execution test thread id.
SetThreadState(const TTestState)
Set thread State. This function can be called from test execution thread.
SndMutexHandle()
TInt
| SndMutexHandle | ( | ) | [inline] |
SndSemHandle()
TInt
| SndSemHandle | ( | ) | [inline] |
TestThreadFailure()
TInt & | TestThreadFailure | ( | ) | [inline] |
TestThreadMutexHandle()
TInt
| TestThreadMutexHandle | ( | ) | [inline] |
Get mutex handle. This mutex meaning is to make sure that test complete and test case cancel operations are not executed at the same time.
TestThreadRequestComplete(TRequestStatus *, TInt)
Complete request in test thread.
UnsetEvent(TEventIf &, const RMessage2 &)
UnsetStateEvents()
Unsets all pending state events.
WaitEvent(TEventIf &, TRequestStatus *)
WritePrint(TTestProgress &)
Writes a print notification to client memory space.
Member Enumerations Documentation
Enum TRequestType
Enumerators
ERqPrint | |
ERqEvent | |
ERqSnd | |
ERqRcv | |
ERqInterference | |
ERqMeasurement | |
ERqCommand | |
Enum TTestState
Enumerators
ENotStarted | |
EOnGoing | |
EFinished | |
ECancelled | |
Enum TTestThreadFailure
Enumerators
ETestThreadOk = 0 | |
ETestMemLeak = 0x00000001 | |
ETestRequestLeak = 0x00000002 | |
ETestHandleLeak = 0x00000004 | |
Member Data Documentation
TInt
iCaseNumber
TInt
| iCaseNumber | [private] |
CCommandDef * iCommandDef
CCommandHandler * iCommandHandler
CCommandHandler * | iCommandHandler | [private] |
TBool
iCommandNotifyAvailable
TBool
| iCommandNotifyAvailable | [private] |
HBufC * iConfigNameBuffer
HBufC * | iConfigNameBuffer | [private] |
RPointerArray< TEvent > iEventArray
CEventHandler * iEventHandler
TBool
iEventNotifyAvailable
TBool
| iEventNotifyAvailable | [private] |
TFullTestResult
iFullResult
CInterferenceHandler * iInterferenceHandler
CInterferenceHandler * | iInterferenceHandler | [private] |
RMutex
iInterferenceMutex
RMutex
| iInterferenceMutex | [private] |
TBool
iInterferenceNotifyAvailable
TBool
| iInterferenceNotifyAvailable | [private] |
RSemaphore
iInterferenceSem
CMeasurementHandler * iMeasurementHandler
CMeasurementHandler * | iMeasurementHandler | [private] |
RPointerArray< TMeasurementHandling > iMeasurementHandlingArray
RMutex
iMeasurementMutex
RMutex
| iMeasurementMutex | [private] |
TBool
iMeasurementNotifyAvailable
TBool
| iMeasurementNotifyAvailable | [private] |
RSemaphore
iMeasurementSem
RPointerArray< HBufC8 > iMessageQueue
CTestModuleContainer * iModuleContainer
CTestModule * iModuleSession
RMessage2
iNotifyCommandMessage
RMessage2
iNotifyEventMessage
RMessage2
iNotifyInterferenceMessage
RMessage2
| iNotifyInterferenceMessage | [private] |
RMessage2
iNotifyMeasurementMessage
RMessage2
iNotifyPrintMessage
RMessage2
iNotifyRemoteCmdMessage
CPrintHandler * iPrintHandler
TBool
iPrintNotifyAvailable
TBool
| iPrintNotifyAvailable | [private] |
CPrintQueue * iPrintQueue
CRcvHandler * iRcvHandler
TBool
iRemoteReceiveAvailable
TBool
| iRemoteReceiveAvailable | [private] |
TBool
iRemoteSendAvailable
TBool
| iRemoteSendAvailable | [private] |
RArray< RThread > iSTIFTestInterferenceArray
CSndHandler * iSndHandler
RPointerArray< TDesC > iStateEvents
HBufC * iTestCaseArgs
HBufC * | iTestCaseArgs | [private] |
RMessage2
iTestExeMessage
TTestInterference
iTestInterference
TTestMeasurement
iTestMeasurement
TInt
iTestThreadFailure
TInt
| iTestThreadFailure | [private] |
RMutex
iTestThreadMutex
RMutex
| iTestThreadMutex | [private] |
TBool
iTestThreadOpen
TBool
| iTestThreadOpen | [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.