Forum Discussion

zdanov's avatar
zdanov
Contributor
13 years ago

Handling Unexpected Exceptions

Hi,

I would very much appreciate some information how to handle unexpected exceptions during script playback. To be more specific, our applicaiton is windows based app. Test goes through various screens, checks various tabs, controls, calculations, buttons,etc. Sometimes an unexpected exception is produced (which is an error), that will cause the test to fail. How does Test Complete handle this type of situation? Can it capture the exception detials, mark the script as failed, and contine on with the next set of scripts? How does it close all left over open windows (clean up) that remain as a result of this exception, since the script could not close all windows as recorded due to this exception being thrown?



I am attaching a snapshot of one such exception; hope it helps!



Thank you very much!



Regards,

Serge.