How to capture application encounters unhandled exceptions?

Experiences, small talk, and other automation gossip.
Laxmi123
Posts: 1
Joined: Wed Sep 07, 2011 11:51 am

How to capture application encounters unhandled exceptions?

Post by Laxmi123 » Wed Sep 07, 2011 12:50 pm

Hi

Can you please let me know how to raise application level events in Ranorex.
I need to capture the error messages whenever the test application is stuck with unhandled exceptions (errors are always captured by the application and displayed in a window).
I would like to have such unhandled error messages to be logged in test results.

Laxmi.

User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Re: How to capture application encounters unhandled exceptions?

Post by sdaly » Wed Sep 07, 2011 1:26 pm

These unhandled exceptions will cause your test to fail right (I imagine they should)?

Is so then just do a little search for an unhandled exception message in your test teardown, if it exists then grab the text and report it.