Forum Discussion
10 years ago
Alright, so I figured out how to use the event handler, since it wasn't shown how it works in terms of code. I think I was confused as it works from a chain of command perspective, since it wasn't apparant that the system itself would go to your Error function when an errors occurs.
My new problem is when an object is not found and the event handler is called and my reset code is executed, when it is finished it tries to go right back to where it left off when the error was called. Am I missing something in my event handler to tell the script to not go back where it originally errored?
My event handler:
function GeneralEvents_OnLogError(Sender, LogParams)
{
Log.Message("Mapping error occured.");
//Call to reset function
return -1;
}
Also the wait and exists methods do not really provide the solution I am looking for, since I am trying to catch errors, then reset the site accordingly, and there not be able need for user input to run the next test in the sequence.
My new problem is when an object is not found and the event handler is called and my reset code is executed, when it is finished it tries to go right back to where it left off when the error was called. Am I missing something in my event handler to tell the script to not go back where it originally errored?
My event handler:
function GeneralEvents_OnLogError(Sender, LogParams)
{
Log.Message("Mapping error occured.");
//Call to reset function
return -1;
}
Also the wait and exists methods do not really provide the solution I am looking for, since I am trying to catch errors, then reset the site accordingly, and there not be able need for user input to run the next test in the sequence.
Related Content
- 6 years ago
- 5 years ago
Recent Discussions
- 7 hours ago