|
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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This contains CTestStepSmokeTest |
|
15 // |
|
16 // |
|
17 |
|
18 #if (!defined __TEST_STEP_SMOKETEST_H__) |
|
19 #define __TEST_STEP_SMOKETEST_H__ |
|
20 |
|
21 //TEF include |
|
22 #include <test/testexecutestepbase.h> |
|
23 #include "Configuration.cfg" |
|
24 |
|
25 enum TTestLoggingDetail |
|
26 { |
|
27 ETestLoggingDetail_Min, |
|
28 ETestLoggingDetail_Normal, |
|
29 ETestLoggingDetail_Max, |
|
30 }; |
|
31 |
|
32 #if (defined __VERSION_70S__) |
|
33 enum TCapability |
|
34 { |
|
35 ECapabilityTCB = 0, |
|
36 }; |
|
37 #endif |
|
38 |
|
39 /** |
|
40 This class is the base class for all the test steps in smoketest. |
|
41 */ |
|
42 class CTestStepSmokeTest : public CTestStep |
|
43 { |
|
44 public: |
|
45 //Destructor |
|
46 IMPORT_C virtual ~CTestStepSmokeTest(); |
|
47 |
|
48 /** |
|
49 Pure virtual, to be implemented by the derived test steps. |
|
50 It implements the required functionality of the test step. |
|
51 @return TVerdict - result of the test step |
|
52 @leave - System wide error codes |
|
53 */ |
|
54 IMPORT_C virtual enum TVerdict doTestStepL() = 0; |
|
55 |
|
56 //Implements the preoperational functionalities for a test step |
|
57 IMPORT_C virtual enum TVerdict doTestStepPreambleL(); |
|
58 |
|
59 //Implements the post operational fucntionalities for a test step |
|
60 IMPORT_C virtual enum TVerdict doTestStepPostambleL(); |
|
61 |
|
62 TTestLoggingDetail LoggingDetail() const { return iLoggingDetail; } |
|
63 TInt Repetition() const { return iRepetition; } |
|
64 |
|
65 protected: |
|
66 //Constructor |
|
67 IMPORT_C CTestStepSmokeTest(); |
|
68 |
|
69 //Gets the TCapability value for the capabilty string literal |
|
70 IMPORT_C TInt GetCapability(TPtrC aCapability, TCapability& aCapabilityValue); |
|
71 |
|
72 //Verifies the given time is nearly eaual to current UTC time |
|
73 IMPORT_C TBool VerifyUTCTime(TTime aTime); |
|
74 |
|
75 private: |
|
76 TTestLoggingDetail iLoggingDetail; |
|
77 TInt iRepetition; |
|
78 }; |
|
79 |
|
80 #endif /* __TEST_STEP_SMOKETEST_H__ */ |