Best way to update repository items?

Ask general questions here.
fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

Best way to update repository items?

Post by fimo420 » Mon Sep 23, 2013 8:00 am

Hi,

Just have a general questions.
How or what is the best way to update ranorex repository items?
I mean there are occasions when the item has changed,renamed, moved etc...so how do you guys update?
I reimport the item and rename it to the oldname and delete the old one, maybe not the best way??
So wonder how you guys do it, just curious :)

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Best way to update repository items?

Post by krstcs » Tue Sep 24, 2013 2:22 pm

There are many ways to do it. I would say it's mainly what you feel comfortable with.

Depending on how much change there is, I might do a couple things:

1. Track the new element and rename the existing and new elements as needed (what you are doing, usually best for larger changes).
2. Re-work the existing element's RanoreXPath (especially if there are only a few objects needing changes, or the path did not change significantly).
Shortcuts usually aren't...