CTestCaseController Class Reference

class CTestCaseController : public CActive

Inherits from

Public Member Functions
~CTestCaseController()
voidDoCancel()
voidGetTestCaseInfo(TTestInfo &)
CTestCaseController *NewL(CTestEngine *, CTestReport *, CAtsLogger &, RTestExecution, const TTestInfo &)
TInt RunError(TInt)
voidRunL()
voidStartL(const RMessage2 &)
voidSuicide(TStopExecutionType, TInt)
voidTimeout()
Private Member Functions
CTestCaseController(CTestEngine *, CTestReport *, CAtsLogger &, RTestExecution, const TTestInfo &)
voidConstructL()
voidGenerateXmlLogL()
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()
Private Member Enumerations
enumTTestCaseStatus { ETestCaseIdle, ETestCaseRunning, ETestCaseCompleted, ETestCaseTimeout, ETestCaseSuicided }
Inherited Enumerations
CActive:TPriority
Private Attributes
CAtsLogger &iAtsLogger
CTestEngine *iEngine
RMessage2 iMessage
CStifLogger *iRDebugLogger
TFullTestResult iResult
TFullTestResultPckg iResultPckg
TTestCaseStatus iState
TStopExecutionType iStopExecutionType
HBufC *iTestCaseArguments
RTestExecution iTestExecution
TTestInfo iTestInfo
CTestReport *iTestReport
CTestCaseTimeout *iTimeout
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CTestCaseController(CTestEngine *, CTestReport *, CAtsLogger &, RTestExecution, const TTestInfo &)

CTestCaseController(CTestEngine *aEngine,
CTestReport *aTestReport,
CAtsLogger &aAtsLogger,
RTestExecutionaTestExecution,
const TTestInfo &aTestInfo
)[private]

Parametric C++ constructor.

Parameters

CTestEngine * aEngine
CTestReport * aTestReport
CAtsLogger & aAtsLogger
RTestExecution aTestExecution
const TTestInfo & aTestInfo

~CTestCaseController()

~CTestCaseController()

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default Symbian OS constructor is private.

DoCancel()

voidDoCancel()[virtual]

DoCancel derived from CActive handles the Cancel

GenerateXmlLogL()

voidGenerateXmlLogL()[private]

Generates XML log about the test case.

GetTestCaseInfo(TTestInfo &)

voidGetTestCaseInfo(TTestInfo &aTestInfo)

Get testcase info(test module, config file, test case, etc).

Parameters

TTestInfo & aTestInfo

NewL(CTestEngine *, CTestReport *, CAtsLogger &, RTestExecution, const TTestInfo &)

CTestCaseController *NewL(CTestEngine *aEngine,
CTestReport *aTestReport,
CAtsLogger &aAtsLogger,
RTestExecutionaTestExecution,
const TTestInfo &aTestInfo
)[static]

Two-phased constructor.

Parameters

CTestEngine * aEngine
CTestReport * aTestReport
CAtsLogger & aAtsLogger
RTestExecution aTestExecution
const TTestInfo & aTestInfo

RunError(TInt)

TInt RunError(TIntaError)[virtual]

RunError derived from CActive handles errors from active handler.

Parameters

TInt aError

RunL()

voidRunL()[virtual]

RunL derived from CActive handles the completed requests.

StartL(const RMessage2 &)

voidStartL(const RMessage2 &aMessage)

StartL starts the CTestCaseController active object.

Parameters

const RMessage2 & aMessage

Suicide(TStopExecutionType, TInt)

voidSuicide(TStopExecutionTypeaType,
TIntaCode
)

Kills a testcase

Parameters

TStopExecutionType aType
TInt aCode

Timeout()

voidTimeout()

Timeouts a testcase

Member Enumerations Documentation

Enum TTestCaseStatus

Enumerators

ETestCaseIdle
ETestCaseRunning
ETestCaseCompleted
ETestCaseTimeout
ETestCaseSuicided

Member Data Documentation

CAtsLogger & iAtsLogger

CAtsLogger &iAtsLogger[private]

CTestEngine * iEngine

CTestEngine *iEngine[private]

RMessage2 iMessage

RMessage2 iMessage[private]

CStifLogger * iRDebugLogger

CStifLogger *iRDebugLogger[private]

TFullTestResult iResult

TFullTestResult iResult[private]

TFullTestResultPckg iResultPckg

TFullTestResultPckg iResultPckg[private]

TTestCaseStatus iState

TTestCaseStatus iState[private]

TStopExecutionType iStopExecutionType

TStopExecutionType iStopExecutionType[private]

HBufC * iTestCaseArguments

HBufC *iTestCaseArguments[private]

RTestExecution iTestExecution

RTestExecution iTestExecution[private]

TTestInfo iTestInfo

TTestInfo iTestInfo[private]

CTestReport * iTestReport

CTestReport *iTestReport[private]

CTestCaseTimeout * iTimeout

CTestCaseTimeout *iTimeout[private]