30 |
30 |
31 |
31 |
32 void CTTMSGraphicsStep::CleanUpAndWriteResults() |
32 void CTTMSGraphicsStep::CleanUpAndWriteResults() |
33 { |
33 { |
34 TBuf<256> testID; |
34 TBuf<256> testID; |
35 TBuf<8> unusableTestResult; //In graphicstestharness it is not known whether the test was started with |
35 TBuf<8> testResult; |
36 //!Result=Fail or !Error=KErrSomething given as paramenter to RUN_TEST_STEP |
|
37 |
36 |
38 for (TInt iArrayIndex=0; iArrayIndex < iArrayTMSData.Count(); iArrayIndex++) |
37 for (TInt iArrayIndex=0; iArrayIndex < iArrayTMSData.Count(); iArrayIndex++) |
39 { |
38 { |
40 CTMSDataColumn columnData = iArrayTMSData[iArrayIndex]; |
39 CTMSDataColumn columnData = iArrayTMSData[iArrayIndex]; |
41 |
40 |
42 testID.Copy(columnData.iTheID); |
41 testID.Copy(columnData.iTheID); |
43 unusableTestResult.Copy(columnData.iTheResult); //unusable because we don't know if the test is expected to pass or fail |
42 testResult.Copy(columnData.iTheResult); |
44 |
43 |
45 INFO_PRINTF2(_L("START_TESTCASE %S"),&testID); |
44 INFO_PRINTF2(_L("START_TESTCASE %S"),&testID); |
46 INFO_PRINTF2(_L("Line = 1 Command = START_TESTCASE %S"),&testID); |
45 INFO_PRINTF2(_L("Line = 1 Command = START_TESTCASE %S"),&testID); |
47 INFO_PRINTF2(_L("END_TESTCASE %S"),&testID); |
46 INFO_PRINTF2(_L("END_TESTCASE %S"),&testID); |
48 INFO_PRINTF2(_L("Line = 1 Command = END_TESTCASE %S"),&testID); |
47 INFO_PRINTF3(_L("Line = 1 Command = END_TESTCASE %S ***TestCaseResult = %S"),&testID,&testResult); |
49 } |
48 } |
50 |
49 |
51 iArrayTMSData.Close(); |
50 iArrayTMSData.Close(); |
52 } |
51 } |
53 |
52 |