Forum Discussion

guoguo's avatar
guoguo
Contributor
9 years ago

Export logs

Hi,

 

We are trying to export log file for a project. We found a help text from the smartbear webseite. The question is: where shall we put this "ExportLog" in the test script. In our script, there are 12 tests. If we put it at the end of the script, when the tests are not completed without errors, the "ExportLog" function will not be reached. Shall we put this "ExportLog" in the other thread?

 

http://support.smartbear.com/viewarticle/68245/?_ga=1.54413996.580235082.1430739196

 

Does someone has a good idea?

 

Best Regards,

guoguo

2 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Guoguo,

     

    I suggest that you investigate events available in TestComplete. You can put the ExportLog function to the event handler of the corresponding events, for example, to OnLogError or OnStopTest. Please read the Handling Events article for details.

    • guoguo's avatar
      guoguo
      Contributor

      Thank you very much! I will have a try.

       

      Regards,

      Jie