Exception reporting in Ranorex Report : Bug Reports

Exception reporting in Ranorex Report

Bug reports and feature requests.

Exception reporting in Ranorex Report

Postby Saha » Wed Aug 24, 2011 5:51 pm

Hi,

Whenever I have exception from Ranorex in my script, script shows up in green in Reports. Unless I open the script I would not know that my script is failing.
Am I missing some configuration here? How to show scripts failing in red when there is any exception?

Thanks,
Saha
Attachments
RanorexReport.JPG
Screenshot
RanorexReport.JPG (60.9 KiB) Viewed 94 times
Saha
 
Posts: 39
Joined: Tue Mar 01, 2011 7:20 pm

Re: Exception reporting in Ranorex Report

Postby Support Team » Thu Aug 25, 2011 10:36 am

Hi,
Saha wrote:Am I missing some configuration here? How to show scripts failing in red when there is any exception?

If you use Report.Error() inside your user code module then this is the expected behavior, because Report.Error() doesn't affect the Report. You have to log Report.Failure() if you want to set the test case to the failstate too.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4842
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Exception reporting in Ranorex Report

Postby Saha » Thu Aug 25, 2011 5:58 pm

This exception in screenshot is not coming from Report.Failure or Report.Error.
It is happening when Ranorex is not able to find element in UI because the expected page was not loaded.
If you see the screenshot it is an ElementNtofoundException

Thanks,
Saha
Saha
 
Posts: 39
Joined: Tue Mar 01, 2011 7:20 pm

Re: Exception reporting in Ranorex Report

Postby Support Team » Fri Aug 26, 2011 12:40 pm

Saha wrote:This exception in screenshot is not coming from Report.Failure or Report.Error.
It is happening when Ranorex is not able to find element in UI because the expected page was not loaded.
If you see the screenshot it is an ElementNtofoundException

If you get an ElemenNotFound Excpetion you should get a failure and not an error. Would it be possible to post us the expected user code file to check the code? Are you using a Recorder Module or a User Code Module?

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4842
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests