check timer

Ask general questions here.
rano123
Posts: 1
Joined: Mon Mar 15, 2021 11:45 am

check timer

Post by rano123 » Mon Mar 15, 2021 12:24 pm

Hi,
open a file takes 1 sec and sometimes more than 1 sec(3 sec), but i want to check at 1sec, if it opens within 1sec test pass otherwise its fail.
how to check 1sec time in ranorex?

Thanks in advance

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

Re: check timer

Post by odklizec » Wed Apr 07, 2021 1:12 pm

Hi,

Is there an element, which typically appears after opening the file? In this case, you can use WaitFor Exists action with 1s wait time. In case the element is found within 1s, the test will continue with next step. Otherweise, the test will fail. Hope this helps?
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