Forum Discussion
13 Replies
TestComplete stores all of the test results in XML format in the <Project_Folder>\Logs folder. You can export log contents into XML, HTML or MHT (see Exporting Test Results) in order to view test results in your Internet browser.
- MW_DidataRegular Contributor
When running from a batchscript you can also use the command '/ExportLog:file_name.html'
This will create a html logfile while also creating the description.tcLog file for use inside Testcomplete. as an example: '/ExportLog:"D:/TCLogs/ProjectTCLog.html"'
You can find all the commands for cli right here:
- scot1967Regular Contributor
Side Q: I haven't used the html export. It seems it would be 'noisy' needing a lot of supporting files ands folders to create a useful web report. How would you manage multiple reports?
- MW_DidataRegular Contributor
Sorry for the late reply, I had HTML coverage but removed it after a while.
Since I had the regular reports I deleted all html reports at the start of the run.
It was only a shopshot of last nights results.
For my api tests I have the same issue of clogging the folders with many files, For this I remove the reports older than 10 days while keeping a txt file with less data for logging purposes.
- scot1967Regular Contributor
You could export to JUnit and use a 3rd party app. /JunitLog:FilePath
- scot1967Regular Contributor
The log results are saved in a file path on the machine used to run the tests that is similar to where it was created because TestExecute uses the projects path. It's a pain but they can be found, copied and imported to an instance of TestComplete for analysis and sharing.
Look under 'More Operations With Log Files'
On a pipeline machine the log files are bit more difficult to locate... Example path.... \\Server\c$\agent\_work\r101\$\_TestComplete\SubFolder\Name...
- MW_DidataRegular Contributor
Side Question for you, Is there any way to automatically do this?
If I wanted to run my tests over several PCs and send those log files to 1 machine for reading without having to add every single report manually?
- rraghvani
Champion Level 3
It can be done via PowerShell scripts - use the script to run the automation with the appropriate parameters to generate the report into a folder. Then copy the results folder to your dedicated machine. You will need to label the folder appropriately e.g. [Machine Name + Timestamp]
You probably figured this out by now, but you must use Internet Explorer. It seems like Smartbear would change this file format to html to work with Edge instead of now deprecated apps.
- rraghvani
Champion Level 3
Use Microsoft Edge to view .mht files. If there's no information being shown, then search through TestComplete forum on 'MHT', to set up Edge (there's a number of discussions on this)
- nastesterRegular Contributor
In a web browser