CTestCase Class Reference

class CTestCase : public CObject

Inherits from

Public Member Functions
~CTestCase()
voidCancelAsyncRequest(const RMessage2 &)
TBool CheckCtlEvent(const TEventIf &)
voidCloseTestCase()
voidCtlEvent(const TEventIf &, TRequestStatus &)
voidExecuteCommandL(TCommand, TDesC8 &)
CTestModuleController *GetModuleControllers(CTestModuleController **)
const TDesC &ModuleName()
CTestCase *NewL(CTestEngine *, CTestModuleController *, CTestReport *, TTestInfo &, CTestModuleController *)
voidNotifyProgressL(const RMessage2 &)
voidNotifyRemoteMsgL(const RMessage2 &)
voidNotifyRemoteTypeL(const RMessage2 &)
TInt Pause()
voidResetModuleController(CTestModuleController *)
voidResetRealModuleController(CTestModuleController *)
TInt Resume()
voidRunTestCaseL(const RMessage2 &)
Private Member Functions
CTestCase(CTestEngine *, CTestModuleController *, TTestInfo &, CTestModuleController *)
voidConstructL(CTestReport *, TTestInfo &)
CStifLogger *Logger()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CObject::AccessCount()const
CObject::CObject()
CObject::Close()
CObject::Dec()
CObject::Extension_(TUint,TAny *&,TAny *)
CObject::FullName()const
CObject::Inc()
CObject::Name()const
CObject::Open()
CObject::Owner()const
CObject::SetName(const TDesC *)
CObject::SetNameL(const TDesC *)
CObject::SetOwner(CObject *)
CObject::UniqueID()const
CObject::~CObject()
Protected Attributes
CTestEngine *iTestEngine
Private Attributes
CTestModuleController *iRealModuleController
CTestCommandNotifier *iTestCaseCommand
CTestCaseController *iTestCaseController
CTestEventNotifier *iTestCaseEvent
CTestProgressNotifier *iTestCasePrint
CTestRemoteCmdNotifier *iTestCaseRemoteCmd
RTestExecution iTestExecution
CTestModuleController *iTestModule
RTestServer iTestServer

Constructor & Destructor Documentation

CTestCase(CTestEngine *, CTestModuleController *, TTestInfo &, CTestModuleController *)

CTestCase(CTestEngine *aEngine,
CTestModuleController *aModuleController,
TTestInfo &aTestInfo,
CTestModuleController *aRealModuleController
)[private]

C++ default constructor.

Parameters

CTestEngine * aEngine
CTestModuleController * aModuleController
TTestInfo & aTestInfo
CTestModuleController * aRealModuleController

~CTestCase()

~CTestCase()

Destructor of CTestCase.

Member Functions Documentation

CancelAsyncRequest(const RMessage2 &)

voidCancelAsyncRequest(const RMessage2 &aMessage)

Cancel outstanding asynchronous request.

Parameters

const RMessage2 & aMessage

CheckCtlEvent(const TEventIf &)

TBool CheckCtlEvent(const TEventIf &aEvent)

Check if CtlEvent should be called

Parameters

const TEventIf & aEvent

CloseTestCase()

voidCloseTestCase()

Close Test Case.

ConstructL(CTestReport *, TTestInfo &)

voidConstructL(CTestReport *aTestReport,
TTestInfo &aTestInfo
)[private]

By default Symbian OS constructor is private.

Parameters

CTestReport * aTestReport
TTestInfo & aTestInfo

CtlEvent(const TEventIf &, TRequestStatus &)

voidCtlEvent(const TEventIf &aEvent,
TRequestStatus &aStatus
)

For event control.

Parameters

const TEventIf & aEvent
TRequestStatus & aStatus

ExecuteCommandL(TCommand, TDesC8 &)

voidExecuteCommandL(TCommandaCommand,
TDesC8 &aParamsPckg
)

Executes command received from test case.

Parameters

TCommand aCommand
TDesC8 & aParamsPckg

GetModuleControllers(CTestModuleController **)

CTestModuleController *GetModuleControllers(CTestModuleController **aRealModuleController)

Return module controller and real module controller.

Parameters

CTestModuleController ** aRealModuleController

Logger()

CStifLogger *Logger()[private]

Return the pointer to CStifLogger owned by CTestEngineServer

ModuleName()

const TDesC &ModuleName()

Return the name of Test Module.

NewL(CTestEngine *, CTestModuleController *, CTestReport *, TTestInfo &, CTestModuleController *)

CTestCase *NewL(CTestEngine *aEngine,
CTestModuleController *aModuleController,
CTestReport *aTestReport,
TTestInfo &aTestInfo,
CTestModuleController *aRealModuleController
)[static]

NewL is two-phased constructor.

Parameters

CTestEngine * aEngine
CTestModuleController * aModuleController
CTestReport * aTestReport
TTestInfo & aTestInfo
CTestModuleController * aRealModuleController

NotifyProgressL(const RMessage2 &)

voidNotifyProgressL(const RMessage2 &aMessage)

Notify progress from Test Module.

Parameters

const RMessage2 & aMessage

NotifyRemoteMsgL(const RMessage2 &)

voidNotifyRemoteMsgL(const RMessage2 &aMessage)

Notify remote commands from Test Module.

Parameters

const RMessage2 & aMessage

NotifyRemoteTypeL(const RMessage2 &)

voidNotifyRemoteTypeL(const RMessage2 &aMessage)

Notify remote commands from Test Module.

Parameters

const RMessage2 & aMessage

Pause()

TInt Pause()

Suspend the test case execution.

ResetModuleController(CTestModuleController *)

voidResetModuleController(CTestModuleController *aModuleController)

Set new module controller for test case (only in case when original controller crashed).

Parameters

CTestModuleController * aModuleController

ResetRealModuleController(CTestModuleController *)

voidResetRealModuleController(CTestModuleController *aRealModuleController)

Set new real module controller for test case (only in case when original controller crashed).

Parameters

CTestModuleController * aRealModuleController

Resume()

TInt Resume()

Resume the suspended test case execution.

RunTestCaseL(const RMessage2 &)

voidRunTestCaseL(const RMessage2 &aMessage)

Run test case.

Parameters

const RMessage2 & aMessage

Member Data Documentation

CTestModuleController * iRealModuleController

CTestModuleController *iRealModuleController[private]

CTestCommandNotifier * iTestCaseCommand

CTestCommandNotifier *iTestCaseCommand[private]

CTestCaseController * iTestCaseController

CTestCaseController *iTestCaseController[private]

CTestEventNotifier * iTestCaseEvent

CTestEventNotifier *iTestCaseEvent[private]

CTestProgressNotifier * iTestCasePrint

CTestProgressNotifier *iTestCasePrint[private]

CTestRemoteCmdNotifier * iTestCaseRemoteCmd

CTestRemoteCmdNotifier *iTestCaseRemoteCmd[private]

CTestEngine * iTestEngine

CTestEngine *iTestEngine[protected]

RTestExecution iTestExecution

RTestExecution iTestExecution[private]

CTestModuleController * iTestModule

CTestModuleController *iTestModule[private]

RTestServer iTestServer

RTestServer iTestServer[private]