Updating Repository

Ranorex Spy, Recorder, and Studio.
Deepak_Singh
Posts: 76
Joined: Fri Mar 14, 2014 2:37 pm

Updating Repository

Post by Deepak_Singh » Fri Apr 18, 2014 11:08 am

Hi All,

I an using Ranorex Repository for Storing the Objects. Now the Problem I am Facing is The Development team is constantly changing Properties of The Object Like: Innertext.
I am using Regular Expression but still some times the innertext is changed in such a way that Regex also does not identify objects.

My question is there a way to update repository like there is an option in QTP.
If No then please any ideas to overcome this issue?
Please help.


Regards,
Deepak

mzperix
Posts: 137
Joined: Fri Apr 06, 2012 12:19 pm

Re: Updating Repository

Post by mzperix » Fri Apr 18, 2014 1:15 pm

Hi Deepak,

Since the repository is a text file, just use a text editor (ike notepad++) and do a find & replace. You can use regular expressions to make the changes as precise as possible.

Note1: this could cause unwanted updates, so make a backup before the change.

Note2: did you try to use another attribute then innertext (@id, @class, etc.)?

Note3: The innertext of a button can change if the page is available in more than one language.This localization issue can be addressed by using resource files.
Problem described in here:
http://www.ranorex.com/forum/how-to-bin ... t5229.html
and a workable solution here:
http://www.ranorex.com/forum/adding-and ... -t438.html

Best Regards,
Zoltán Major

AutomationTester
Posts: 30
Joined: Mon Jan 21, 2013 1:31 pm

Re: Updating Repository

Post by AutomationTester » Thu Jul 24, 2014 11:09 am

Hi All,

Instead of updating the repository, you can use the Regular expression to make the xpath more robust.

Find more details about regular expression, click below links.
http://www.ranorex.com/support/user-gui ... xpath.html
http://www.ranorex.com/blog/automated-t ... ynamic-ids

Need more help? Contact us.

Regards,
Amiruddin, Indium software - Automation COE