cancel
Showing results for 
Search instead for 
Did you mean: 

Add data to report

SOLVED
Highlighted
Contributor

Add data to report

testcomplete-report.png

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

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.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

1 REPLY 1
Highlighted
Community Hero

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.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors