CTestModuleContainer Class Reference
class CTestModuleContainer : public CActive |
Constructor & Destructor Documentation
CTestModuleContainer()
CTestModuleContainer | ( | ) | [private] |
~CTestModuleContainer()
~CTestModuleContainer | ( | ) | [virtual] |
Member Functions Documentation
AllowedExitCode()
TInt & | AllowedExitCode | ( | ) | [inline] |
ChangeOperation(const TOperation, const TFileName &, const TInt)
Changes the operation, can fail
ChangeOperationNoError(const TOperation, const TInt)
void | ChangeOperationNoError | ( | const TOperation | aOperation, |
| const TInt | aInt |
| ) | |
Complete(const TInt)
void | Complete | ( | const TInt | aCompletionCode | ) | [private] |
Completes operation from test execution thread or from undertaker
Parameters
const TInt aCompletionCode | |
ConstructL(const TDesC &, CTestModule *, const TDesC &)
By default Symbian OS constructor is private.
DeleteTestModule()
void | DeleteTestModule | ( | ) | [private] |
Delete a test module instance
DoCancel()
DoCancel derived from CActive handles the Cancel
EnumerateInThread()
TInt
| EnumerateInThread | ( | ) | [private] |
Function that enumerates test cases in execution thread context.
EnumerateTestCases(const TFileName &)
ErrorPrintSemHandle()
TInt
| ErrorPrintSemHandle | ( | ) | [inline] |
ExecuteTestCaseInThread()
TInt
| ExecuteTestCaseInThread | ( | ) | [private] |
Function that executes test case in execution thread context.
ExecutionThread(TAny *)
TInt
| ExecutionThread | ( | TAny * | aParams | ) | [private, static] |
Test case execution thread thread function
FreeEnumerationData()
TInt
| FreeEnumerationData | ( | ) | |
Frees the enumeration data
FreeEnumerationDataInThread()
void | FreeEnumerationDataInThread | ( | ) | [private] |
Function that frees the enumeration data in execution thread context.
GetTestCaseTitleL(TDes &)
void | GetTestCaseTitleL | ( | TDes & | aTestCaseTitle | ) | |
Get title of currently running test case
GetTestModule()
Gets pointer to test module
GetTestModuleParams(const TDesC &, const TDesC &, TInt &, TInt &, TInt &)
TInt
| GetTestModuleParams | ( | const TDesC & | aModuleName, |
| const TDesC & | aConfig, |
| TInt & | aStackSize, |
| TInt & | aHeapMinSize, |
| TInt & | aHeapMaxSize |
| ) | [private] |
Load test module dynamically. If loading is done succesfully then get test module's parameters according to version. Verifies received parameters also.
Initialize(const TFileName &, const TBool)
Initialize the test module
InitializeModuleInThread(RLibrary &)
Function that initialise module in execution thread context.
KillTestMeasurement()
void | 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()
void | 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.
KillThread(const TInt)
void | KillThread | ( | const TInt | aCode | ) | |
ModuleResult()
Returns error code from module
NewL(const TDesC &, CTestModule *, const TDesC &)
NewL is first phase of two-phased constructor.
OperationChangeSemHandle()
TInt
| OperationChangeSemHandle | ( | ) | [inline] |
OperationErrorResult()
TInt & | OperationErrorResult | ( | ) | |
Returns error code from operation
OperationIntBuffer()
TInt & | OperationIntBuffer | ( | ) | [inline] |
OperationName()
const TDesC & | OperationName | ( | ) | [inline] |
OperationStartSemHandle()
TInt
| OperationStartSemHandle | ( | ) | [inline] |
OperationText()
TDes & | OperationText | ( | ) | [inline] |
ReadParametersFromScriptFileL(const TDesC &, TInt &, TInt &, TInt &)
TInt
| ReadParametersFromScriptFileL | ( | const TDesC & | aConfig, |
| TInt & | aStackSize, |
| TInt & | aHeapMinSize, |
| TInt & | aHeapMaxSize |
| ) | [private] |
Parse stack and heap information for TestScripter's test case (config) file.
ReadParametersFromTestModule(const TDesC &, CTestModuleParam *&)
Loads dynamically testmodule and calls SetRequirements()- method for test module parameter handling.
ResolveCompletionCode(TInt, TInt)
TInt
| ResolveCompletionCode | ( | TInt | aLeaveCode, |
| TInt | aErrorCode |
| ) | [private] |
Function that resolves test case completion code
RunError(TInt)
RunError derived from CActive handles errors from active handler.
RunL()
RunL derived from CActive handles the completed requests.
RunTestCase(const TFileName &, const TInt, const RMessage2 &)
SetExecutionSubSession(CTestExecution *)
Set a new execution subsession
SetThreadContainer(CTestThreadContainer *)
Access to "shared" memory. Called from test thread'
StartAndWaitOperation()
TInt
| StartAndWaitOperation | ( | ) | [private] |
Start and wait until operation is completed.
TestCases()
Returns pointer to test cases
TestModuleIniFile()
const TDesC & | TestModuleIniFile | ( | ) | |
TestModuleName()
const TDesC & | TestModuleName | ( | ) | |
Member Enumerations Documentation
Enum TOperation
Enumerators
EInitializeModule | |
EEnumerateInThread | |
EExecuteTestInThread | |
EFreeEnumerationData | |
EExit | |
Enum TRequestType
Enumerators
ERqTestCase | |
ERqErrorPrint | |
Member Data Documentation
TInt
iAllowedExitCode
TInt
| iAllowedExitCode | [private] |
CTestModuleIf::TExitReason
iAllowedExitReason
CTestExecution * iCTestExecution
CTestModule * iCTestModule
TErrorNotification
iErrorPrint
CErrorPrintHandler * iErrorPrintHandler
RSemaphore
iErrorPrintSem
TInt
iErrorResult
TInt
| iErrorResult | [private] |
HBufC * iModuleNameBuffer
HBufC * | iModuleNameBuffer | [private] |
TInt
iModuleResult
TInt
| iModuleResult | [private] |
CActiveSchedulerWait * iNestedActiveScheduler
RSemaphore
iOperationChangeSemaphore
TInt
iOperationIntBuffer
TInt
| iOperationIntBuffer | [private] |
TPtr
iOperationName
TPtr
| iOperationName | [private] |
RSemaphore
iOperationStartSemaphore
TRequestStatus
iOperationStatus
TBuf< 30 > iOperationText
TBuf< 30 > | iOperationText | [private] |
TOperation
iOperationType
TThreadId
iServerThreadId
CTestThreadContainer * iThreadContainer
CUnderTaker * iUnderTaker
TBool
iUpAndRunning
TBool
| iUpAndRunning | [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.