Page 1 of 1

Import an Utility class in every Solution

Posted: Mon Aug 05, 2013 12:11 pm
by generalecaster
Hi all,

I wonder if I can create a central repository with some Utiliti classes and import them in all of my test solutions.
I'm using Ranorex 4.0.4.

Thanx
Max

Re: Import an Utility class in every Solution

Posted: Tue Aug 06, 2013 1:57 pm
by Support Team
Hello Max,

It is possible to insert an existing repository to each project using the project view.
I am not sure what exactly do you want to do, but you can also create your classes within a DLL and add it to the references in your project.
Please let me know if I didn't understand you correctly.
Thank you!

Regards,
Bernhard

Re: Import an Utility class in every Solution

Posted: Thu Aug 08, 2013 2:57 pm
by generalecaster
You did understand correctly, but in the while I've solved it! :D :D :D

Thanx
Max

Re: Import an Utility class in every Solution

Posted: Fri Aug 09, 2013 9:42 am
by generalecaster
Ok, to import a Code module is simple

right click on solution name, Add / Existing Item ... , select code module, when Ranorex ask if copy or link press on link, in this way code is always aligned in all my test.

Can someone tell me if I can link modules too?!?

thanx
Max

Re: Import an Utility class in every Solution

Posted: Fri Aug 09, 2013 1:51 pm
by Support Team
Hello,

You could of course link a Code module to your solution if you right-click on your project, choose 'Add Existing item', browse to your Code module and select 'Link' on the 'Add Existing Files' dialog.

Regards,
Markus (T)