AnneTheAgile
10 years agoContributor
Always run cleanup script at end?
Working with powershell, I find that I can't get my returncode [1] because not all opened windows get closed. I have a script to close my kiosk app, but since it's at the end it only runs upon success. How can I have it always run? ty!
1.[] ; ; ; ; ; X.cannot capture return code from command line in powershell OR batch ; ; http://smartbear.com/forums/f74/t98856/cannot-capture-return-code-from-command-line-in/
1.[] ; ; ; ; ; X.cannot capture return code from command line in powershell OR batch ; ; http://smartbear.com/forums/f74/t98856/cannot-capture-return-code-from-command-line-in/
- Hi Anne,
You can do the cleanup in the OnStopTest event handler. See Creating Event Handlers for TestComplete Events for details.