What is the difference between wait and synchronization?

Questions by prasu   answers by prasu

Showing Answers 1 - 10 of 10 Answers

Raghav Prabhu

  • Jan 26th, 2006
 

Wait : It is a general statement used to wait till the time is elapsed(wait(x)) --> x is the amt of time winrunner stops execution of the next statement against the default timeout of the winrunner between statement executions.

Synchronisation: an advanced form of wait that wait for the properties to be enabled or disabled etc. used mostly inorder to avoid timing problems

  Was this answer useful?  Yes

John Amirtham

  • Feb 14th, 2006
 

When you use wait, the execution waits only for the specified time. You must know the maximum wait time needed (for any operation) and then to proceed with the execution of the remaining script.

When you use synchronization, you do not need to have the advanced knowledge of the wait time (eg for a databse query to fetch record/update record). You can simply trap the message after this execution and use the synchronization point to wait till the message appear. 

  Was this answer useful?  Yes

sindhaval

  • Mar 16th, 2006
 

Synchronization:for example if u give 10 seconds and if the operation completes in 7 seconds then automatically it goes to next operations,but in wait, it waits till 10 seconds and goes to next operation even though the operation is completed in 7 seconds.

  Was this answer useful?  Yes

parvathi.putcha

  • Mar 19th, 2006
 

wait()-->If the process is completed then it will wait till the time is completed.

Synchronization()-->If the Process completed then it will not wait till the time completed it will execute automatically in next script.

  Was this answer useful?  Yes

Wait():-In WinRunner,wait function will wait up to the specified time declared in wait function and then execute the remaining script.

Syncronization:-In WinRunner,Object/Windows perperties(i.e enabled and disabled) can be defined through Syncronization.WinRunner waits up to the objects disabled or enabled and then continue the execution.

vidyakar

  Was this answer useful?  Yes

you can execute the script , that will take 5 min time , but we don't know the exact time , that time we will give max time 7 min.

wait():- u use wait command the script execution is completed 5 min . but system wait for 7 min only. after will further.

Sync:- u use sync command the script execution is completed 5 min then automatically will go to the next execution.

  Was this answer useful?  Yes

sudhakar2068

  • Oct 17th, 2006
 

wait :we can use these function to define the fixed waiting time while running tests.

Synchronization:Some our application build is taking more time to complete operations while running tests. owing to this reason test engineers are using Synchronization point for time balancing in between tool and build use.

sudhakar kolla,

My email:kollasudhakar2005@yahoo.co.in.

My number:09819859346

  Was this answer useful?  Yes

Titus

  • Jan 8th, 2007
 

Wait

Wait statement instructs winrunner to wait for a specified time interval

Synchronization

Synchronizatkion instructs winrunnner to wain until a specified action is completed.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions