How to capture application encounters unhandled exceptions? : Automation Discussions

How to capture application encounters unhandled exceptions?

Experiences, small talk, and other automation gossip.

How to capture application encounters unhandled exceptions?

Postby Laxmi123 » Wed Sep 07, 2011 1: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.
Laxmi123
 
Posts: 1
Joined: Wed Sep 07, 2011 12:51 pm

Re: How to capture application encounters unhandled exceptions?

Postby sdaly » Wed Sep 07, 2011 2: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.
User avatar
sdaly
 
Posts: 213
Joined: Mon May 10, 2010 12:04 pm
Location: Dundee, Scotland


Return to Automation Discussions

Who is online

Users browsing this forum: No registered users and 0 guests