Hi David,
> Could you please decrypt this comment so I can understand what kind of error you are getting?
The decrypted version is: Any statement, that triggers a timeout error of the Jscript engine. I can post my code, but that would be of little help since you don't have the tested application and the error doesn't occur every time. I cannot reproduce it at will.
I'll try to explain the problem again.
1. Sometimes during test playback, when the system is under a heavy load, the following error message appears in Testcomplete: "An exception occurred in the "Foo" unit at line 12: This operation returned because the timeout period expired."
This error message is displayed in a popup window. After that, the test playback is stopped and I have to rerun the test from scratch. That was my first problem, but you said that this cannot be avoided and that Tescomplete always stops on these kind of errors. Ok.
2. Now, when I add a try-catch block around the calls to the Foo function, then the test playback is still stopped if the above mentioned timeout error occurs, however no pop up window appears anymore and the details of the error are not written to the log either. The description of the exception is NOT posted to the remarks pane. Testcomplete simply stops the test playback and that's it.
Using "catch(exception) { Log.Error("Exception", exception.description); }" only results in the string "Exception" written to the log, and the remarks are empty.
Also the call stack pane shows the line number of the catch statement and not the line number where the actual error occured.
This is a problem, because I cannot find out afterwards what went wrong during test playback. All I see is that an exception occured, but I don't know which and where.
I hope that this is understandable, if not feel free to ask.