Hey folks,
Common difference between Wait and Synchronization, I try to describe here. If any more you found add in comment, so I can also learn something new.
Wait (20)
Wait statements instruct QuickTest to wait a specified amount of time before proceeding to the next step.
At same place if you’re giving synchronization point and mention 20 seconds to wait and that wait is not mandatory. Whenever the given condition becomes true below 20 seconds
then QTP immediately goes to the next step without wait for 20 seconds.
'Writing own synchronization Point
Timeout=100
For Time=1 to Timeout
Propval=window("Flight Reservation").WinButton("Delete Order").GetROProperty("enabled")
If Propval=true Then
Exit for
else
wait(1)
End If
Next
Sync method is only available for Web.
No comments:
Post a Comment