diff -r 4ca382093dae -r 493058e57c8c buildverification/autosmoketest/Utils/Inc/TestStepSmokeTest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buildverification/autosmoketest/Utils/Inc/TestStepSmokeTest.h Wed Sep 01 12:30:50 2010 +0100 @@ -0,0 +1,77 @@ +// Copyright (c) 2004-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: +// This contains CTestStepSmokeTest + +#if (!defined __TEST_STEP_SMOKETEST_H__) +#define __TEST_STEP_SMOKETEST_H__ + +//TEF include +#include + +enum TTestLoggingDetail + { + ETestLoggingDetail_Min, + ETestLoggingDetail_Normal, + ETestLoggingDetail_Max, + }; + +#if (defined __VERSION_70S__) +enum TCapability + { + ECapabilityTCB = 0, + }; +#endif + +/** + This class is the base class for all the test steps in smoketest. +*/ +class CTestStepSmokeTest : public CTestStep + { +public: + //Destructor + IMPORT_C virtual ~CTestStepSmokeTest(); + + /** + Pure virtual, to be implemented by the derived test steps. + It implements the required functionality of the test step. + @return TVerdict - result of the test step + @leave - System wide error codes + */ + IMPORT_C virtual enum TVerdict doTestStepL() = 0; + + //Implements the preoperational functionalities for a test step + IMPORT_C virtual enum TVerdict doTestStepPreambleL(); + + //Implements the post operational fucntionalities for a test step + IMPORT_C virtual enum TVerdict doTestStepPostambleL(); + + TTestLoggingDetail LoggingDetail() const { return iLoggingDetail; } + TInt Repetition() const { return iRepetition; } + +protected: + //Constructor + IMPORT_C CTestStepSmokeTest(); + + //Gets the TCapability value for the capabilty string literal + IMPORT_C TInt GetCapability(TPtrC aCapability, TCapability& aCapabilityValue); + + //Verifies the given time is nearly eaual to current UTC time + IMPORT_C TBool VerifyUTCTime(TTime aTime); + +private: + TTestLoggingDetail iLoggingDetail; + TInt iRepetition; + }; + +#endif /* __TEST_STEP_SMOKETEST_H__ */