Forum Discussion

FFCB's avatar
FFCB
Contributor
10 months ago

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

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

13 Replies

    • scot1967's avatar
      scot1967
      Regular 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_Didata's avatar
        MW_Didata
        Regular 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.

         

  • 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...

     

    • MW_Didata's avatar
      MW_Didata
      Regular 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's avatar
        rraghvani
        Icon for Champion Level 3 rankChampion 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.

  • 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)