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 your doing reporting in your script?

1 Answers   IBM,


Can any body tell me what is the method to connect the remote desk top throw QTP 9.2 version?

1 Answers  


what is the frame work your using in automation testing

2 Answers  


can any body give the banking domain concepts/links

0 Answers  


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

0 Answers   Altair,






What scripting language QTP of?

4 Answers  


How we can add objects to the object repository during the running?is it possible or not?explain

3 Answers  


When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)

3 Answers  


how can you select random value for every iteration from a weblist

4 Answers   Microsoft,


Hai anyone please "Explain about Framework in QTP?"

6 Answers  


How many function you use in your application?

2 Answers   Polaris,


How does QTP identify an object?

0 Answers  


Categories