mortenb123
5 years agoContributor
Add data to report
Hi How do I add more items under general, Tye seem to dom from a js structure called Data, how can I add to it?
I can mock the summary.htm and insert manually:
<div id="GeneralResults_Section"> <h2><a href="#" onclick="ShowHide('GeneralResults')"><img id="GeneralResults_Img"/>General</a></h2> <div id="GeneralResults" class="section"> <table> <tr><td class="generalCellTitle">Execution started:</td><td class="generalCellData" id="execStartTime">N/A</td><td class="generalCellTitle2">User:</td><td class="generalCellData" id="execUserName">N/A</td><td></td></tr> <tr><td>Execution stopped:</td><td class="generalCellData" id="execStopTime">N/A</td><td class="generalCellTitle2">Computer:</td><td class="generalCellData" id="execHostName">N/A</td><td></td></tr> </table> </div> </div>
ddata taken from a data structure under <script>.
But it would be nice if there was an array I could just push to.
You can't really. That's generated by the TestComplete tool in internal code. As far as I know, there's no open API or code that can be written to add to the "canned" reports.