diff -r e8c1ea2c6496 -r 8758140453c0 Utils/Inc/TestStepSmokeTest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Utils/Inc/TestStepSmokeTest.h Thu Jan 21 12:53:44 2010 +0000 @@ -0,0 +1,80 @@ +// 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 the License "Symbian Foundation License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/sfl-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 +#include "Configuration.cfg" + +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__ */