CStifTFwIf Class Reference

class CStifTFwIf : public CBase

Inherits from

Constructor & Destructor Documentation

CStifTFwIf()

IMPORT_CCStifTFwIf()[protected]

C++ default constructor.

~CStifTFwIf()

IMPORT_C~CStifTFwIf()[virtual]

Destructor.

Member Functions Documentation

AddTestCaseFile(TDesC &, TDesC &)

IMPORT_C TIntAddTestCaseFile(TDesC &aModuleName,
TDesC &aCaseFile
)[protected]

Used to add test case file for test module.

Returns Symbian OS error code.

Parameters

TDesC & aModuleName
TDesC & aCaseFile

AddTestModule(TDesC &, TDesC &)

IMPORT_C TIntAddTestModule(TDesC &aModuleName,
TDesC &aIniFile = (TDesC &) KNullDesC()
)[protected]

Used to add test module to test framework.

Returns Symbian OS error code.

Parameters

TDesC & aModuleName
TDesC & aIniFile = (TDesC &) KNullDesC()

AtsReceive(const TDesC &)

IMPORT_C TIntAtsReceive(const TDesC &aMessage)[protected]

Receive message from ATS.

Returns Symbian OS error code.

Parameters

const TDesC & aMessage

AtsSend(const TDesC &)

voidAtsSend(const TDesC &)[protected, inline, virtual]

Send message to ATS.

Parameters

const TDesC &

CancelTestCase(TInt)

IMPORT_C TIntCancelTestCase(TIntaTestId)[protected]

Cancel test case execution. TestCompleted() will be called with aTestExecutionResult set to KErrCancel.

Returns Symbian OS error code.

Parameters

TInt aTestId

Close()

IMPORT_C TIntClose()[protected]

Used to close TestFramework.

Returns Symbian OS error code.

DevId()

TUint16 DevId()[protected, inline, virtual]

Get device identifier, should be overridden to make them unique among slaves. Returns default value for every slave otherwise.

GetTestCases(RPointerArray< CTestInfo > &, TDesC &, TDesC &)

IMPORT_C TIntGetTestCases(RPointerArray< CTestInfo > &aTestInfo,
TDesC &aTestModule = (TDesC &) KNullDesC(),
TDesC &aTestCaseFile = (TDesC &) KNullDesC()
)[protected]

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
TDesC & aTestModule = (TDesC &) KNullDesC()
TDesC & aTestCaseFile = (TDesC &) KNullDesC()

GoingToDoReset()

voidGoingToDoReset()[protected, inline, virtual]

Reboot indication. After this function returns, reboot is done by test module or STIF TF.

Open(TDesC &)

IMPORT_C TIntOpen(TDesC &aTestFrameworkIni = (TDesC &) KNullDesC())[protected]

Used to open TestFramework.

Returns Symbian OS error code.

Parameters

TDesC & aTestFrameworkIni = (TDesC &) KNullDesC()

PauseTestCase(TInt)

IMPORT_C TIntPauseTestCase(TIntaTestId)[protected]

Pause test case execution.

Returns Symbian OS error code.

Parameters

TInt aTestId

Print(TInt, TTestProgress &)

voidPrint(TInt,
TTestProgress &
)[protected, inline, virtual]

Function is called when test case prints.

Parameters

TInt
TTestProgress &

RemoveTestCaseFile(TDesC &, TDesC &)

IMPORT_C TIntRemoveTestCaseFile(TDesC &aModuleName,
TDesC &aCaseFile
)[protected]

Used to remove test case file from test module.

Returns Symbian OS error code.

Parameters

TDesC & aModuleName
TDesC & aCaseFile

RemoveTestModule(TDesC &)

IMPORT_C TIntRemoveTestModule(TDesC &aModuleName)[protected]

Used to remove test module to test framework.

Returns Symbian OS error code.

Parameters

TDesC & aModuleName

ResumeTestCase(TInt)

IMPORT_C TIntResumeTestCase(TIntaTestId)[protected]

Resume test case execution.

Returns Symbian OS error code.

Parameters

TInt aTestId

SetAttribute(TAttribute, const TDesC &)

IMPORT_C TIntSetAttribute(TAttributeaAttribute,
const TDesC &aValue
)[protected]

Used to set attributes for test framework.

Returns Symbian OS error code.

Parameters

TAttribute aAttribute
const TDesC & aValue

StartTestCase(TInt &, const CTestInfo &)

IMPORT_C TIntStartTestCase(TInt &aTestId,
const CTestInfo &aTestInfo
)[protected]

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

TInt & aTestId
const CTestInfo & aTestInfo

TestCompleted(TInt, TInt, TTestResult &)

voidTestCompleted(TIntaTestId,
TIntaTestExecutionResult,
TTestResult &aTestResult
)[protected, pure virtual]

Function is called when test execution is finished with information of test case, result of test case execution and test case result.

Parameters

TInt aTestId
TInt aTestExecutionResult
TTestResult & aTestResult

Member Data Documentation

CStifTFw * iStifTFw

CStifTFw *iStifTFw[private]