First public contribution.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
23 #include <StifLogger.h>
24 #include <TestScripterInternal.h>
25 #include <StifTestModule.h>
29 //const ?type ?constant_var = ?constant;
32 //#define ?macro ?macro_def
33 #define TEST_CLASS_VERSION_MAJOR 50
34 #define TEST_CLASS_VERSION_MINOR 9
35 #define TEST_CLASS_VERSION_BUILD 06
38 _LIT( KBCExceptionLogPath, "\\logs\\testframework\\BCException\\" );
40 _LIT( KBCExceptionLogFile, "BCException.txt" );
41 _LIT( KBCExceptionLogFileWithTitle, "BCException_[%S].txt" );
43 // FUNCTION PROTOTYPES
44 //?type ?function_name(?arg_list);
46 // FORWARD DECLARATIONS
47 //class ?FORWARD_CLASSNAME;
52 //typedef ?declaration
58 * CBCException test class for STIF Test Framework TestScripter.
59 * ?other_description_lines
62 * @since ?Series60_version
64 NONSHARABLE_CLASS(CBCException) : public CScriptBase
66 public: // Constructors and destructor
69 * Two-phased constructor.
71 static CBCException* NewL( CTestModuleIf& aTestModuleIf );
76 virtual ~CBCException();
78 public: // New functions
81 * ?member_description.
82 * @since ?Series60_version
83 * @param ?arg1 ?description
84 * @return ?description
86 //?type ?member_function( ?type ?arg1 );
88 public: // Functions from base classes
91 * From CScriptBase Runs a script line.
92 * @since ?Series60_version
93 * @param aItem Script line containing method name and parameters
94 * @return Symbian OS error code
96 virtual TInt RunMethodL( CStifItemParser& aItem );
98 protected: // New functions
101 * ?member_description.
102 * @since ?Series60_version
103 * @param ?arg1 ?description
104 * @return ?description
106 //?type ?member_function( ?type ?arg1 );
108 protected: // Functions from base classes
111 * From ?base_class ?member_description
113 //?type ?member_function();
118 * C++ default constructor.
120 CBCException( CTestModuleIf& aTestModuleIf );
123 * By default Symbian 2nd phase constructor is private.
127 // Prohibit copy constructor if not deriving from CBase.
128 // ?classname( const ?classname& );
129 // Prohibit assigment operator if not deriving from CBase.
130 // ?classname& operator=( const ?classname& );
133 * Frees all resources allocated from test methods.
134 * @since ?Series60_version
139 * Test methods are listed below.
143 * Example test method.
144 * @since ?Series60_version
145 * @param aItem Script line containing parameters.
146 * @return Symbian OS error code.
148 virtual TInt TestAPI( CStifItemParser& aItem );
151 * Method used to log version of test class
153 void SendTestClassVersion();
155 //ADD NEW METHOD DEC HERE
156 //[TestMethods] - Do not remove
159 // ?one_line_short_description_of_data
163 // ?one_line_short_description_of_data
168 // ?one_line_short_description_of_data
171 // Reserved pointer for future extension
174 public: // Friend classes
175 //?friend_class_declaration;
176 protected: // Friend classes
177 //?friend_class_declaration;
178 private: // Friend classes
179 //?friend_class_declaration;
183 #endif // BCEXCEPTION_H