Forum Discussion
Dmitry_Nikolaev
Staff
15 years agoHi Randy,
Currently, this will only work if you address your objects directly (via "Window", "WPFObject", etc.) and will not work if you address objects via Name Mapping.
So, to implement this scenario, I recommend that you set an event handler for the OnLogError event in the following way:
and leave the "Stop on error" option of the project disabled. See Creating an Event Handler for the OnLogError Event for more information.
Maybe "Stop on window recognition error" is what I'm describing?
Currently, this will only work if you address your objects directly (via "Window", "WPFObject", etc.) and will not work if you address objects via Name Mapping.
Is there a way to only continue if there is a checkpoint failure, but stop if there is an action failure?
So, to implement this scenario, I recommend that you set an event handler for the OnLogError event in the following way:
function GeneralEvents_OnLogError(Sender, LogParams)
{
if ( (aqString.Find(LogParams.Str, "checkpoint") == -1) || (aqString.Find(LogParams.Str, "failed") == -1))
{
Runner.Halt();
}
}
and leave the "Stop on error" option of the project disabled. See Creating an Event Handler for the OnLogError Event for more information.