Do action on error or exception
I have number of projects in a project that test the same application. The interface of this application is customizable, and you can click Tools/Default to return to the Default interface. Upon running a test, if it errors out or throws an exception, I would like to click the default menu item, which I have scripted (let's call it"function default()"). Just need to know how to script for an error or TestComplete exception so I can accomplish:
if(error || exception)
Re: Do action on error or exception
You can handle exceptions by using try/catch as it is described in the "Handling Exceptions in Scripts" help topic.
As for scripting errors, you can also handle them by using the OnLogError event.