buildverification/autosmoketest/Utils/Inc/TestStepSmokeTest.h
branchRCL_3
changeset 10 4ca382093dae
parent 5 6beaa9cf4752
child 11 493058e57c8c
equal deleted inserted replaced
5:6beaa9cf4752 10:4ca382093dae
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This contains CTestStepSmokeTest
       
    15 
       
    16 #if (!defined __TEST_STEP_SMOKETEST_H__)
       
    17 #define __TEST_STEP_SMOKETEST_H__
       
    18 
       
    19 //TEF include
       
    20 #include <test/testexecutestepbase.h>
       
    21  
       
    22 enum TTestLoggingDetail
       
    23 	{
       
    24 	ETestLoggingDetail_Min,
       
    25 	ETestLoggingDetail_Normal,
       
    26 	ETestLoggingDetail_Max,
       
    27 	};
       
    28 
       
    29 #if (defined __VERSION_70S__)
       
    30 enum TCapability
       
    31 	{
       
    32 	ECapabilityTCB				= 0,
       
    33 	};
       
    34 #endif
       
    35 
       
    36 /**
       
    37  This class is the base class for all the test steps in smoketest.
       
    38 */
       
    39 class CTestStepSmokeTest : public CTestStep
       
    40 	{
       
    41 public:
       
    42 	//Destructor
       
    43 	IMPORT_C virtual ~CTestStepSmokeTest();
       
    44 
       
    45 	/**
       
    46 	 Pure virtual, to be implemented by the derived test steps.
       
    47 	 It implements the required functionality of the test step.
       
    48 	 @return TVerdict - result of the test step
       
    49 	 @leave - System wide error codes
       
    50 	*/
       
    51 	IMPORT_C virtual enum TVerdict	doTestStepL() = 0;
       
    52 
       
    53 	//Implements the preoperational functionalities for a test step
       
    54 	IMPORT_C virtual enum TVerdict	doTestStepPreambleL();
       
    55 
       
    56 	//Implements the post operational fucntionalities for a test step
       
    57 	IMPORT_C virtual enum TVerdict	doTestStepPostambleL();
       
    58 
       
    59 	TTestLoggingDetail		LoggingDetail() const { return iLoggingDetail; }
       
    60 	TInt					Repetition() const { return iRepetition; }
       
    61 
       
    62 protected:
       
    63 	//Constructor
       
    64 	IMPORT_C CTestStepSmokeTest();
       
    65 
       
    66 	//Gets the TCapability value for the capabilty string literal
       
    67 	IMPORT_C TInt			GetCapability(TPtrC aCapability, TCapability& aCapabilityValue);
       
    68 
       
    69 	//Verifies the given time is nearly eaual to current UTC time
       
    70 	IMPORT_C TBool			VerifyUTCTime(TTime aTime);
       
    71 
       
    72 private:
       
    73 	TTestLoggingDetail			iLoggingDetail;
       
    74 	TInt						iRepetition;
       
    75 	};
       
    76 
       
    77 #endif /* __TEST_STEP_SMOKETEST_H__ */