|
1 // Copyright (c) 2007-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 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file te_suite_step_base.h |
|
20 @internalTechnology |
|
21 */ |
|
22 |
|
23 #ifndef TE_SUITE_STEP_BASE__ |
|
24 #define TE_SUITE_STEP_BASE__ |
|
25 #include <TestExecuteStepBase.h> |
|
26 #include "te_tracer.h" |
|
27 #include "te_logger.h" |
|
28 |
|
29 |
|
30 /**************************************************************************** |
|
31 * The reason to have a new step base is that it is very much possible |
|
32 * that the all individual test steps have project related common variables |
|
33 * and members |
|
34 * and this is the place to define these common variable and members. |
|
35 * |
|
36 ****************************************************************************/ |
|
37 class TTraceConfigs; |
|
38 |
|
39 class CTe_UTraceSuiteStepBase : public CTestStep |
|
40 { |
|
41 public: |
|
42 virtual ~CTe_UTraceSuiteStepBase(); |
|
43 CTe_UTraceSuiteStepBase(); |
|
44 virtual TVerdict doTestStepPreambleL(); |
|
45 virtual TVerdict doTestStepPostambleL(); |
|
46 |
|
47 public: |
|
48 //Please add your class members which will be common to all individual test steps: |
|
49 protected: |
|
50 TInt StartLoggingL(TTraceConfigs& aTraceData); |
|
51 TInt StopLogging(); |
|
52 void SetLogFilename(const TDesC& aFilename); |
|
53 void DeleteLogFile(); |
|
54 protected: |
|
55 TTraceTester iTraceTester; |
|
56 TTraceConfigs iTraceData; |
|
57 TLogger iLogger; |
|
58 private: |
|
59 TInt ReadGeneralConfigs(); |
|
60 }; |
|
61 |
|
62 #endif //TE_SUITE_STEP_BASE__ |