Automation Proxy Class

Experiences, small talk, and other automation gossip.
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Automation Proxy Class

Post by atom » Thu Apr 26, 2012 7:15 pm


I had a thought recently as was wondering why not tools like this exist before
The idea would be to reflect on a windows forms class, and find its properties that are the controls
Then generate a class that has the same property interface but the property implementation would be using underlying ranorex classes. This generated class being the automation proxy of the real form class
Test cases would automate the form via its proxy class, and the building of the proxy class can be done directly in the build of the AUT, meaning as soon as the form changes during a build, so does the automation proxy class...

Seems so simple an idea, but probably actually hard to implement...


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

Re: Automation Proxy Class

Post by Support Team » Fri Apr 27, 2012 10:20 am

IMHO the problem is not to create the wrapper/proxy for the class itself -- this should be quite easy using reflections. However, you need to add special logic for those properties that do not have a serializable type. For those types you need to drill down and create proxies for the properties as well, until you get to the point where all properties are serializable.

Ranorex Team