Handling varying response times

Best practices, code snippets for common functionality, examples, and guidelines.
qa-auto
Posts: 86
Joined: Mon Aug 05, 2019 10:46 pm

Handling varying response times

Post by qa-auto » Tue Aug 20, 2019 2:22 pm

Hi,

Any tips on handling varying response times to avoid setting long Delays and WaitFors? I'm aware of the per item property timeouts and the effective timeout. Once I think I have the timing, it produces a failure.

Thanks,
Still new =)

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Handling varying response times

Post by odklizec » Tue Aug 20, 2019 2:32 pm

Hi,

In my opinion, WaitFor action is the best approach in case of variable response times. You can also extend some xpaths in repository, with @visible='true' attribute. This may help with waiting for complete appearance of certain elements.

As for Delays, these are least effective solution. You should also not manipulate repo timeouts. At least I never found a good reason to change repo search times.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

qa-auto
Posts: 86
Joined: Mon Aug 05, 2019 10:46 pm

Re: Handling varying response times

Post by qa-auto » Tue Aug 20, 2019 2:52 pm

Thanks for the tips. I'll make some adjustments.