Page 1 of 1

Bug with ranorex reorganizing repository items into folders

Posted: Thu Mar 24, 2011 2:33 pm
by tallahassee101
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.

Re: Bug with ranorex reorganizing repository items into folders

Posted: Thu Mar 24, 2011 3:23 pm
by Support Team
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

Re: Bug with ranorex reorganizing repository items into folders

Posted: Thu Mar 24, 2011 3:52 pm
by tallahassee101
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).

Re: Bug with ranorex reorganizing repository items into folders

Posted: Fri Mar 25, 2011 2:44 pm
by Support Team
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