Hi i wish to know where should i add my own custom table into the testplan/testplan execution report , i tried to find the template for printDocument.tpl but notice there issnt any plc i can add these lines
<style type="text/css">
table.tftable {font-size:12px;color:#333333;width:100%;border-width: 1px;border-color: #729ea5;border-collapse: collapse;}
table.tftable th {font-size:12px;background-color:#acc8cc;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;text-align:left;}
table.tftable tr {background-color:#ffffff;}
table.tftable td {font-size:12px;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;}
</style>
<table id="tfhover" class="tftable" border="1">
<tr><th>Header 1</th><th>Header 2</th><th>Header 3</th><th>Header 4</th></tr>
<tr><td>Row:1 Cell:1</td><td>Row:1 Cell:2</td><td>Row:1 Cell:3</td><td>Row:1 Cell:4</td></tr>
<tr><td>Row:2 Cell:1</td><td>Row:2 Cell:2</td><td>Row:2 Cell:3</td><td>Row:2 Cell:4</td></tr>
<tr><td>Row:3 Cell:1</td><td>Row:3 Cell:2</td><td>Row:3 Cell:3</td><td>Row:3 Cell:4</td></tr>
<tr><td>Row:4 Cell:1</td><td>Row:4 Cell:2</td><td>Row:4 Cell:3</td><td>Row:4 Cell:4</td></tr>
</table>
Adding custom table into Test Report coverpage
Moderators: Amaradana, TurboPT, TL Developers
Re: Adding custom table into Test Report coverpage
I 've found a quick workaround by cloning the existing field in the 'print.inc.php' file by adding in the 'div.summary' with these but i having a little problem trying to retrieve the author name for this purpose, could anyone help me out on this issue.
if ($docCfg-> Prepared_By != '')
{
$output .= '<div class="pagefooter" id="release">' . $docCfg->Prepared_By .htmlspecialchars($authorName)."</div>\n";
}
if ($docCfg-> Prepared_By != '')
{
$output .= '<div class="pagefooter" id="release">' . $docCfg->Prepared_By .htmlspecialchars($authorName)."</div>\n";
}