1650 CTCTestCase::NewL( this, |
1650 CTCTestCase::NewL( this, |
1651 aStartInfo.iModule, |
1651 aStartInfo.iModule, |
1652 aStartInfo.iTestId, |
1652 aStartInfo.iTestId, |
1653 aStartInfo.iExpectedResult, |
1653 aStartInfo.iExpectedResult, |
1654 aStartInfo.iCategory, |
1654 aStartInfo.iCategory, |
|
1655 aStartInfo.iTestCaseArguments, |
1655 module ); //--PYTHON-- |
1656 module ); //--PYTHON-- |
1656 |
1657 |
1657 CleanupStack::PushL( tc ); |
1658 CleanupStack::PushL( tc ); |
1658 |
1659 |
1659 //If name of testcase was given, find testcase number |
1660 //If name of testcase was given, find testcase number |
1692 TestModuleIf().Printf( KPrintPriLow, _L("Start"), |
1693 TestModuleIf().Printf( KPrintPriLow, _L("Start"), |
1693 _L("testid(%S), module(%S), ini(%S), config(%S), case(%d), expect(%d)"), |
1694 _L("testid(%S), module(%S), ini(%S), config(%S), case(%d), expect(%d)"), |
1694 &aStartInfo.iTestId, &aStartInfo.iModule, &aStartInfo.iIniFile, |
1695 &aStartInfo.iTestId, &aStartInfo.iModule, &aStartInfo.iIniFile, |
1695 &aStartInfo.iConfig, aStartInfo.iCaseNum, aStartInfo.iExpectedResult ); |
1696 &aStartInfo.iConfig, aStartInfo.iCaseNum, aStartInfo.iExpectedResult ); |
1696 |
1697 |
1697 tc->TestExecution().RunTestCase( tc->iResultPckg, tc->iStatus ); |
1698 if ( tc->TestCaseArguments().Length() > 0 ) |
|
1699 { |
|
1700 tc->TestExecution().RunTestCase( tc->iResultPckg, tc->TestCaseArguments(), tc->iStatus ); |
|
1701 } |
|
1702 else |
|
1703 { |
|
1704 tc->TestExecution().RunTestCase( tc->iResultPckg, tc->iStatus ); |
|
1705 } |
1698 |
1706 |
1699 iRunningTests++; |
1707 iRunningTests++; |
1700 |
1708 |
1701 User::LeaveIfError( iTestCases.Append( tc ) ); |
1709 User::LeaveIfError( iTestCases.Append( tc ) ); |
1702 if( iLoopIsUsed ) |
1710 if( iLoopIsUsed ) |
3284 { |
3292 { |
3285 __TRACE( KMessage, (_L("case title=%S"), &val)); |
3293 __TRACE( KMessage, (_L("case title=%S"), &val)); |
3286 aStartInfo.SetTitleL(val); |
3294 aStartInfo.SetTitleL(val); |
3287 break; |
3295 break; |
3288 } |
3296 } |
|
3297 case TTCKeywords::EArgs: |
|
3298 { |
|
3299 __TRACE( KMessage, (_L("case arguments=%S"), &val)); |
|
3300 aStartInfo.SetTestCaseArgumentsL( val ); |
|
3301 } |
|
3302 break; |
3289 default: |
3303 default: |
3290 { |
3304 { |
3291 __TRACE( KError, (_L("Unknown or illegal keyword"))); |
3305 __TRACE( KError, (_L("Unknown or illegal keyword"))); |
3292 //Unknown or illegal keyword |
3306 //Unknown or illegal keyword |
3293 iRunErrorMessage.Format( KErrMsgRunUnknowOrIllegalKeyword, &arg ); |
3307 iRunErrorMessage.Format( KErrMsgRunUnknowOrIllegalKeyword, &arg ); |