Forum Discussion
I've set up TC so that I handle errors manually. In this example, I throw an error which is then caught, and then any final statement(s) is processed.
However, in this example I want to stop any further processing once the exception is caught.
You need to decide how you want your process to behave after an exception, either continue to run or gracefully exit.
- lherry2 years agoContributor
Thank you for your example
This is exactly what I did, and I confirm that no exception is raised in the OnStartTestCase() method after the call of the Runner.Stop(true) command: no passage in the catch block.
As the thrown exception prevents the execution of the test function and the OnStopTestCase() event function, it is impossible to perform a "clean" (or error handled) processing, leading to the blocking dialog box...
SmartBear support is working on this. I'm waiting for them to get back to me, but it looks like a fix to be consistent with the documentation in this context.
Related Content
- 13 years ago
Recent Discussions
- 12 hours ago