RTestEngine Class Reference
class RTestEngine : public RSubSessionBase |
Public Member Functions |
---|
IMPORT_C TInt | AddConfigFile(const TName &, const TFileName &) |
IMPORT_C TInt | AddTestCaseResultToTestReport(const TTestInfo &, const TFullTestResult &, const TInt) |
IMPORT_C TInt | AddTestModule(const TName &, const TFileName &) |
IMPORT_C TInt | CancelAsyncRequest(TInt) |
IMPORT_C void | Close() |
IMPORT_C void | EnumerateTestCases(TCaseCount &, TRequestStatus &) |
IMPORT_C void | ErrorNotification(TErrorNotificationPckg &, TRequestStatus &) |
IMPORT_C void | Event(TEventIfPckg &, TRequestStatus &) |
IMPORT_C TInt | GetTestCases(CFixedFlatArray< TTestInfo > &) |
IMPORT_C TInt | Open(RTestEngineServer &, const TFileName &) |
IMPORT_C TInt | OpenLoggerSession(RTestEngineServer &, TLoggerSettings &) |
IMPORT_C TInt | RemoveConfigFile(const TName &, const TFileName &) |
IMPORT_C TInt | RemoveTestModule(const TName &) |
IMPORT_C TInt | SetAttribute(TAttribute, const TDesC &) |
Inherited Functions |
---|
| RSubSessionBase::CloseSubSession(TInt) |
| RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &) |
| RSubSessionBase::CreateSubSession(const RSessionBase &,TInt) |
| RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &) |
| RSubSessionBase::RSubSessionBase() |
| RSubSessionBase::Send(TInt)const |
| RSubSessionBase::Send(TInt,const TIpcArgs &)const |
| RSubSessionBase::SendReceive(TInt)const |
| RSubSessionBase::SendReceive(TInt,TRequestStatus &)const |
| RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const |
| RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const |
| RSubSessionBase::Session()const |
| RSubSessionBase::SubSessionHandle()const |
Member Functions Documentation
AddConfigFile(const TName &, const TFileName &)
AddConfigFile is used to add dynamically a new config file to the Test Module specified by aTestModule. New test cases are then executed by calling first GetTestCases and then RunTestCase. Thus new test cases can be run from the Test Module without restarting the Test Framework.
AddTestCaseResultToTestReport(const TTestInfo &, const TFullTestResult &, const TInt)
Add info about test case to test report.
AddTestModule(const TName &, const TFileName &)
AddTestModule is used to add dynamically a new Test Module to the Test Framework. Test cases can then be run from the new Test Module without restarting the Test Framework. If the Test Module specified by aTestModule doesn't exists this method returns KErrNotFound. If the Test Module has been already loaded this method returns KErrAlreadyExists.
CancelAsyncRequest(TInt)
IMPORT_C TInt | CancelAsyncRequest | ( | TInt | aReqToCancel | ) | |
Asynchronous request can be canceled with CancelAsyncRequest method. The aReqToCancel parameter defines the request that will be canceled.
EnumerateTestCases(TCaseCount &, TRequestStatus &)
Test cases are inquired by two-phased operation calling first the EnumerateTestCases method and then the GetTestCases. Test cases are inquired from Test Engine that will inquire them from Test Modules. EnumerateTestCases requests the needed array size for test cases that will be inquired by GetTestCases method. When the EnumerateTestCases is completed succesfully the GetTestCases method is called to retrieve test cases to CArrayFixFlat <TTestInfo> list object.
TTestInfo defines individual test case and, if needed, a test set (TName iParent) where the test case belongs to. TTestInfo is used to create test case by calling RTestCase::Open that constructs the actual test case. Test case is then executed calling RTestCase::RunTestCase.
ErrorNotification(TErrorNotificationPckg &, TRequestStatus &)
ErrorNotification obtains error notifications from test engine.
Event(TEventIfPckg &, TRequestStatus &)
Event is used to get and set events in STIF Test Framework. TEventIf defines the event request information.
GetTestCases(CFixedFlatArray< TTestInfo > &)
GetTestCases retrieves test cases from Test Modules to aTestCaseBuffer that is a list consisting of several TTestInfo objects. If this method is called without previously succesfully called EnumerateTestCases method, this function returns the KErrNotReady.
Open(RTestEngineServer &, const TFileName &)
OpenLoggerSession(RTestEngineServer &, TLoggerSettings &)
Used to get Logger's overwrite parameters.
RemoveConfigFile(const TName &, const TFileName &)
RemoveConfigFile is used to remove a config file from the Test Module specified by aTestModule.
RemoveTestModule(const TName &)
IMPORT_C TInt | RemoveTestModule | ( | const TName & | aTestModule | ) | |
RemoveTestModule is used to remove the existing Test Module from Test Framework. If there are not test cases executing in the Test Module it will be shut down. If there is test case running from the Test Module this method returns KErrInUse. If the Test Module specified by aTestModule is not loaded this method returns KErrNotFound.
Parameters
const TName & aTestModule | |
SetAttribute(TAttribute, const TDesC &)
Sets attributes to Test Framework
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.