Forum Discussion
rraghvani
Champion Level 3
2 months agoI have no idea why your ChatGPT has suggested to terminate the process of TestComplete, and then suggesting to be careful!? If you are running automation, don't terminate the TC process! Also, the remaining lines after Runner.Stop(true) will not get called!
Hassan_Ballan
Champion Level 3
2 months agoYou’re right — suggesting Sys.Process("TestComplete").Terminate() was a mistake. That’s unsafe and any code after Runner.Stop(true) won’t run.
The correct way is just to use Runner.Stop() or Runner.Halt(), and use the /exit flag from the command line if you want TestComplete/TestExecute to close automatically.
Thanks for pointing this out!