In QTP, object synchronization is required to ensure that objects are available before you perform any operation on them. In QTP default synchronization timeout is 20 seconds.
Example -
Suppose you have to click on a search button and after that application will display search results. In this scenario, you don't know how long it will take for application to populate the results.
So we must include synchronization in QTP script to ensure that we wait for enough amount of time so that we will have all result records available on the application.
To handle this situation, You can include below statement to wait for fixed amount of time.
wait 10 ' wait for 20 seconds.
Even if you don't mention this statement, QTP will wait for default synchronization time of 20 seconds.
Example -
Suppose you have to click on a search button and after that application will display search results. In this scenario, you don't know how long it will take for application to populate the results.
So we must include synchronization in QTP script to ensure that we wait for enough amount of time so that we will have all result records available on the application.
To handle this situation, You can include below statement to wait for fixed amount of time.
wait 10 ' wait for 20 seconds.
Even if you don't mention this statement, QTP will wait for default synchronization time of 20 seconds.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs