Forum Discussion
scot1967
Champion Level 3
2 months agoStopping the script is easy but closing TC requires a bit more thought. Have you tried calling a PowerShell script in code your code, say from an error handler like try/catch or from an event?
Running PowerShell Scripts From TestComplete
https://support.smartbear.com/testcomplete/docs/testing-with/advanced/using-external-functions/running-powershell-scripts.html?sbsearch=Run%20a%20powershell
I'll post back it I find something else.
... If you find my posts helpful drop me a like! 👍 Be sure to mark or post the solution to help others out and/or to credit the one who helped you. 😎