Managing Repository

Ranorex Spy, Recorder, and Studio.
ranoman
Posts: 26
Joined: Mon Jul 26, 2010 6:59 pm

Managing Repository

Post by ranoman » Thu Aug 05, 2010 10:18 pm

Hi,
I am using Ranorex to automate our Windows forms application which has thousands of forms. One of the major problems I am having is managing my repository.

>>Lets say I am recording testcase 1. Control A is recognized in one particular way, lets say controlid
>>Now when I am recording testcase 2. Control A is recognized in a different way, lets say accessible name.

I am having to go and clean up my repository to make sure that a control is identified in a unique way.

The example is just for one particular control in two different test cases. Imagine the tediousness when it comes to 1000's of controls in 300+ test cases. Is there a better way to do this?

Also, I am using just one repository for all my test cases. Is this approach wrong? Any suggestions on how I should set up my repository? Below are the options I am considering

>>One repository for the entire application
>>One per test case
>>One per form. If my application has 1000 forms, then I will have 1000 repositories.

Any help is sincerely appreciated.

Thanks!

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

Re: Managing Repository

Post by Support Team » Fri Aug 06, 2010 2:16 pm

Hi,
ranoman wrote:>>Lets say I am recording testcase 1. Control A is recognized in one particular way, lets say controlid
>>Now when I am recording testcase 2. Control A is recognized in a different way, lets say accessible name.
Are you really sure that these two controls are the same? Because Ranorex Recorder usually does not create two separate items for the same control/element, instead it uses an existing item if the path of the elements match. Of course it is possible to identify a single control/element using different RxPaths, but the RxPaths automatically created by Ranorex should always be quite similar and should consequently be matched to a single repository item.
ranoman wrote:Also, I am using just one repository for all my test cases. Is this approach wrong?
Please read following post
http://www.ranorex.com/forum/should-i-u ... html#p3795

Regards,
Peter
Ranorex Team
.
Image