Page 1 of 1

Identify repository items by name

Posted: Fri Mar 16, 2012 1:45 pm
by UgaAga
Hi,
i have two versions of the same application. One is written in Vb6, the other one is the first one migrated to VbNet. I have build a repository for both of them. Of course the elements have sometimes a different path. So i would like to identify the elements by their names. Is that possible? If not how can i achieve my goal?

Thank you

Re: Identify repository items by name

Posted: Fri Mar 16, 2012 3:59 pm
by Ciege
Have you used Ranorex Spy to take a look at the different AUTs and determine how each element is recognized?

Re: Identify repository items by name

Posted: Mon Mar 19, 2012 3:20 pm
by UgaAga
Yes.

Re: Identify repository items by name

Posted: Tue Mar 20, 2012 10:37 am
by Support Team
Hi,

Your goal is to use one repository for both version of your application, right?
So I would use Spy to find a RxPath which will find the same elements in both of your versions of your application. For this purpose you should use the RxPath editor of the Spy tool, here are some useful links about this topic:
http://www.ranorex.com/support/user-gui ... ditor.html
http://www.ranorex.com/support/user-gui ... -mode.html
http://www.ranorex.com/support/user-gui ... xpath.html
http://www.ranorex.com/blog/ranorexpath-tips-and-tricks

If you need further assistance we would need a Ranorex Snapshot file of each of your versions of your AUT.
Following link will show you how to generate a snapshot file:
http://www.ranorex.com/support/user-gui ... files.html

Regards,
Markus
Ranorex Support Team