Ask a Question

Testcomplete 14 SaveResultsAs does not export summary.htm

Occasional Contributor

Testcomplete 14 SaveResultsAs does not export summary.htm

I use Log.SaveResultsAs(FileNameLogFormatExportVisualizerImagesLogScope) for export Testresults in HTML after the testrun, call is : Log.SaveResultsAs(logpath, lsHTML, true, 0), logpath is defined in a variable.
Testcomplete 14 has the summary report (summary.htm), when I call the export from Testcomplete ID or with commanline parameter, the file summary.htm will be exported, but when I use Log.SaveResultsAs the file summary.htm will be not exported.


Is there something wrong with my call for Log. SaveResultsAs or does Log.SaveResultsAs not support the export of summary.htm?

Martin Stromberger

Esteemed Contributor

Save results saves the log, it doesn't save the summary report because the summary report that you see in TestComplete is created later in the process after the log is saved.  It's not part of the log itself so Log.SaveResultsAs won't save that report.

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

Second what @tristaanogre said. We had to rework our framework to have our powershell scripts save the logs as opposed to a tear down script inside of test complete to use this feature. 


Click the Accept as Solution button if my answer has helped
Occasional Contributor

Hi, I came to the same solution, rework startjobs for local export and power-shell-scripts for moving local export to to a logshare. I'm still considering a downgrade to testcomplete 12 because in my case only the support for newer Firefox versions is required.

Martin Stromberger

Hi, @stm .
I faced a similar problem. Maybe my solution could be helpful for you.
We're running the tests with ps script, which starts the TestComplete. 
The summary is exported with /el command-line argument after testRun is finished.
But I post the logs URL to the slack on testRun start, and also post the intermediate logs, when an error occurs, or with pre-configured log-timeout. 
So I had to retrieve the value of an /el argument.

Showing results for 
Search instead for 
Did you mean: