Synchronization :
Synchronization is a process to make the Automation tool(QTP) wait for the application process to complete prior to moving to subsequent steps.
How can we achieve this, it can be done in the following ways.
1. Using Waitproperty method
2. Browser Navigation timeout.
3. Object Synchronization timeout
4. Inserting the Wait/Exist statement
2. Browser Navigation timeout.
3. Object Synchronization timeout
4. Inserting the Wait/Exist statement
*********************************************************************************************
Using Waitproperty method :
*********************************************************************************************
Syntax :
Browser(“Google”).Page(“Google”).WebEdit(“q”).waitproperty(PropName,PropValue,TimeInMilliSeconds)
*********************************************************************************************
Browser Navigation timeout:
*********************************************************************************************
Default Browser Navigation timeout is 60 seconds, means if QTP unable identify the Unique browser
object it wait for 60 seconds
*********************************************************************************************
Increasing the Object Synchronization timeout:
*********************************************************************************************
Default object Synchronization timeout is 60 seconds, means if QTP unable identify the Unique object it wait for 60 seconds
*********************************************************************************************
Inserting the Wait/Exist statement :
*********************************************************************************************
Syntax for wait:
Wait time in seconds
Syntax for Exist
Browser(“Google”).Page(“Google”).WebEdit(“q”).exist(5)
****************************************************************************************
Diff : Wait is static and Exist is dynamic
****************************************************************************************
Using Waitproperty method :
*********************************************************************************************
Syntax :
Browser(“Google”).Page(“Google”).WebEdit(“q”).waitproperty(PropName,PropValue,TimeInMilliSeconds)
*********************************************************************************************
Browser Navigation timeout:
*********************************************************************************************
Default Browser Navigation timeout is 60 seconds, means if QTP unable identify the Unique browser
object it wait for 60 seconds
*********************************************************************************************
Increasing the Object Synchronization timeout:
*********************************************************************************************
Default object Synchronization timeout is 60 seconds, means if QTP unable identify the Unique object it wait for 60 seconds
*********************************************************************************************
Inserting the Wait/Exist statement :
*********************************************************************************************
Syntax for wait:
Wait time in seconds
Syntax for Exist
Browser(“Google”).Page(“Google”).WebEdit(“q”).exist(5)
****************************************************************************************
Diff : Wait is static and Exist is dynamic
****************************************************************************************