While runing scripts using Test Execute the results logs are .mht , and how do i read this ?

Originally posted by FFCB on May 30, 2024

While runing scripts using Test Execute the results logs are .mht , and how do i read this ?

my results gets stored in below shared location , how do i open this file?c:/users/<>/AppData/Local/Temp/tcResults1.mht

Originally posted by nastester on May 30, 2024

In a web browser

Originally posted by rraghvani on May 30, 2024

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)

Originally posted by BTip on February 03, 2025

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.

Originally posted by JDR2500 on February 03, 2025

It’s kind of ridiculous they are still using that antiquated file format.

Originally posted by scot1967 on February 03, 2025

Vote this up…

TestExecute- Update .mht log files | SmartBear Community

Originally posted by scot1967 on February 03, 2025

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’

https://support.smartbear.com/testcomplete/docs/testing-with/log/working-with/managing.html#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…

Originally posted by scot1967 on February 03, 2025

You could export to JUnit and use a 3rd party app. /JunitLog:FilePath

Originally posted by MW_Didata on February 04, 2025

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:

https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/command-line.html

Originally posted by Kevin_M_Johnson on February 05, 2025

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.

Originally posted by scot1967 on February 05, 2025

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?

Originally posted by MW_Didata on February 14, 2025

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.

Originally posted by MW_Didata on February 14, 2025

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?

Originally posted by rraghvani on February 14, 2025

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]