CTestScripterController Class Reference

class CTestScripterController : public CTestModuleController

Inherits from

Public Member Functions
~CTestScripterController()
voidAddConfigFileL(TFileName &)
CAtsLogger &AtsLogger()
voidDeleteModuleController(CTestModuleController *)
voidDoCancel()
voidDoCancelEmulator(CTestModuleController *)
TBool EnumerationComplete()
voidFreeTestCases()
TInt GetCurrentIndex(CTestModuleController *)
CTestModuleController *GetFreeOrCreateModuleControllerL(TTestInfo &, TBool)
voidInitL(TFileName &, const TDesC &)
const TDesC &ModuleName(const TDesC &)
CTestScripterController *NewL(CTestEngine *, const TName &, TBool)
voidRemoveConfigFileL(TFileName &)
voidRemoveModuleController(CTestModuleController *)
TInt RunError(TInt)
TInt RunErrorEmulator(TInt, CTestModuleController *)
voidRunL()
voidRunLEmulator(CTestModuleController *)
RTestServer &Server(TTestInfo &)
voidStartEnumerateL()
CFixedFlatArray< TTestInfo > *TestCasesL()
Private Member Functions
CTestScripterController(CTestEngine *)
voidConstructL(const TName &, TBool)
HBufC *CreateTestScripterNameL(TFileName &, HBufC *)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
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()
CTestModuleController::CTestModuleController(CTestEngine *)
CTestModuleController::CaseCreated()
CTestModuleController::CaseFinished()
CTestModuleController::CloneL(CTestModuleController *,TBool,CTestScripterController *)
CTestModuleController::EnumerateSynchronously(void)
CTestModuleController::NewL(CTestEngine *,const TName &,TBool,TBool,CTestScripterController *)
CTestModuleController::~CTestModuleController()
Inherited Enumerations
CActive:TPriority
CTestModuleController:TTestModuleStatus
Public Attributes
RPointerArray< CTestModuleController >iTestScripter
Inherited Attributes
CActive::iStatus
CTestModuleController::iAfterReboot
CTestModuleController::iAtsLogger
CTestModuleController::iChildrenControllers
CTestModuleController::iConfigFiles
CTestModuleController::iEngine
CTestModuleController::iEnumConfigFile
CTestModuleController::iEnumResultPackage
CTestModuleController::iEnumerateComplete
CTestModuleController::iEnumerateCount
CTestModuleController::iErrorPrinter
CTestModuleController::iFailedEnumerateConfig
CTestModuleController::iFailedEnumerateCount
CTestModuleController::iInifile
CTestModuleController::iModule
CTestModuleController::iName
CTestModuleController::iServer
CTestModuleController::iServerStateHandler
CTestModuleController::iState
CTestModuleController::iTestCaseArray
CTestModuleController::iTestCaseCount
CTestModuleController::iTestCaseCounter
CTestModuleController::iTestModuleCrashDetected
CTestModuleController::iTestScripterController
CTestModuleController::iTestScripterIndicator

Constructor & Destructor Documentation

CTestScripterController(CTestEngine *)

CTestScripterController(CTestEngine *aEngine)[private]

Parametric constructor.

Parameters

CTestEngine * aEngine

~CTestScripterController()

~CTestScripterController()[virtual]

Destructor.

Member Functions Documentation

AddConfigFileL(TFileName &)

voidAddConfigFileL(TFileName &aConfigFile)[virtual]

Add config file

Parameters

TFileName & aConfigFile

AtsLogger()

CAtsLogger &AtsLogger()[inline, virtual]

Return reference to AtsLogger

ConstructL(const TName &, TBool)

voidConstructL(const TName &aName,
TBoolaAfterReboot
)[private]

By default Symbian OS constructor is private.

Parameters

const TName & aName
TBool aAfterReboot

CreateTestScripterNameL(TFileName &, HBufC *)

HBufC *CreateTestScripterNameL(TFileName &aTestCaseFile,
HBufC *aCreatedName
)[private]

Create name according to TestScripter and Test case file.

Parameters

TFileName & aTestCaseFile
HBufC * aCreatedName

DeleteModuleController(CTestModuleController *)

voidDeleteModuleController(CTestModuleController *aRealModuleController)[virtual]

Deletes given module controller.

Parameters

CTestModuleController * aRealModuleController

DoCancel()

voidDoCancel()[virtual]

DoCancel derived from CActive handles the cancellation

DoCancelEmulator(CTestModuleController *)

voidDoCancelEmulator(CTestModuleController *aTestModuleController)

Cancel active request(Emulates DoCancel()).

Parameters

CTestModuleController * aTestModuleController

EnumerationComplete()

TBool EnumerationComplete()[virtual]

Is enumeration complete?

FreeTestCases()

voidFreeTestCases()[virtual]

Free used memory for test cases

GetCurrentIndex(CTestModuleController *)

TInt GetCurrentIndex(CTestModuleController *aTestModuleController)

Parameters

CTestModuleController * aTestModuleController

GetFreeOrCreateModuleControllerL(TTestInfo &, TBool)

CTestModuleController *GetFreeOrCreateModuleControllerL(TTestInfo &aTestInfo,
TBoolaUITestingSupport
)[virtual]

Finds free test module controller, if not possible, creates new one.

Parameters

TTestInfo & aTestInfo
TBool aUITestingSupport

InitL(TFileName &, const TDesC &)

voidInitL(TFileName &aIniFile,
const TDesC &aConfigFile
)[virtual]

Init the test module

Parameters

TFileName & aIniFile
const TDesC & aConfigFile

ModuleName(const TDesC &)

const TDesC &ModuleName(const TDesC &aModuleName)[virtual]

Return the name of Test Module.

Parameters

const TDesC & aModuleName

NewL(CTestEngine *, const TName &, TBool)

CTestScripterController *NewL(CTestEngine *aEngine,
const TName &aName,
TBoolaAfterReboot
)[static]

Two-phased constructor.

Parameters

CTestEngine * aEngine
const TName & aName
TBool aAfterReboot

RemoveConfigFileL(TFileName &)

voidRemoveConfigFileL(TFileName &aConfigFile)[virtual]

Remove config file

Parameters

TFileName & aConfigFile

RemoveModuleController(CTestModuleController *)

voidRemoveModuleController(CTestModuleController *aRealModuleController)[virtual]

Removes given module controller from children list.

Parameters

CTestModuleController * aRealModuleController

RunError(TInt)

TInt RunError(TIntaError)[virtual]

RunError derived from CActive handles errors from active handler.

Parameters

TInt aError

RunErrorEmulator(TInt, CTestModuleController *)

TInt RunErrorEmulator(TIntaError,
CTestModuleController *aTestModuleController
)

Handle errors(Emulates RunError()).

Parameters

TInt aError
CTestModuleController * aTestModuleController

RunL()

voidRunL()[virtual]

RunL derived from CActive handles the completed requests.

RunLEmulator(CTestModuleController *)

voidRunLEmulator(CTestModuleController *aTestModuleController)

Handles completed requests (Emulates RunL() ).

Parameters

CTestModuleController * aTestModuleController

Server(TTestInfo &)

RTestServer &Server(TTestInfo &aTestInfo)[virtual]

Return handle to Test Server

Parameters

TTestInfo & aTestInfo

StartEnumerateL()

voidStartEnumerateL()[virtual]

StartEnumerateL starts the CTestModuleController active object.

TestCasesL()

CFixedFlatArray< TTestInfo > *TestCasesL()[virtual]

Get Test Cases

Member Data Documentation

RPointerArray< CTestModuleController > iTestScripter

RPointerArray< CTestModuleController >iTestScripter