CTestEngine Class Reference
class CTestEngine : public CSession2 |
Public Member Functions |
---|
RPointerArray< TEventMsg > & | ClientEvents() |
void | CloseSession() |
TInt
| CountResources() |
CTestEventController * | CtlEventL(const TEventIf &, TRequestStatus &) |
void | EnumerationCompleted(TInt, TInt) |
void | ErrorPrint(const TInt, TPtrC) |
void | ErrorPrint(TErrorNotificationPckg) |
void | ExecuteCommandL(TCommand, TDesC8 &) |
void | FlushAtsLogger() |
TPtrC
| GetDeviceResetDllName() |
CTestModuleController * | GetFreeOrCreateModuleControllerL(TTestInfo &, CTestModuleController **) |
TInt
| GetIndexForNewTestModuleController(void) |
TBool
| IsStateEventAndSet(const TName &) |
void | LeaveIfErrorWithNotify(TInt, const TDesC &) |
void | LeaveIfErrorWithNotify(TInt) |
void | LeaveWithNotifyL(TInt, const TDesC &) |
void | LeaveWithNotifyL(TInt) |
CStifLogger * | Logger() |
CTestEngine * | NewL(CTestEngineServer *) |
void | NumResources(const RMessage2 &) |
void | PanicClient(TTestEnginePanic, const RMessage2 &) |
void | PauseAllTestCases() |
TInt
| ReadRebootParams(TTestInfo &, TDes &, TInt &) |
void | ServiceL(const RMessage2 &) |
TInt
| StifMeasurement() |
RPointerArray< CTestCase > & | TestCaseArray() |
void | TestModuleCrash(CTestModuleController *) |
TInt
| WriteRebootParams(TTestInfo &, TInt &, TDesC &) |
Constructor & Destructor Documentation
Member Functions Documentation
AddConfigFileL(const RMessage2 &)
void | AddConfigFileL | ( | const RMessage2 & | aMessage | ) | [private] |
Adds new config file to Test Module
AddTestCaseToTestReport(const RMessage2 &)
Add test case info to test report.
AddTestModuleL(const RMessage2 &)
void | AddTestModuleL | ( | const RMessage2 & | aMessage | ) | [private] |
CancelAsyncRequest(const RMessage2 &)
void | CancelAsyncRequest | ( | const RMessage2 & | aMessage | ) | [private] |
Cancel outstanding asynchronous request
CloseLoggerSettings()
void | CloseLoggerSettings | ( | ) | [private] |
CloseTestEngineL(TUint)
void | CloseTestEngineL | ( | TUint | aHandle | ) | [private] |
ConstructL(CTestEngineServer *)
By default Symbian OS constructor is private.
CountResources()
TInt
| CountResources | ( | ) | [virtual] |
Return the number of resources owned by the session. Required by CSession if derived class implements resource mark-start and mark-end protocol.
CtlEventL(const TEventIf &, TRequestStatus &)
Callback to control events.
DeleteTestCase(TUint)
void | DeleteTestCase | ( | TUint | aHandle | ) | [private] |
Destroy the created CTestCase subsession. Cannot fail - can panic client.
DisableStifMeasurement(const TDesC &)
TInt
| DisableStifMeasurement | ( | const TDesC & | aInfoType | ) | [private] |
Set measurements related information, disable measurement.
DispatchMessageL(const RMessage2 &)
void | DispatchMessageL | ( | const RMessage2 & | aMessage | ) | [private] |
EnableStifMeasurement(const TDesC &)
TInt
| EnableStifMeasurement | ( | const TDesC & | aInfoType | ) | [private] |
Set measurements related information, enable measurement.
EnumerateTestCasesL(const RMessage2 &)
void | EnumerateTestCasesL | ( | const RMessage2 & | aMessage | ) | [private] |
EnumerationCompleted(TInt, TInt)
Callback to inform that enumeration of test cases is completed
ErrorPrint(const TInt, TPtrC)
void | ErrorPrint | ( | const TInt | aPriority, |
| TPtrC | aError |
| ) | |
ErrorPrint print errors. This version is used to print engine own errors.
ErrorPrint(TErrorNotificationPckg)
ErrorPrint print errors. This version is used to forward errors.
EventControlL(const RMessage2 &)
void | EventControlL | ( | const RMessage2 & | aMessage | ) | [private] |
ExecuteCommandL(TCommand, TDesC8 &)
Executes command received from test case. It was created to allow test case to kill itself.
FlushAtsLogger()
Flush ATS logger buffers.
GetDeviceResetDllName()
TPtrC
| GetDeviceResetDllName | ( | ) | |
Get device reset module's DLL name.
GetFreeOrCreateModuleControllerL(TTestInfo &, CTestModuleController **)
Return free module controller specified by given parameter. If it can't be found, new one will be created.
GetIndexForNewTestModuleController(void)
TInt
| GetIndexForNewTestModuleController | ( | void | | ) | |
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.
GetTestCasesL(const RMessage2 &)
void | GetTestCasesL | ( | const RMessage2 & | aMessage | ) | [private] |
HandleErrorNotificationL(const RMessage2 &)
void | HandleErrorNotificationL | ( | const RMessage2 & | iMessage | ) | [private] |
Handles error notifications
InitEngineL(const RMessage2 &)
void | InitEngineL | ( | const RMessage2 & | aMessage | ) | [private] |
Initialize the Test Engine.
InitTestReportAndLoggerVarL()
void | InitTestReportAndLoggerVarL | ( | ) | [private] |
Initialize test report and logger's overwrite variables
IsStateEventAndSet(const TName &)
Callback to check state event status.
LeaveIfErrorWithNotify(TInt, const TDesC &)
void | LeaveIfErrorWithNotify | ( | TInt | aCode, |
| const TDesC & | aText |
| ) | |
If error leave with notify
LeaveIfErrorWithNotify(TInt)
void | LeaveIfErrorWithNotify | ( | TInt | aCode | ) | |
If error leave with notify
LeaveWithNotifyL(TInt, const TDesC &)
void | LeaveWithNotifyL | ( | TInt | aCode, |
| const TDesC & | aText |
| ) | |
LeaveWithNotifyL(TInt)
void | LeaveWithNotifyL | ( | TInt | aCode | ) | |
LoggerSettings(const RMessage2 &)
void | LoggerSettings | ( | const RMessage2 & | iMessage | ) | [private] |
Get Logger's overwrite parameters
ModuleControllerByName(const TName &)
Get module controller by name
Parameters
const TName & aModuleName | |
NewL(CTestEngineServer *)
NewL is two-phased constructor.
NewTestCaseL(const RMessage2 &)
void | NewTestCaseL | ( | const RMessage2 & | aMessage | ) | [private] |
NumResources(const RMessage2 &)
NumResources is used to provide reserver resources to client.
PanicClient(TTestEnginePanic, const RMessage2 &)
ParseRebootParamsL()
TInt
| ParseRebootParamsL | ( | ) | [private] |
Parse the Reboot related information from the file.
ParseTestModulesL(CStifParser *, CTestModuleList *, const TDesC &, const TDesC &)
Parse and search for module info and fill list of modules.
PauseAllTestCases()
Pause all test case(s) which are/is running.
ProcessErrorQueue()
void | ProcessErrorQueue | ( | ) | [private] |
ReadEngineDefaultsL(CStifParser *, CSTIFTestFrameworkSettings *)
Parse Test Engine defaults from STIF initialization file.
ReadRebootParams(TTestInfo &, TDes &, TInt &)
Read the Reboot related information from the file.
ReadTestModulesL(CStifParser *)
Parse Test modules and module information from STIFTestFramework initialization file.
RemoveConfigFileL(const RMessage2 &)
void | RemoveConfigFileL | ( | const RMessage2 & | aMessage | ) | [private] |
Removes config file from test module
RemoveTestModuleL(const RMessage2 &)
ServiceL(const RMessage2 &)
void | ServiceL | ( | const RMessage2 & | aMessage | ) | [virtual] |
SetAttributeL(const RMessage2 &)
void | SetAttributeL | ( | const RMessage2 & | aMessage | ) | [private] |
Sets attributes to Test Framework
SetLoggerSettings(TLoggerSettings &)
Set parsed logger's settings to TestEngine side.
StifMeasurement()
Get measurements related information. Returns is measurement disable.
TestCaseByHandle(TUint, const RMessage2 &)
TestModuleConfigFileL(CTestModuleController *, CStifSectionParser *, TDesC &)
TestModuleCrash(CTestModuleController *)
For Recovering from serious testmodulecrash situations (KErrserverTerminated (-15)) Clones TestModuleController
UpdateEventL(const TEventIf &)
void | UpdateEventL | ( | const TEventIf & | aEvent | ) | [private] |
WriteRebootParams(TTestInfo &, TInt &, TDesC &)
Write the Reboot related information to file.
Member Data Documentation
RPointerArray< TEventMsg > iClientEvents
TInt64
iDefaultTimeout
TInt64
| iDefaultTimeout | [private] |
HBufC * iDeviceResetDllName
HBufC * | iDeviceResetDllName | [private] |
TInt
iDisableMeasurement
TInt
| iDisableMeasurement | [private] |
TInt
iEnumerateModuleCount
TInt
| iEnumerateModuleCount | [private] |
RMessage2
iEnumerationMessage
TBool
iErrorMessageAvailable
TBool
| iErrorMessageAvailable | [private] |
RArray< TErrorNotification > iErrorQueue
TInt
iIndexTestModuleControllers
TInt
| iIndexTestModuleControllers | [private] |
TBool
iIsTestReportGenerated
TBool
| iIsTestReportGenerated | [private] |
RPointerArray< CTestModuleController > iModules
TPtrC
iRebootDefaultFilename
TPtrC
| iRebootDefaultFilename | [private] |
TPtrC
iRebootDefaultPath
TPtrC
| iRebootDefaultPath | [private] |
HBufC * iRebootFilename
HBufC * | iRebootFilename | [private] |
CRebootParams * iRebootParams
HBufC * iRebootPath
HBufC * | iRebootPath | [private] |
TUint
iReportMode
TUint
| iReportMode | [private] |
TUint
iReportOutput
TUint
| iReportOutput | [private] |
TInt
iResourceCount
TInt
| iResourceCount | [private] |
TBool
iSeparateProcesses
TBool
| iSeparateProcesses | [private] |
RSettingServer
iSettingServer
RPointerArray< HBufC > iStateEvents
RPointerArray< CTestCase > iTestCaseArray
CTestEngineServer * iTestEngineServer
CObjectIx * iTestEngineSubSessions
RPointerArray< TTestModuleVersionInfo > iTestModulesVersionInfo
CTestReport * iTestReport
TBool
iUITestingSupport
TBool
| iUITestingSupport | [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.