Mimic the HTML Report settings in the Custom HTML Report tab
to make a report look just like the normal HTML report?
Its simple:
1) leave "Folder summary" and "Gap between folders" sections empty
2) copy contents of stdFooter.html file (Examples directory) into "Footer" section
3) "Folder title" section can looks like
<tr><td colspan=4 bgcolor="%Background%" nowrap align="left"><b><font color="%ItemColor%"> Folder: %Folder% </font></b></td></tr>
value of colspan parameter should be equal to number of fields in the report.
Contents of "Header" and "Test items" section depends on list of fields you want to include into the report. Consider for example 4 fields: TestName, LastTestTime, Status, and Reply.
4) copy contents of stdHeader.html file (Examples directory) into "Header" section and add 6 more lines:
<tr>
<td bgcolor="%Background%" nowrap align="left"><strong><font color="%ItemColor%">Test name</font></strong></td>
<td bgcolor="%Background%" nowrap align="center"><strong><font color="%ItemColor%">Last test time</font></strong></td>
<td bgcolor="%Background%" nowrap align="center"><strong><font color="%ItemColor%">Status</font></strong></td>
<td bgcolor="%Background%" nowrap align="center"><strong><font color="%ItemColor%">Reply</font></strong></td>
</tr>
5) add 6 lines into "Test items" section (for each status)
<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%>%LastTestTime%</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%>%Reply%</font></td>
</tr>
That's it
Regards
Alex
Its simple:
1) leave "Folder summary" and "Gap between folders" sections empty
2) copy contents of stdFooter.html file (Examples directory) into "Footer" section
3) "Folder title" section can looks like
<tr><td colspan=4 bgcolor="%Background%" nowrap align="left"><b><font color="%ItemColor%"> Folder: %Folder% </font></b></td></tr>
value of colspan parameter should be equal to number of fields in the report.
Contents of "Header" and "Test items" section depends on list of fields you want to include into the report. Consider for example 4 fields: TestName, LastTestTime, Status, and Reply.
4) copy contents of stdHeader.html file (Examples directory) into "Header" section and add 6 more lines:
<tr>
<td bgcolor="%Background%" nowrap align="left"><strong><font color="%ItemColor%">Test name</font></strong></td>
<td bgcolor="%Background%" nowrap align="center"><strong><font color="%ItemColor%">Last test time</font></strong></td>
<td bgcolor="%Background%" nowrap align="center"><strong><font color="%ItemColor%">Status</font></strong></td>
<td bgcolor="%Background%" nowrap align="center"><strong><font color="%ItemColor%">Reply</font></strong></td>
</tr>
5) add 6 lines into "Test items" section (for each status)
<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%>%LastTestTime%</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%>%Reply%</font></td>
</tr>
That's it
Regards
Alex