Forum Discussion
irina_lukina
13 years agoSuper Contributor
Hi Mykhailo,
except block doesn't handle object recognition exceptions
The fact is that the Sys.Process() method doesn't raise an exception when the specified process is not found. It just posts an appropriate error message to the test log. That's why, this error is not handled by the try...except statement.
... cause script execution stop.
Most likely, the test execution is stopped, because the Stop on error project option is enabled. That's why, when the error message mentioned above appears, TestComplete automatically stops the test execution.
Related Content
- 14 years ago
- 6 years ago
- 10 years ago
Recent Discussions
- 5 days ago
- 5 days ago