Page 1 of 1

How to capture application encounters unhandled exceptions?

Posted: Wed Sep 07, 2011 12:50 pm
by Laxmi123
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.

Re: How to capture application encounters unhandled exceptions?

Posted: Wed Sep 07, 2011 1:26 pm
by sdaly
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.