Hi at all,
is there anybody who has the template for a custom html report that includes the folder summary and the other modules like in example1 from online help?
Best regards
E. Wesener
Custom HTML Template needed
Use something like this
Header
Folder title
Test items
the same code for all statuses
Folder summary
Gap
Footer
Regards
Alex
Header
Code: Select all
<html><head>
<meta name="GENERATOR" content="KS-Soft HostMonitor">
<title>HostMonitor report</title>
<STYLE TYPE="text/css"><!-- a:hover { color: "#0000FF"; } --> </STYLE>
</head>
<body bgcolor="#E9E9E9" text="#000000" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<p align="left"><u><strong><big><big>HostMonitor Report</big></big><br>
</strong></u><font face="Arial">Generated on %Date% at %Time%</font></p>
<table border="0" bordercolor="#00008C" width="100%">
<tr>
<td bgcolor="#0000FF" nowrap align="left"><strong><font color=#FFFFFF>Test name</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Status</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Recurrences</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Reply</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Alive %</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Dead %</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Total tests</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Passed tests</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Failed tests</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Average reply</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Min reply</font></strong></td>
<td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Max reply</font></strong></td>
</tr>
Folder title
Code: Select all
<tr>
<td colspan=12 bgcolor="%Background%" nowrap align="left"><b><font color="%ItemColor%"> Folder: %Folder%\ </font></b></td>
</tr>
Test items
Code: Select all
<tr>
<td bgcolor="%Background%" nowrap valign="top" align="left"> <font color=%ItemColor%>%TestName%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%Status%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%Recurrences%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%Reply%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%AliveRatio%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%DeadRatio%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%TotalTests%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%PassedCnt%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%FailedCnt%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%AverageReply%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%MinReply%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%MaxReply%</font> </td>
</tr>
Folder summary
Code: Select all
<tr><td colspan=1 bgcolor="#DDDD60" ><font color=%ItemColor%>
<b>Folder's summary</b> <br>
Average Alive %<br>
Average Dead % <br>
Average Unknown % <br>
Average Reply <br>
Min Reply <br>
Max Reply <br>
</font></td>
<td colspan=11 bgcolor="#DDDD60" ><font color=%ItemColor%>
%FullPath%<br>
%FolderAverage_AliveRatio% <br>
%FolderAverage_DeadRatio% <br>
%FolderAverage_UnknownRatio% <br>
%FolderAverage_AverageReply% <br>
%FolderMin_MinReply% <br>
%FolderMax_MaxReply% <br>
</font></td></tr>
Gap
Code: Select all
<tr height=10></tr>
Footer
Code: Select all
</table>
<hr>
<br>
<table border=0>
<tr><td> Tests with "Good" status</td><td>%GoodTests%</td></tr>
<tr><td> Tests with "Bad" status</td><td>%BadTests%</td></tr>
<tr><td> Tests with "Unknown" status </td><td>%UnknownTests%</td></tr>
</table><br>
<p>This report was generated by <a href="http://www.ks-soft.net" target="_blank"><strong>KS-Soft</strong></a><b>
<a href="http://www.ks-soft.net/hostmon.eng/index.htm" target="_blank">HostMonitor</a></b></p>
</body>
</html>
Alex