Forum Discussion

psaxton's avatar
psaxton
Occasional Contributor
14 years ago

How do I catch if an unexpected error has occurred?

Hello



Sorry if this if this is a really stupid question, or has already been asked somewhere else



If I have application where an error message may be displayed before a screen is loaded how do I do a test to cover this and ensure that the test fails?



For example I have an order screen with a button that says view items.



I click the button and the order items screen comes up perfectly.



Then if a change is made to the code which results in an error, thats what I want to catch



So now when I click on the view order items button I will get an error "Error Occurred".  I need that to cause a test to fail



I am using TestComplete 7



Paul

14 Replies