Show
Ignore:
Timestamp:
06/23/08 09:01:51 (5 months ago)
Author:
magi@…
Message:

More working formatting for test results.

Location:
ToolkitAutomatedTesting
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • ToolkitAutomatedTesting/src/com/itmill/toolkit/automatedtests/client/Raport.java

    r4170 r4938  
    9494                        throws Exception { 
    9595                String testRaport = templateTestRaport; 
    96                 String testRunsDetails = ""; 
    97                 String testRunsHeaders = ""; 
     96                String testData = ""; 
    9897 
    9998                // Iterator for all testruns 
     
    115114                        String runHeader = ""; 
    116115                        String runDetails = ""; 
     116                        String runRow = ""; 
    117117 
    118118                        try { 
    119                                 if (!firstTestRunHandled) { 
    120                                         runHeader = getRunHeader(run); 
    121                                         runDetails = getRunDetails(run); 
    122                                         testRaport = testRaport.replaceFirst( 
    123                                                         "\\$\\{firstTestRunHeader\\}", runHeader); 
    124                                         firstTestRunHandled = true; 
    125                                 } else { 
    126                                         runHeader = "<tr>\n" + getRunHeader(run) + "</tr>\n"; 
    127                                         runDetails = getRunDetails(run) + "\n"; 
    128                                         testRunsHeaders += runHeader; 
    129                                 } 
     119                                runHeader = getRunHeader(run); 
     120                                runDetails = "<td>"+getRunDetails(run)+"</td>"; 
     121                                runRow = "<tr>"+runHeader+runDetails+"</tr>"; 
    130122                        } catch (Exception e) { 
    131123                                e.printStackTrace(); 
    132124                        } 
    133  
    134                         testRunsDetails += "       <tr>\n" + runDetails 
    135                                         + "\n       </tr>\n"; 
    136                 } 
    137  
    138                 try { 
    139                         // Update rowspan from template 
    140                         testRaport = testRaport.replaceFirst("\\$\\{rowSpan\\}", "" 
    141                                         + (count + 1)); 
    142                         // Add build caption, link etc. 
    143                         testRaport = testRaport.replaceFirst("\\$\\{testRunHeader\\}", 
    144                                         testRunsHeaders); 
    145                         // Add test case results 
    146                         testRaport = testRaport.replaceFirst("\\$\\{testRunDetail\\}", 
    147                                         testRunsDetails); 
     125                         
     126                        testData = testData + runRow; 
     127                } 
     128 
     129                try { 
     130                        // Update test data to template 
     131                        testRaport = testRaport.replaceFirst("\\$\\{testData\\}", testData); 
    148132                } catch (Exception e) { 
    149133                        e.printStackTrace(); 
  • ToolkitAutomatedTesting/templates/template-head.html

    r4171 r4938  
    6262.version { 
    6363        width: 200px; 
     64} 
     65 
     66tr { 
     67        vertical-align: top; 
    6468} 
    6569 
  • ToolkitAutomatedTesting/templates/template-raport.html

    r4171 r4938  
    1616  <!-- ROWS BEGIN. START EDITING HERE --> 
    1717  <tr> 
    18    ${firstTestRunHeader} 
    19     
    20    <!-- THIS CELL IS SPECIAL, IT CONTAINS *ALL* TEST RESULT/REPORT ROWS --> 
    21    <!-- REMEMBER TO UPDATE THE ROWSPAN ATTRIBUTE, WHICH IS ONE LARGER THAN THE TOTAL NUMBER OF BUILDS  
    22         (BECAUSE OF THE SPACEHOLDER ROW ON THE BOTTOM) --> 
    23    <td rowspan="${rowSpan}" class="tests"> 
    24     <div class="tests-container"> 
    25      <table cellpadding="0" cellspacing="0"> 
    26       <tbody> 
    27         <!-- ADD multiple template-testRunDetail.html FOR EACH BUILD --> 
    28         ${testRunDetail} 
    29       </tbody> 
    30      </table> 
    31     </div> 
    32    </td> 
    33     
    34   </tr> 
    35  
    36   <!-- ADD ONE template-testRunHeader.html ROW FOR EACH BUILD (except the first testrun) --> 
    37   ${testRunHeader} 
    38    
     18   ${testData} 
    3919  <!-- DON'T MODIFY BELOW THIS --> 
    4020  <tr class="spaceholder-row"> 
  • ToolkitAutomatedTesting/templates/template-testRunDetail.html

    r4161 r4938  
    1 <td>${testResultCaption}: <a href="${testResultLink}" class="${testResultStatus}">${testResultStatusCaption}</a> ${testResultExecutionTime}</td> 
     1${testResultCaption}:&#160;<a href="${testResultLink}" class="${testResultStatus}">${testResultStatusCaption}</a>&#160;${testResultExecutionTime}