Forum Discussion

gunnettmd's avatar
gunnettmd
Contributor
12 years ago

Getting exception details in event handler OnLogError

We have written scripts that when the OnLogError event is fired, emails the automation team. We would like to include the exception details in the email but have not come up with a way of retrieving that information from the event handler. Can anyone offer any suggestions?

1 Reply

  • Hi Mike


    Try to use the LogParams object within the OnLogError event handler:




    var arr = new Array();


    function GeneralEvents_OnLogError(Sender, LogParams)

    {

    arr.push(LogParams);

    }


    Then, you can create the OnStopTest event handler that will process the obtained results and send the email.


    I hope this helps

    Ann