Changeset 4938 for ToolkitAutomatedTesting
- Timestamp:
- 06/23/08 09:01:51 (5 months ago)
- Location:
- ToolkitAutomatedTesting
- Files:
-
- 4 modified
-
src/com/itmill/toolkit/automatedtests/client/Raport.java (modified) (2 diffs)
-
templates/template-head.html (modified) (1 diff)
-
templates/template-raport.html (modified) (1 diff)
-
templates/template-testRunDetail.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ToolkitAutomatedTesting/src/com/itmill/toolkit/automatedtests/client/Raport.java
r4170 r4938 94 94 throws Exception { 95 95 String testRaport = templateTestRaport; 96 String testRunsDetails = ""; 97 String testRunsHeaders = ""; 96 String testData = ""; 98 97 99 98 // Iterator for all testruns … … 115 114 String runHeader = ""; 116 115 String runDetails = ""; 116 String runRow = ""; 117 117 118 118 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>"; 130 122 } catch (Exception e) { 131 123 e.printStackTrace(); 132 124 } 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); 148 132 } catch (Exception e) { 149 133 e.printStackTrace(); -
ToolkitAutomatedTesting/templates/template-head.html
r4171 r4938 62 62 .version { 63 63 width: 200px; 64 } 65 66 tr { 67 vertical-align: top; 64 68 } 65 69 -
ToolkitAutomatedTesting/templates/template-raport.html
r4171 r4938 16 16 <!-- ROWS BEGIN. START EDITING HERE --> 17 17 <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} 39 19 <!-- DON'T MODIFY BELOW THIS --> 40 20 <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}: <a href="${testResultLink}" class="${testResultStatus}">${testResultStatusCaption}</a> ${testResultExecutionTime}
