Forum Discussion
mfoster711
2 months agoRegular Contributor
I ended up going with the option to user a PowerShell script. My normal script will run the PowerShell script and stop. This leaves TestComplete open but stopped. The PowerShell script pauses for 20 seconds (to ensure TestComplete has stopped) and then forces TestComplete to close. Not the most elegant, but it works.
scot1967
Champion Level 3
2 months ago...
I forgot about the .close and .terminate methods. If you can snag the TC process you may be able to use one of these methods. The terminate method is the more risky of the two but may be the only way. It just kills the process instead of asking politely to close properly.