Why does Ranorex regenerate functions that are inherited?

Ranorex Spy, Recorder, and Studio.
Craig
Posts: 9
Joined: Thu Nov 04, 2010 8:43 pm

Why does Ranorex regenerate functions that are inherited?

Post by Craig » Tue Jan 11, 2011 9:54 pm

I have a Ranorex solution that contains several tests. Up until recently, there were a couple common functions that I would copy into each test's UserCode.cs file. Yesterday, I decided it'd make a lot more sense to add a base class to each test that contained the commonly used functions so I could stop copying them. As expected, this built successfully and worked.

However, if I now open a recording, Ranorex sees that my recording has UserCode actions and automatically regenerates the function signatures in the test's UserCode.cs file, despite the inherited class already having the exact same function signatures.

How can I get Ranorex to stop doing this seemingly helpful, but actually irritating behavior? Is there a way I can fool Ranorex into thinking the method signatures are present in the UserCode file, so it won't regenerate them?

Thanks,

-Craig

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

Re: Why does Ranorex regenerate functions that are inherited?

Post by Support Team » Thu Jan 13, 2011 1:43 pm

Hi,

Would it be possible to send us your project?
Then we can check it directly with your entire solution.

Thanks in advance.

Regards,
Peter
Ranorex Team
.
Image

Craig
Posts: 9
Joined: Thu Nov 04, 2010 8:43 pm

Re: Why does Ranorex regenerate functions that are inherited?

Post by Craig » Tue Jan 18, 2011 7:21 am

I've attached a zip file that contains a sample project that reproduces the issue. I've also enclosed a txt file with repro instructions.

Thanks,

-Craig
Attachments
RegenerateFunctionExample.zip
(11.24 KiB) Downloaded 161 times

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

Re: Why does Ranorex regenerate functions that are inherited?

Post by Support Team » Wed Jan 19, 2011 4:14 pm

Hi,

thanks for your feature request. Right now this is not implemented but It will be sheduled in our feature request list.

Kind regards,
.
Image