Multiple repositories

Ask general questions here.
rcd.guerra
Posts: 29
Joined: Tue Mar 03, 2009 11:43 pm

Multiple repositories

Post by rcd.guerra » Thu Apr 16, 2009 11:55 am

Hello there,

we have a large base of UserControls that derive from a BaseControl.
We are planning to have a repository for the BaseControl and one per each child control. We think having separate repositories is better for maintenance.
What is your opinion about this ?

For switching between repo's i would need to reference the wanted property from the specified repo class without having to change the BasePath right ?

Code: Select all

ChildControlRepo.TextBox1.Click();
BaseControlRepo.ButtonOK.Click();
We are also planning an integration with Visual Studio due to its test suite management capabilities. Being so, we must have the repositories and the automation code inside Visual Studio. If we find an issue on some repository that needs to be updated we could then open that repo in Ranorex pointing to the file present in the Visual Studio solution without having to manually move files or copy/paste code. What do you think about that ?

Thanks in advance!

Cheers,
Ricardo

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

Post by Support Team » Fri Apr 17, 2009 10:22 am

Hello,
there is nothing to be said against using seperate repositories for each control. Vantages are better overview and code separation for each control.

What do you mean with?
For switching between repo's i would need to reference the wanted property from the specified repo class without having to change the BasePath right ?
In Visual Studio you can add Repository Files to your project (no build action, no copy) and open it directly in VS with the Standalone Ranorex Spy (right click->open with...), like in the Ranorex Calculator Sample App for editing and generating code.

A other way is to create 2 seperate solution files (rxsln,sln) and use Ranorex Studio only to generating repository code (i think thats what you mean).

For later releases we plan a full Visual Studio integration like in Ranorex Studio.

Regards,
Christian
Ranorex Support Team

rcd.guerra
Posts: 29
Joined: Tue Mar 03, 2009 11:43 pm

Post by rcd.guerra » Sat Apr 18, 2009 5:35 pm

What do you mean with?
Quote:

For switching between repo's i would need to reference the wanted property from the specified repo class without having to change the BasePath right ?
What i meant with this is the following:
Lets say i have two repository classes, BaseControlRepository and ChildControlRepository.

I have an automation class that validates a certain textbox in the ChildControlRepository and then clicks on a button of the BaseControlRepository.

To reference each repository elements i just have to access the properties like

Code: Select all

ChildControlRepository.MyTextBox
// and 
BaseControlRepository.MyButton.Click()
There is no need to change the BasePath property of the repository because they are separate repositories, correct ?

Thanks in advance!

Cheers,
Ricardo

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

Post by Support Team » Wed Apr 22, 2009 12:28 pm

Yes, thats right. Every Repository class is separate and holds his own Base Path strings.

Regards,
Christian
Ranorex Support Team