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...
- AlexKaras5 years agoChampion Level 3
Hi Mehdi,
> I tried to put a "raise" in OnLogError and the main procedure still continues without going instantly to the finally.
I have a strong feeling that several years ago there was a breaking change in DelphiScript engine (not sure was it for purpose or not) that unhandled exception thrown in some called script unit stopped to be traced back to the caller parent one that contains exception handling structures. This is how DelphiScript functioned initially for a lot of years.
I would really hope that guys will be able to correct this behavior while working on your case.
- sonya_m5 years agoSmartBear Alumni (Retired)
m_essaid I see you opened a support ticket and the investigation there started. We would really appreciate it if you posted the solution you get from support here, thank you!
- m_essaid5 years agoValued Contributor
Hi Sonya,
I didn't received any solution from the support team.
They say this is "due to engine specifics".
Related Content
- 5 years ago
- 6 years ago
Recent Discussions
- 18 hours ago