Forum Discussion

royd's avatar
royd
Regular Contributor
5 years ago
Solved

Need help with 'GeneralEvents_OnLogError'

Hi All   I am trying to save the log when TestComplete encounters an error and stops. After much reading, searching I have this bit working.   function swceLogin(){ Browsers.Item("iexplor...
  • AlexKaras's avatar
    5 years ago

    Hi,

     

    Do you need to export the log at the moment when error occurs?

    The reason of your problem is that the handler is called before the error is actually posted to the log. This gives you a chance to not post it to the log.

     

    You may consider to set your Test Item to stop on error and move your code from the OnLogError handler to the OnStopTest one.