Execute code only when a recorded module fails

Class library usage, coding and language questions.
AdamH
Posts: 21
Joined: Thu Aug 08, 2013 9:20 am

Execute code only when a recorded module fails

Post by AdamH » Thu Aug 08, 2013 9:52 am

Hi,

I'm wondering if there is a way to have a custom method execute only when execution of a Ranorex recorded module fails.

We have a method that logs all of the parameters and their current values for a recorded module. It would handy if we could only execute this custom method when the recorded module fails, not all of the time.

Thanks
Adam

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Execute code only when a recorded module fails

Post by Support Team » Tue Aug 13, 2013 3:35 pm

Hello,

In general, it's not recommended to change the workflow of a Test Case.
Nevertheless, you could implement it via User Code.
Please take a look at the following posts:
http://www.ranorex.com/forum/starting-t ... t3899.html
http://www.ranorex.com/forum/repeating- ... t3856.html
http://www.ranorex.com/forum/conditiona ... t3791.html

Regards,
Markus (T)
.
Image