How to add and access Multiple Repositories

Ranorex Studio, Spy, Recorder, and Driver.
jainaakash
Posts: 48
Joined: Thu Jun 10, 2010 12:06 pm

How to add and access Multiple Repositories

Post by jainaakash » Wed Jul 07, 2010 1:50 pm

Hi Team,

I have another question :)

How do I add multiple repositories and access repository items in a single project. I just have one recording. Infact, I dont use Recordings at all.. All my actions are driven through usercode.

I want to divide my controls in multiple repositories, and access them in the code accordingly. Can you please guide me through the steps for achieving this.

I had a look at some forum / blog entries and the userguide, but was not able to figure out.

Thanks.

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

Re: How to add and access Multiple Repositories

Post by Support Team » Wed Jul 07, 2010 3:08 pm

Hi,

Simply add a new Repository to your Project.
To use elements in your new Repository you have to create a new object.
RxRepository repo = RxRepository.Instance;
Through this object you will be able to call your elements.
But it's currently not possible to bind multiple repositories to one single recording. You are only able to use this functionality in user code.

Regards,
Peter
Ranorex Support Team

jainaakash
Posts: 48
Joined: Thu Jun 10, 2010 12:06 pm

Re: How to add and access Multiple Repositories

Post by jainaakash » Fri Jul 09, 2010 12:32 pm

Thanks