TestComplete crashes if to Pause runner within OnLogError event, and then stopping it manually
Hi there,
Is it known issue?
I have event that stops excecution on some kind of errors, and I have project variable called 'PauseOnError'. So the first check within event - is PauseOnError true? - then it will either pause runner or probably stop it.
function GeneralEvents_OnLogError(Sender, LogParams) {
if (Project.Variables.PauseOnError == true) {
Runner.Pause();
} else
if ((LogParams.Str.indexOf("process crashed") >= 0) ||
(LogParams.Str.indexOf("exception") >= 0) ||
(LogParams.Str.indexOf("login failed") >= 0) ||
(LogParams.Str.indexOf("button is disabled") >= 0) ||
(LogParams.Str.indexOf("is not found") >= 0) ||
(LogParams.Str.indexOf("The object does not exist. See Additional Information for details.") >= 0) ||
(LogParams.Str.indexOf("The database version does not match the software version. Please contact your system administrator") >= 0))
Runner.Stop();
}
So, I'm constantly getting TestComplete crash when having runner paused and then clicking 'Stop' manually from TC toolbar.
Thanks,
Sergey