What is the difference between wait and synchronization point?

Answers were Sorted based on User's Feedback



What is the difference between wait and synchronization point?..

Answer / 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

What is the difference between wait and synchronization point?..

Answer / uday

Wait is like a hardcore value. If you say wait(20), then QTP
waits 20 sec, even if the application is ready in 2 secs.

Where as synchronization point proceeds to execute next step
if the application\object is ready for the next statement.

Is This Answer Correct ?    1 Yes 1 No

What is the difference between wait and synchronization point?..

Answer / rohit pathak

Syn - In this as soon as object finds out it starts its
process automatically ,In this command it will take care of
timings.
Wait - In this If user defined to wait at least for 10
second, then either process will complete in 4 seconds, then
tool will wait for whole 10 seconds as it is mentioned in
scripts.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How can we do Data driven testing Using For loop in QTP?

2 Answers  


How to capture data from images in QTP and produce them in Excel sheet ? please ans...

3 Answers   Sapient,


Syntax for how to call one script from another and Syntax to call one "Action" in another?

1 Answers   Crea,


cud anybody please tell me the full form's of the extention files that we use in real time---.tsr,.mtr,.qrs

7 Answers   Symphony,


In how may ways we can use checkpoints to an application using QTP?

3 Answers  






which command u will use to access the application through descriptive programing?

7 Answers   Datamatics,


several browsers opened. write QTP script to close all browsers except gmail.

1 Answers   Thomson Reuters,


What is ‘object spy’ and what is the function of object spy in qtp?

0 Answers  


4. what is the use of Text output value in Qtp?

1 Answers   Wipro,


What is difference between web object and web items

2 Answers   Patni,


How many test scripts are prapare in ur project(HeathCare Insurance).

1 Answers   Virtusa,


How can we perfom Action and Component parameter.?

1 Answers   EDS,


Categories