Timeout in Ranorex.

Ask general questions here.
abhinav
Posts: 2
Joined: Mon Sep 22, 2014 12:19 am

Timeout in Ranorex.

Post by abhinav » Tue Sep 23, 2014 11:25 pm

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

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

Re: Timeout in Ranorex.

Post by krstcs » Wed Sep 24, 2014 2:25 pm

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.
Shortcuts usually aren't...

abhinav
Posts: 2
Joined: Mon Sep 22, 2014 12:19 am

Re: Timeout in Ranorex.

Post by abhinav » Wed Sep 24, 2014 10:08 pm

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
Attachments
timeout.png
timeout.png (44.99 KiB) Viewed 1096 times

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

Re: Timeout in Ranorex.

Post by krstcs » Wed Sep 24, 2014 10:16 pm

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).
Shortcuts usually aren't...