Forum Discussion

cissy's avatar
cissy
Occasional Contributor
13 years ago

Test Execute result log

Hi,



First, I ran test project by using Test Execute in command line. After finished to run the project, there occurred a mht file which showed the result.

But I want to know the path to store the result log because I need to analysis the result log automatically.





Thanks

Cissy

4 Replies

  • cissy's avatar
    cissy
    Occasional Contributor
    And could I define the path to store the result log in command line?



    Thanks

    Cissy
  • tinauser's avatar
    tinauser
    Frequent Contributor
    Hi,

    you could use the:

     

    Log.SaveResultsAs(FileName, lsMHT)

    to save your log file in a specific path.



    Regarding the second question, you can run a script setting a Project Variable of the string type and use that Project Variable to store the mht file, something like:



    Log.SaveResultsAs(Project.Variables.FileName, lsMHT)



    That´s what I´d do, you might wait for more expert answers


  • cissy's avatar
    cissy
    Occasional Contributor
    Thanks!



    I had solved this problem and I could store the result log in my path.