common/tools/ats/smoketest/profiles/inc/ProfileSmokeTestModule.h
author victorp@symbian.org
Wed, 03 Feb 2010 16:06:24 +0000
changeset 872 17498133d9ad
parent 739 552776214487
permissions -rw-r--r--
adding EPL headers to smoke test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
722
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
     1
/*
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
     3
* All rights reserved.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
     4
* This component and the accompanying materials are made available
872
17498133d9ad adding EPL headers to smoke test
victorp@symbian.org
parents: 739
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
722
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
     6
* which accompanies this distribution, and is available
872
17498133d9ad adding EPL headers to smoke test
victorp@symbian.org
parents: 739
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
722
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
     8
*
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
     9
* Initial Contributors:
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    11
*
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    12
* Contributors:
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    13
* 
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    14
* Description: STIF testclass declaration
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    15
*
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    16
*/
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    17
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    18
#ifndef PROFILESMOKETESTMODULE_H
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    19
#define PROFILESMOKETESTMODULE_H
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    20
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    21
//  INCLUDES
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    22
#include <f32file.h>
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    23
#include <StifLogger.h>
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    24
#include <TestScripterInternal.h>
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    25
#include <StifTestModule.h>
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    26
#include <TestclassAssert.h>
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    27
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    28
// CONSTANTS
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    29
//const ?type ?constant_var = ?constant;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    30
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    31
// MACROS
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    32
//#define ?macro ?macro_def
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    33
#define TEST_CLASS_VERSION_MAJOR 0
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    34
#define TEST_CLASS_VERSION_MINOR 0
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    35
#define TEST_CLASS_VERSION_BUILD 0
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    36
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    37
// Logging path
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    38
_LIT( KProfileSmokeTestModuleLogPath, "\\logs\\testframework\\ProfileSmokeTestModule\\" ); 
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    39
// Log file
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    40
_LIT( KProfileSmokeTestModuleLogFile, "ProfileSmokeTestModule.txt" ); 
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    41
_LIT( KProfileSmokeTestModuleLogFileWithTitle, "ProfileSmokeTestModule_[%S].txt" );
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    42
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    43
// FUNCTION PROTOTYPES
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    44
//?type ?function_name(?arg_list);
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    45
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    46
// FORWARD DECLARATIONS
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    47
//class ?FORWARD_CLASSNAME;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    48
class CProfileSmokeTestModule;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    49
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    50
// DATA TYPES
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    51
//enum ?declaration
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    52
//typedef ?declaration
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    53
//extern ?data_type;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    54
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    55
// CLASS DECLARATION
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    56
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    57
/**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    58
*  CProfileSmokeTestModule test class for STIF Test Framework TestScripter.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    59
*  ?other_description_lines
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    60
*
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    61
*  @lib ?library
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    62
*  @since ?Series60_version
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    63
*/
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    64
NONSHARABLE_CLASS(CProfileSmokeTestModule) : public CScriptBase
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    65
    {
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    66
    public:  // Constructors and destructor
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    67
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    68
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    69
        * Two-phased constructor.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    70
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    71
        static CProfileSmokeTestModule* NewL( CTestModuleIf& aTestModuleIf );
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    72
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    73
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    74
        * Destructor.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    75
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    76
        virtual ~CProfileSmokeTestModule();
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    77
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    78
    public: // New functions
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    79
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    80
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    81
        * ?member_description.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    82
        * @since ?Series60_version
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    83
        * @param ?arg1 ?description
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    84
        * @return ?description
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    85
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    86
        //?type ?member_function( ?type ?arg1 );
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    87
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    88
    public: // Functions from base classes
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    89
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    90
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    91
        * From CScriptBase Runs a script line.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    92
        * @since ?Series60_version
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    93
        * @param aItem Script line containing method name and parameters
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    94
        * @return Symbian OS error code
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    95
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    96
        virtual TInt RunMethodL( CStifItemParser& aItem );
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    97
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    98
    protected:  // New functions
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
    99
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   100
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   101
        * ?member_description.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   102
        * @since ?Series60_version
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   103
        * @param ?arg1 ?description
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   104
        * @return ?description
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   105
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   106
        //?type ?member_function( ?type ?arg1 );
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   107
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   108
    protected:  // Functions from base classes
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   109
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   110
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   111
        * From ?base_class ?member_description
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   112
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   113
        //?type ?member_function();
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   114
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   115
    private:
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   116
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   117
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   118
        * C++ default constructor.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   119
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   120
        CProfileSmokeTestModule( CTestModuleIf& aTestModuleIf );
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   121
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   122
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   123
        * By default Symbian 2nd phase constructor is private.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   124
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   125
        void ConstructL();
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   126
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   127
        // Prohibit copy constructor if not deriving from CBase.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   128
        // ?classname( const ?classname& );
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   129
        // Prohibit assigment operator if not deriving from CBase.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   130
        // ?classname& operator=( const ?classname& );
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   131
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   132
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   133
        * Frees all resources allocated from test methods.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   134
        * @since ?Series60_version
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   135
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   136
        void Delete();
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   137
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   138
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   139
        * Test methods are listed below. 
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   140
        */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   141
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   142
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   143
        * Example test method.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   144
        * @since ?Series60_version
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   145
        * @param aItem Script line containing parameters.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   146
        * @return Symbian OS error code.
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   147
        */
739
552776214487 Test: Tweaked Profile tests and added AppInstall
brendand
parents: 722
diff changeset
   148
        virtual TInt CheckActiveProfileL( CStifItemParser& aItem);
552776214487 Test: Tweaked Profile tests and added AppInstall
brendand
parents: 722
diff changeset
   149
        virtual TInt SetActiveProfileL( CStifItemParser& aItem );
722
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   150
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   151
        /**
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   152
         * Method used to log version of test class
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   153
         */
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   154
        void SendTestClassVersion();
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   155
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   156
        //ADD NEW METHOD DEC HERE
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   157
        //[TestMethods] - Do not remove
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   158
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   159
    public:     // Data
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   160
        // ?one_line_short_description_of_data
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   161
        //?data_declaration;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   162
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   163
    protected:  // Data
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   164
        // ?one_line_short_description_of_data
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   165
        //?data_declaration;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   166
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   167
    private:    // Data
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   168
        RFs iFs;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   169
        // ?one_line_short_description_of_data
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   170
        //?data_declaration;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   171
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   172
        // Reserved pointer for future extension
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   173
        //TAny* iReserved;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   174
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   175
    public:     // Friend classes
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   176
        //?friend_class_declaration;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   177
    protected:  // Friend classes
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   178
        //?friend_class_declaration;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   179
    private:    // Friend classes
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   180
        //?friend_class_declaration;
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   181
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   182
    };
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   183
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   184
#endif      // PROFILESMOKETESTMODULE_H
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   185
d34d2cabd32d Adding profiles smoke tests
brendand
parents:
diff changeset
   186
// End of File