CUIEngine Class Reference

class CUIEngine : public CBase

Inherits from

Constructor & Destructor Documentation

CUIEngine(CUIIf *)

CUIEngine ( CUIIf * aUi ) [private]

C++ default constructor.

Parameters

CUIIf * aUi

~CUIEngine()

~CUIEngine ( ) [virtual]

Destructor.

Member Functions Documentation

AbortStartedTestCase(CUIEngineContainer *)

void AbortStartedTestCase ( CUIEngineContainer * aContainer )

Abort started test case.

Parameters

CUIEngineContainer * aContainer

AddTestCaseFile(const TDesC &, const TDesC &)

TInt AddTestCaseFile ( const TDesC & aModuleName,
const TDesC & aCaseFile
)

Used to add test case file for test module.

Returns Symbian OS error code.

Parameters

const TDesC & aModuleName
const TDesC & aCaseFile

AddTestModule(const TDesC &, const TDesC &)

TInt AddTestModule ( const TDesC & aModuleName,
const TDesC & aIniFile
)

Used to add test module to test framework.

Returns Symbian OS error code.

Parameters

const TDesC & aModuleName
const TDesC & aIniFile

Close()

TInt Close ( )

Used to close TestFramework.

Returns Symbian OS error code.

ConstructL()

void ConstructL ( ) [private]

Second phase constructor.

ErrorPrint(TErrorNotification &)

TInt ErrorPrint ( TErrorNotification & aError ) [private]

Error information from Test framework.

Returns Symbian OS error code.

Parameters

TErrorNotification & aError

GetTestCasesL(RPointerArray< CTestInfo > &, const TDesC &, const TDesC &)

TInt GetTestCasesL ( RPointerArray < CTestInfo > & aTestInfo,
const TDesC & aTestModule = ( TDesC &) KNullDesC (),
const TDesC & aTestCaseFile = ( TDesC &) KNullDesC ()
)

Get testcases from test modules. Returns test case information in aTestinfo. Test module name and test case file can be used to limit the set of test cases returned.

Returns Symbian OS error code.

Parameters

RPointerArray < CTestInfo > & aTestInfo
const TDesC & aTestModule = ( TDesC &) KNullDesC ()
const TDesC & aTestCaseFile = ( TDesC &) KNullDesC ()

GoingToReboot(CUIEngineContainer *, TRequestStatus &)

TInt GoingToReboot ( CUIEngineContainer * aContainer,
TRequestStatus & aStatus
) [private]

Forward reboot indication..

Parameters

CUIEngineContainer * aContainer
TRequestStatus & aStatus

NewL(CUIIf *)

CUIEngine * NewL ( CUIIf * aUi ) [static]

Parameters

CUIIf * aUi

Open(const TDesC &)

TInt Open ( const TDesC & aTestFrameworkIni )

Used to open TestFramework.

Returns Symbian OS error code.

Parameters

const TDesC & aTestFrameworkIni

PrintProg(CUIEngineContainer *, TTestProgress &)

TInt PrintProg ( CUIEngineContainer * aContainer,
TTestProgress & aProgress
) [private]

Progress information from Test case execution.

Returns Symbian OS error code.

Parameters

CUIEngineContainer * aContainer
TTestProgress & aProgress

RemoteMsg(CUIEngineContainer *, const TDesC &)

TInt RemoteMsg ( CUIEngineContainer * aContainer,
const TDesC & aMessage
) [private]

Forward remote messages.

Parameters

CUIEngineContainer * aContainer
const TDesC & aMessage

RemoveTestCaseFile(const TDesC &, const TDesC &)

TInt RemoveTestCaseFile ( const TDesC & aModuleName,
const TDesC & aCaseFile
)

Used to remove test case file from test module.

Returns Symbian OS error code.

Parameters

const TDesC & aModuleName
const TDesC & aCaseFile

RemoveTestModule(const TDesC &)

TInt RemoveTestModule ( const TDesC & aModuleName )

Used to remove test module to test framework.

Returns Symbian OS error code.

Parameters

const TDesC & aModuleName

StartTestCase(CUIEngineContainer *&, const CTestInfo &)

TInt StartTestCase ( CUIEngineContainer *& aContainer,
const CTestInfo & aTestInfo
)

Start selected test case identified with CTestInfo . Return TestId, which is handle used in subsequent test case execution control.

Returns Symbian OS error code.

Parameters

CUIEngineContainer *& aContainer
const CTestInfo & aTestInfo

TestEngine()

RTestEngine & TestEngine ( ) [inline]

TestExecuted(CUIEngineContainer *, TFullTestResult &)

void TestExecuted ( CUIEngineContainer * aContainer,
TFullTestResult & aFullTestResult
) [private]

Test case executed.

Returns Symbian OS error code.

Parameters

CUIEngineContainer * aContainer
TFullTestResult & aFullTestResult

Member Data Documentation

RPointerArray< CUIEngineContainer > iContainerArray

RPointerArray < CUIEngineContainer > iContainerArray [private]

CUIEngineErrorPrinter * iError

CUIEngineErrorPrinter * iError [private]

CStifLogger * iLogger

CStifLogger * iLogger

RTestEngine iTestEngine

RTestEngine iTestEngine [private]

RTestEngineServer iTestEngineServ

RTestEngineServer iTestEngineServ [private]

CUIIf * iUi

CUIIf * iUi [private]

Handle to UI.