buildverification/smoketest/Utils/Inc/TestStepSmokeTest.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:30:50 +0100
branchRCL_3
changeset 11 493058e57c8c
parent 0 9736f095102e
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201035 Kit: 201035

// 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 <test/testexecutestepbase.h>
#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__ */