Error handling on failed tests

Ranorex Studio, Spy, Recorder, and Driver.
Chris Wright
Posts: 25
Joined: Tue Mar 08, 2011 11:07 am

Error handling on failed tests

Post by Chris Wright » Tue Mar 08, 2011 11:17 am

I am new to Ranorex and having trouble finding out the cause of test failures. I have recorded an automated test manually without error. When I play it back through Ranorex it does not complete and a red line appears. How do I obtain information from that 'red line' to find out why the test is failing?? An error log or description of sorts?

Thanks
Chris

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Error handling on failed tests

Post by Support Team » Tue Mar 08, 2011 1:50 pm

Hi,

the red line tells you the cause of the probelm.
Additional you can jump to the item where the problem occurs and you can analyze the item using Ranorex Spy.
e.g.:
fail.jpg
tells you, that the adapter "Some_Adapter" was not found. You can jumpt to the item and open it in Ranorex Spy.

Regards,
Tobias
Support Team
You do not have the required permissions to view the files attached to this post.

Chris Wright
Posts: 25
Joined: Tue Mar 08, 2011 11:07 am

Re: Error handling on failed tests

Post by Chris Wright » Tue Mar 08, 2011 4:35 pm

Hi, thanks for your responce. The red line i see does not look like that, its purely the text in the row that is red where as tests that are ok are green?

How do i get to the view you have sent me ??

Regards
Chris

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Error handling on failed tests

Post by Support Team » Tue Mar 08, 2011 4:40 pm

Hi Chris,

This new view was delivered with Ranorex 3.0. Which version have you installed on your machine?

Regards,
Peter
Ranorex Team

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Error handling on failed tests

Post by Ciege » Tue Mar 08, 2011 5:14 pm

Have you tried wrapping your test code sections in Try/Catch blocks to catch exceptions in code and be able to deal with them appropriately?

I.E.

Code: Select all

try
{
  do stuff...
}
catch (exception e)
{
  report on what e is...
}

Also, with the "red text" are you talking about the text that is displayed in a command prompt window that shows the current status of the test as it is running? If so, the "view" that Peter is mentioning is the result log that is displayed in the Report Viewer or your current browser (depending on how you are set up).
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

Chris Wright
Posts: 25
Joined: Tue Mar 08, 2011 11:07 am

Re: Error handling on failed tests

Post by Chris Wright » Wed Mar 09, 2011 9:45 am

I am currently on version 2.3.5.10317. It's a fully licensed version, am I able to download the latest version from Ranorex?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Error handling on failed tests

Post by Support Team » Wed Mar 09, 2011 2:49 pm

Hi,

we've just sent you a mail covering all information about your license and subscription.
Please see the mail for further information.

Kind regards,
Tobias
Support Team