Bug with ranorex reorganizing repository items into folders

Bug reports.
tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

Bug with ranorex reorganizing repository items into folders

Post by tallahassee101 » Thu Mar 24, 2011 2:33 pm

Hi,

I'm using Ranorex 3.0 on Windows 7. When Ranorex finds two or more items that share a common rx path I've noticed it will sometimes organize these items into a folder such as:
row[@accessiblename='0']/cell[@accessiblename='Unit']
row[@accessiblename='0']/cell[@accessiblename='Status']

Would be organized into a folder with rx path:
row[@accessiblename='0']

And children:
cell[@accessiblename='Unit']
cell[@accessiblename='Status']

This would be very convenient except that I've found when Ranorex automatically does this, sometimes the items are not able to be found when re-running the test. Moving the children out of the parent fixes the issue and Ranorex always finds the item after that.

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

Re: Bug with ranorex reorganizing repository items into folders

Post by Support Team » Thu Mar 24, 2011 3:23 pm

Hi,
tallahassee101 wrote: Moving the children out of the parent fixes the issue and Ranorex always finds the item after that.
Have you tried to disable the caching of the RootedFolder inside the repository? To disable the caching take a look to following link http://www.ranorex.com/support/user-gui ... html#c2076

Regards,
Peter
Ranorex Team
.
Image

tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

Re: Bug with ranorex reorganizing repository items into folders

Post by tallahassee101 » Thu Mar 24, 2011 3:52 pm

I will try this next time it happens, however if this does work I believe the bug would be that it defaults caching to True (unless you can change the default behavior somewhere).

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

Re: Bug with ranorex reorganizing repository items into folders

Post by Support Team » Fri Mar 25, 2011 2:44 pm

Hi,

to change the default repository behavior open the settings dialog as explained in following link:
http://www.ranorex.com/support/user-gui ... ialog.html
and uncheck "Enable Folder Caching" in default repository configuration.

Kind regards,
Tobias
Support Team
.
Image