stif/TestCombiner/inc/TestCase.h
changeset 26 4fde310f06fe
parent 13 33016869e0dd
child 30 86a2e675b80a
equal deleted inserted replaced
21:f5d4820de50d 26:4fde310f06fe
   205         */
   205         */
   206         static CTCTestCase* NewL( CTestCombiner* testCombiner,
   206         static CTCTestCase* NewL( CTestCombiner* testCombiner,
   207                                   TDesC& aModuleName,
   207                                   TDesC& aModuleName,
   208                                   TDesC& aTestId,
   208                                   TDesC& aTestId,
   209                                   TInt aExpectedResult,
   209                                   TInt aExpectedResult,
   210                                   TFullTestResult::TCaseExecutionResult
   210                                   TFullTestResult::TCaseExecutionResult aCategory,
   211                                         aCategory,
   211                                   const TDesC& aTestCaseArguments,
   212                                   CTCTestModule* aModule ); //--PYTHON--
   212                                   CTCTestModule* aModule ); //--PYTHON--
   213 
   213 
   214         /**
   214         /**
   215         * Destructor.
   215         * Destructor.
   216         */
   216         */
   225         /**
   225         /**
   226         * Get reference to ModuleName.
   226         * Get reference to ModuleName.
   227         */
   227         */
   228         const TDesC& ModuleName(){ return *iModuleName; }
   228         const TDesC& ModuleName(){ return *iModuleName; }
   229 
   229 
       
   230         /**
       
   231          * Get test case arguments
       
   232          */
       
   233         const TDesC& TestCaseArguments() const;
       
   234         
   230         /**
   235         /**
   231         * Get reference to RTestExecution.
   236         * Get reference to RTestExecution.
   232         */
   237         */
   233         RTestExecution& TestExecution(){ return iTestExecution; }
   238         RTestExecution& TestExecution(){ return iTestExecution; }
   234 
   239 
   267         * C++ default constructor.
   272         * C++ default constructor.
   268         */
   273         */
   269         CTCTestCase( CTestCombiner* testCombiner,
   274         CTCTestCase( CTestCombiner* testCombiner,
   270                      TInt aExpectedResult,
   275                      TInt aExpectedResult,
   271                      TFullTestResult::TCaseExecutionResult aCategory,
   276                      TFullTestResult::TCaseExecutionResult aCategory,
       
   277                      const TDesC& aTestCaseArguments,
   272                      CTCTestModule* aModule ); //--PYTHON--
   278                      CTCTestModule* aModule ); //--PYTHON--
   273 
   279 
   274         /**
   280         /**
   275         * By default Symbian OS constructor is private.
   281         * By default Symbian OS constructor is private.
   276         */
   282         */
   277         void ConstructL( TDesC& aModuleName, TDesC& aTestId );
   283         void ConstructL( TDesC& aModuleName, TDesC& aTestId, const TDesC& aTestCaseArguments );
   278 
   284 
   279         /**
   285         /**
   280         * Start complete the testcase(Complete2 make the final complete).
   286         * Start complete the testcase(Complete2 make the final complete).
   281         */
   287         */
   282         void Complete( TInt aError );
   288         void Complete( TInt aError );
   296         CTestEventNotifier*     iEvent;
   302         CTestEventNotifier*     iEvent;
   297 
   303 
   298         // Module name
   304         // Module name
   299         HBufC*                  iModuleName;
   305         HBufC*                  iModuleName;
   300 
   306 
       
   307         // Test case arguments
       
   308         HBufC*                  iTestCaseArguments;
       
   309         
   301         // Handle to test case execution
   310         // Handle to test case execution
   302         RTestExecution          iTestExecution;
   311         RTestExecution          iTestExecution;
   303 
   312 
   304         // Event array for events requested by test case
   313         // Event array for events requested by test case
   305         RPointerArray<CTestEventNotify> iEventArray;
   314         RPointerArray<CTestEventNotify> iEventArray;