Try Catch Finally don't work
- 6 years ago
What kind of error are you expecting to trap that is not?
One thing to keep in mind, try/catch/finally only catches script level exceptions. Object recognition errors and other TestComplete execution engine errors do not throw a script exception. In order to trap those, you should implement specific code to check for object existance and then throw the error with a "throw" call. - 6 years ago
Hi Friends,
I used some things for to solve this problem.
1- I my windows tests I get see two new columns, for help us in this case Stop on error and Stop on exception. Was needed to click with rigth button of mouse for to look this columns.
2- In finally block, was needed change for TestedApps.NameApp.Terminate();
3- And any errors are need to treat in TestComplete. If one error to block application, will be necessary to treat this error.
Thanks Tanya and Trista for your help!