Page 1 of 1

Using Cache for Repository Elements

Posted: Fri Mar 17, 2017 5:14 am
by annavamsi
Hi,

I have a scenario where in I want to know if I can set the "Use Cache" Property of the rooted folder in the repository to True.

I have a object(this is a rooted object folder) in repository which identifies a particular segment based on index number where in the index number is a variable which i can set in the code, so that i have one object which identifies any segment based on index number.

In the above scenario can I set the "Use Cache" Property to True or not?

Regards,
Vamsi

Re: Using Cache for Repository Elements

Posted: Fri Mar 17, 2017 2:21 pm
by krstcs
In practice, you should be using the cache all the time. You should only turn it OFF if it is actually causing issues. The cache helps speed up identification, and therefore the tests.

Re: Using Cache for Repository Elements

Posted: Mon Mar 20, 2017 4:55 am
by annavamsi
I get what you said, but in my scenario can we use it when we are having same root element folder identifying multiple layouts with index as a variable.

I also get the following waning messages in the report.
1. <ObjectName> could be found using its absolute path, but not using its relative path from the cached element of parent folder ...

2. Failed to update the cached element for folder ......

Is issue 2 because of folder having a variable in it?

Regards,
Vamsi

Re: Using Cache for Repository Elements

Posted: Mon Mar 20, 2017 12:27 pm
by qwertzu
Hi annavamsi,
Is issue 2 because of folder having a variable in it?
Using a variable in a rooted folder path where cashing is set to true should be no problem.

Regarding the error "Failed to update the cached element for folder ... " :

There was a bug in a previous Ranorex Version, which has already been fixed.
So you could try to update to the latest version :-)