david_williams | 2e87efa | 2008-09-01 02:56:08 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | |
| 4 | <?php |
| 5 | $parts = explode("/", getcwd()); |
| 6 | $parts2 = explode("-", $parts[count($parts) - 1]); |
| 7 | $buildName = $parts2[1]; |
| 8 | |
| 9 | echo "<title>Test Results for $buildName </title>"; |
| 10 | ?> |
| 11 | |
| 12 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 13 | |
| 14 | <style> |
| 15 | .bold, .bold TD, .bold TH, .bold TR |
| 16 | { |
| 17 | font-weight:bold; |
| 18 | } |
| 19 | .numeric, .numeric TD |
| 20 | { |
| 21 | text-align:right; |
| 22 | padding-right:2em; |
| 23 | } |
| 24 | .normaltable, .normaltable TD, .normaltable TH |
| 25 | { |
| 26 | font-family:Bitstream Vera Sans Mono, monospace; |
| 27 | font-size:0.9em; |
| 28 | color:Black; |
| 29 | background-color:White; |
| 30 | } |
| 31 | .errorltable, .errortable TD, .errortable TH |
| 32 | { |
| 33 | font-family:Bitstream Vera Sans Mono, monospace; |
| 34 | font-size:0.9em; |
| 35 | color:Black; |
| 36 | background-color:Red; |
| 37 | font-weight:Bold; |
| 38 | } |
| 39 | .warningtable, .warningtable TD, .warningtable TH |
| 40 | { |
| 41 | font-family:Bitstream Vera Sans Mono, monospace; |
| 42 | font-size:0.9em; |
| 43 | color:Black; |
| 44 | background-color:khaki; |
| 45 | } |
| 46 | .extraWarningTable, .extraWarningTable TD, .extraWarningTable TH |
| 47 | { |
| 48 | font-family:Bitstream Vera Sans Mono, monospace; |
| 49 | font-size:0.9em; |
| 50 | color:Black; |
| 51 | background-color:Yellow; |
| 52 | |
| 53 | } |
| 54 | </style> |
| 55 | |
| 56 | |
| 57 | </head> |
| 58 | <body> |
| 59 | <p><b><font face="Verdana" size="+3">Test Results</font></b> </p> |
| 60 | |
| 61 | <table border=0 cellspacing=5 cellpadding=2 width="100%" > |
| 62 | <tr> |
| 63 | <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica"> |
| 64 | Unit Test Results for <?php echo "$buildName"; ?> on Various Platforms and JRE</font></b></td> |
| 65 | </tr> |
| 66 | </table> |
| 67 | |
| 68 | <?php |
| 69 | if (file_exists("testResults")) |
| 70 | { |
| 71 | $dir = dir("testResults"); |
| 72 | while ($anEntry = $dir->read()) |
| 73 | { |
| 74 | if ($anEntry != "." && $anEntry != ".." && $anEntry != "consolelogs" && $anEntry != "html" && $anEntry != "xml") |
| 75 | { |
| 76 | $link = "testResults/".$anEntry."/results/index.php"; |
| 77 | echo "<p><a href=\"$link\">$anEntry</a></p>"; |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | ?> |
| 82 | |
| 83 | <table border=0 cellspacing=5 cellpadding=2 width="100%" > |
| 84 | <tr> |
| 85 | <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">Unit |
| 86 | Test Results for <?php echo "$buildName"; ?> </font></b></td> |
| 87 | </tr> |
| 88 | </table> |
| 89 | |
| 90 | <table id=tableunittestdata align = "center" width="75%" border="1"> |
| 91 | <tr> |
| 92 | <td class="bold" align="center" width="70%">Test Suite</td> |
david_williams | 13e2a2c | 2009-11-14 08:06:12 +0000 | [diff] [blame] | 93 | <td class="bold" align="center" width="10%">Errors & Failures</td> |
| 94 | <td class="bold" align="center" width="10%">Total Tests</td> |
| 95 | <td class="bold" align="center" width="10%">Total Time (s)</td> |
david_williams | 2e87efa | 2008-09-01 02:56:08 +0000 | [diff] [blame] | 96 | </tr> |
| 97 | |
| 98 | |
| 99 | %testresults% |
| 100 | |
| 101 | </table> |
| 102 | <p></p> |
| 103 | <br> |
| 104 | <table border=0 cellspacing=5 cellpadding=2 width="100%" > |
| 105 | <tr> |
| 106 | <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica"> |
| 107 | Console output logs |
| 108 | <?php echo "$buildName"; ?> |
| 109 | </font></b></td> |
| 110 | </tr> |
| 111 | </table> |
| 112 | <br> |
| 113 | These <a href="consoleLogs.php">logs</a> contain the console output captured while |
| 114 | running the JUnit automated tests. <br> |
| 115 | <br> |
| 116 | |
| 117 | |
| 118 | </body> |
| 119 | </html> |