Automatic inhertiance for test modules

Class library usage, coding and language questions.
Japise
Posts: 5
Joined: Wed Jan 15, 2014 4:13 pm

Automatic inhertiance for test modules

Post by Japise » Wed Jan 15, 2014 4:28 pm

Hi,

New to ranorex and have bumped into a annoying issue.

My plan is to have a baseclass where I put common test scripts that should be reusable and accessible when creating a usermethod action. Now I have to manually edit the scripts to make the test module inherit the baseclass. Is there any way this can be automated since our plan is that our BSA's should be able to do recording easily without them having to modify code since they don't feel comfortable doing it. And its also abit annoying that you have to do it everytime that you create a new recording.

Am I missing something or is this a feature request?

/J

User avatar
rprehm
Posts: 24
Joined: Tue Dec 17, 2013 6:43 pm

Re: Automatic inhertiance for test modules

Post by rprehm » Fri Jan 24, 2014 11:14 am

Hi Japise,

Unfortunately it is not possible till now to change the Recording.UserCode.cs since the template is handled internally . Referring to the post from “Ciege”
(Re: Can I change the code template for usercode module). Please use a DLL or a class file in order to provide your own methods to the test team.
Concerning the inheritance, the easiest way would be to add a base class to the Recording.UserCode.cs

Regards,
Robert