Forum Discussion
Hi,
Your code should pass through the finally statement for all three cases. It might terminate immediately if you have your project's/test item's setting to stop on error, but even in this case I would expect finally statement to execute and I would consider this behavior as DelphiScript's flaw and contact Support (https://support.smartbear.com/message/?prod=TestComplete) for their confirmation (and, hopefully, fix).
Hi Alex,
Thank you for replying,
In the OnLogError I had a Runner.Stop(True).
I understand that with this statement TC would stop and not go to the finally.
But I tried to remove it, and the main procedure just continues.
I tried to put a "raise" in OnLogError and the main procedure still continues without going instantly to the finally.
I wrote to the support...