Micro Focus QTP (UFT) Forums
timer and checkpoint - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: timer and checkpoint (/Thread-timer-and-checkpoint)



timer and checkpoint - vikram k - 06-18-2008

Hi
In my application, there will be a timer, Winedit box(shows the state)
and radio button... There are two states in my application: idle and leakback... initially my application is in "idle" state... after timer goes to zero, it gets changed to leakback state, at that time only i have to click that radio button......

How can i implement this??
i included one standard checkpoint during recording to check the state
but i checks only the state... if that state is not there, it gets failed

what i want is?
QTP should check the timer value... If the timer value is zero, then it should check the state. If the timer value is not zero, it should wait till the timer becomes zero.


RE: timer and checkpoint - niranjan - 06-19-2008

Use getroProperty to get the timer value..
For Instance, store that in a variable, IntTimer
Do
Wait 1
Loop Until IntTimer = 0

Tweak the above example to your needs...