changeset 163:18d8671d9c96

Remove syntax errors in generated html reports
author Zdenek Zambersky <zzambers@redhat.com>
date Wed, 22 Oct 2014 19:24:02 +0200
parents e8ad3e5e4893
children 8d89a507c0ad
files ChangeLog src/org/thermostat/qa/reporter/LogPagesGenerator.java templates/graph.html templates/hist.html templates/index.html templates/log.html
diffstat 6 files changed, 19 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 22 16:42:56 2014 +0200
+++ b/ChangeLog	Wed Oct 22 19:24:02 2014 +0200
@@ -1,3 +1,13 @@
+2014-10-22  Zdenek Zambersky  <zzambers@redhat.com>
+
+	Some fixes which removes several syntax errors in generated html reports.
+	* templates/graph.html: removed extra html tag, added missing body tag
+	* templates/hist.html: same as previous
+	* templates/index.html: same as previous
+	* templates/log.html: same as previous
+	* src/org/thermostat/qa/reporter/LogPagesGenerator.java: tags of table row
+	fixed
+
 2014-04-15  Jana Fabrikova  <jfabriko@redhat.com>
 	* src/org/thermostat/qa/framework/GuiRobot.java:
 	modification of method (resize) - fixing the resizing of thermostat gui
--- a/src/org/thermostat/qa/reporter/LogPagesGenerator.java	Wed Oct 22 16:42:56 2014 +0200
+++ b/src/org/thermostat/qa/reporter/LogPagesGenerator.java	Wed Oct 22 19:24:02 2014 +0200
@@ -195,7 +195,7 @@
                     resultLines.add(testLine);
                 }
             }
-            resultLines.add("<td><td colspan='2'>&nbsp;</td></tr>");
+            resultLines.add("<tr><td colspan='2'>&nbsp;</td></tr>");
         }
         return resultLines;
     }
--- a/templates/graph.html	Wed Oct 22 16:42:56 2014 +0200
+++ b/templates/graph.html	Wed Oct 22 19:24:02 2014 +0200
@@ -50,7 +50,7 @@
         <script type="text/javascript" src="flotr/flotr-0.2.0-alpha.js"></script>
 
     </head>
-<html>
+<body>
     <h1>ThermostatQA tests report - graph for ${TEST_COUNT} tests</h1>
 
     <table border="0">
@@ -166,5 +166,6 @@
             </tr>
         </table>
     <hr />
+    </body>
 </html>
 
--- a/templates/hist.html	Wed Oct 22 16:42:56 2014 +0200
+++ b/templates/hist.html	Wed Oct 22 19:24:02 2014 +0200
@@ -40,7 +40,7 @@
         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
         <link type="text/css" rel="StyleSheet" href="style.css" />
     </head>
-<html>
+<body>
     <h1>ThermostatQA tests history -  ${RESULTS}</h1>
 
     <br />
@@ -48,6 +48,6 @@
     <table border='2' frame='border' rules='all' cellspacing='1' cellpadding='1' class='forms' summary='' style='white-space:nowrap;margin-left:0px'>
 ${TABLE_DATA}
     </table>
-
+</body>
 </html>
 
--- a/templates/index.html	Wed Oct 22 16:42:56 2014 +0200
+++ b/templates/index.html	Wed Oct 22 19:24:02 2014 +0200
@@ -40,7 +40,7 @@
         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
         <link type="text/css" rel="StyleSheet" href="style.css" />
     </head>
-<html>
+<body>
     <h1>ThermostatQA tests report: JDK ${JAVA_VERSION}</h1>
     
     <p>
@@ -127,5 +127,6 @@
             <td colspan='3'>${VM_VERSION}</td>
         </tr>
     </table>
+</body>
 </html>
 
--- a/templates/log.html	Wed Oct 22 16:42:56 2014 +0200
+++ b/templates/log.html	Wed Oct 22 19:24:02 2014 +0200
@@ -40,7 +40,7 @@
         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
         <link type="text/css" rel="StyleSheet" href="style.css" />
     </head>
-<html>
+<body>
     <h1>ThermostatQA tests log for date ${DATE}</h1>
 
     <br />
@@ -59,5 +59,6 @@
 
     <!-- it's needed to be able to display specific test on the top of browser window -->
     <div style='height:2000px;'>&nbsp;</div>
+</body>
 </html>