Page 1 of 1

Timeout in Ranorex.

Posted: Tue Sep 23, 2014 11:25 pm
by abhinav
Hey Guys,

Can anyone tell me if ranorex uses search timeout or effective timeout when looking for an object/element during script exection?

Thanks,
Abhy

Re: Timeout in Ranorex.

Posted: Wed Sep 24, 2014 2:25 pm
by krstcs
It uses effective timeout, which is the combination of the element all of its parent folders' search timeouts.

In order to change the effective timeout you need to adjust all search timeouts of the parents as well as the item in question.

Re: Timeout in Ranorex.

Posted: Wed Sep 24, 2014 10:08 pm
by abhinav
Thanks,

I have a follow up question. In ranorex guide, under "Repository Item Properties" section it is mentioned that search time out is used for an element before an exception is thrown and ranorex uses effective timeout.
This is somewhat confusing.

Can you please clear this ambiguity?
I have attached the screenshot of the file as well.

Thanks,
Abhinav

Re: Timeout in Ranorex.

Posted: Wed Sep 24, 2014 10:16 pm
by krstcs
I'm not sure what ambiguity you are referring to, it seems very clear to me.

Each object in the repository has a search timeout. The Effective Timeout of any repo item is that item's search timeout plus the search timeout of each parent folder/object.

For example, if you have the following repo:

Code: Select all

WebDocument -> /dom[@domain='www.mydomain.com'] => Search Timeout = 30s (default value)
    Body -> /body => Search Timeout = 30s
        Div -> /div[@id='MyDiv'] => Search Timeout = 30s
The Effective Timeout for Div is 1.5 minutes (the sum of Div's timeout and all parent elements, in this case Body and WebDocument).