JBO
7 years agoNew Contributor
OnLogError Eventhandler always fires before OnTimeout
I have two Eventhandler, one for timeout and the other one for Errors. For some reason I can't get into the Timeout Eventhandler as the OnLogError always fires in case of timeout and for some reason ...
- 7 years ago
As soon as the logic of TestComplete goes to write an error to the log, OnLogError fires. Since a Timeout is an error, the error event handler fires first as that is what happens first.
If you prefer the timeout to fire your Runner.Stop, what I would do is add code to your OnLogError event handler to check the contents of the error text being written. If it contains the text associated with a timeout, skip the handler code.