What is the difference between wait and synchronization point?
Answer Posted / sonal.pagare
Wait (20)
waits for 20 seconds. It’s mandatory to wait for 20 seconds.
At same place if you’re giving synchronization point and
mention 20 seconds to wait and that wait is not mandatory.
When ever 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.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Hi Samrat, Thank u very much, what u said it is right.
WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
Discuss quicktest professional (qtp) environment?
How can I check if a environment variable exist or not?
What does mean by Scope of Automation?n How we defined it?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
When should I use smart identification?
Explain advantages and disadvantages of ddf?
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue
What is the significance of “action 0” in qtp?
How many lines of code in each script of QTP?
How to check which add-ins are associated with a test in qtp?
how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0