diff -r bbd31066657e -r 8bb370ba6d1d testexecfw/stf/stfui/stf/inc/executor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testexecfw/stf/stfui/stf/inc/executor.h Fri Apr 09 10:46:28 2010 +0800 @@ -0,0 +1,64 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: CExecutor is used to execute the testing via STIF engine. +* +*/ + +#ifndef EXECUTOR_H_ +#define EXECUTOR_H_ + +#include +#include +#include +#include +#include "activetimer.h" +#include +#include "TestModuleInfo.h" +#include +#include "cmdparser.h" + +class CCaseRunner; + +class CExecutor : public CBase + { +public: + static CExecutor* NewL(CCmdParser* aParser,CConsoleBase* aConsole); + ~CExecutor(); + +public: + void RunTestsL(); + void TestCompleted(TInt aError); + RTestEngine& TestEngine(); + +private: + void ConstructL(); + CExecutor(CCmdParser* aParser,CConsoleBase* aConsole); + void RunAllTestCasesL(); + void RunTestCaseL(TTestInfo& aTestInfo); + TInt RunATestCaseL(CCaseRunner* aCaseRunner); + void LogErrorAndLeaveL(const TDesC& aFunction, const TDesC& aDescription, const TInt aError); + void ParseTestModulesL(CStifParser* aParser, CTestModuleList* aModuleList, const TDesC& aSectionStart, const TDesC& aSectionEnd); + +private: + CConsoleBase* iConsole; + RTestEngine iTestEngine; + TInt iTestCompletedError; + CTestModuleList* iModuleList; + CCmdParser* iParser; + CFixedFlatArray* iTestCasesList; + + + }; + +#endif /* EXECUTOR_H_ */