MichaelMcFarlan
14 years agoContributor
Preventing crashes when running testcomplete
I've got a pretty big project suite that tests lots of different aspects of the software we release. I test this project on our software before we release it and I occasionally will get an error early on in the script that causes the whole project to fail. I'm wondering if there's any simple methods / techniques / whatever to allow test complete's projects to be more robust. Usually these errors are simple things like an error message box (or sometimes exceptions not being handled as they should). The only way I can think of would be adding checks between almost every line of code and that isn't a viable option. If there was some sort of OnError event that would be amazing because I would almost always just want to close whatever dialog popped up and go on to the next project item.
I'm not looking for a clear-cut solution really, just if anyone has any hints or pointers on how to do this they would really be appreciated.
Edit: I do know about using try/catch/finally, I might try to work that more into the scripts.
I'm not looking for a clear-cut solution really, just if anyone has any hints or pointers on how to do this they would really be appreciated.
Edit: I do know about using try/catch/finally, I might try to work that more into the scripts.