Anyway doing interceptor pattern in Ranorex

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 34
Joined: Fri Sep 14, 2012 11:05 am

Anyway doing interceptor pattern in Ranorex

Post by puntapret » Wed May 07, 2014 3:15 pm


Let me explain what i want to do, basically i have lots of User Code in my recordings. And in each usercode i would like to execute a custom logging (read custom attributes on the method, and execute some code to database, etc...). The logging will be done before and after execution of the user code method.

Does anyone has any experience, maybe using Castle DynamicProxy or an Interceptor library to do exactly what i want to do ?

Or maybe Ranorex itself has already that functionality that i'm not aware of.

Thanks in advance

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

Re: Anyway doing interceptor pattern in Ranorex

Post by Support Team » Mon May 12, 2014 4:01 pm


We have no experiences with Castle DynamicProxy but since Ranorex is based on the .Net Framework there should also be a way to use it in Ranorex.