Forum Discussion
scot1967
Champion Level 3
2 months agops... you can stop the script by logging an error (if your project setting are set to "Stop on Error") or you can do a runner.stop or a runner.halt to stop the test. I would add this to a try catch using a throw to issue an error and hit the catch bypassing the rest of the script.
Runner.Stop Method
https://support.smartbear.com/testcomplete/docs/reference/project-objects/items/script/runner/stop.html?sbsearch=runner.stop