Google News
logo
QTP/UFT - Interview Questions
What do you understand about the synchronization point in the context of UFT? What are the different ways in which you can insert a synchronization point in UFT?
The timing interface between the Tool and the Application under test is known as the synchronization point. Synchronization point is a feature that allows you to set the time delay between two test script phases.
 
For example, clicking on a link may take 1 second to load the website, 5 seconds, or even 10 seconds to load completely. The response time of the application server, network bandwidth, and client system capabilities are all issues to consider. The script will fail if the time varies unless the tester manages the time discrepancies intelligently.
 
Following are the different ways of inserting a synchronization point in UFT :
 
WaitProperty : WaitProperty is a method that performs a sync using the property name, value and timeout value as input. Because it is a dynamic delay, this option is recommended.

Exist : Exist is a method that performs the sync using the Timeout value as an input. Because it is a dynamic delay, this option is recommended.

Wait : Wait is a hardcoded sync point that waits regardless of whether or not an event has occurred. As a result, using Wait is discouraged, but it can be useful for shorter wait times like 1 or 2 seconds. For example, wait(5) would denote that the system will wait for 5 seconds.

Sync Method :  The Sync Method is only suitable for web applications with a constant lag between page loads.

Inserting inbuilt Synchronization Points in QTP :
Step 1 : Enter into recording mode. If the user is not in Recording Mode, this option will be disabled.
Step 2 : Select "Design"-> "Synchronization Point".
Step 3 : We must choose the object that will serve as the Sync Point. The object window appears after you choose the object.
Advertisement