Forum Discussion

pjsoconnell's avatar
pjsoconnell
New Contributor
5 years ago

How To Export Multiple Existing Test Logs as MHT

Hi there! I am trying to implement what I feel should be an easy solution.   (I will just pre-empt this by saying I know you can add an event to call Log.SaveResultsAs() to generate an MHT file of...
  • tristaanogre's avatar
    tristaanogre
    5 years ago

    Currently, programmatically, there is no way to do what you're asking.

     

    Likewise, the tool does not allow for multi-selecting logs and then exporting them.

     

    Now, as to using the Log.SaveResultsAs...  As you said, you don't want to impact your running time by doing so after every test case... but you don't need to do that.  In your MDS project, somewhere, after ALL the test cases have run, just add one final routine to do the Log.SaveResultsAs.  That will give you your one export at that time to save the log to MHT after all the test cases have run.