Friday, 4 May 2012

Difference between wait and sync in QTP

Wait:-Wait statements instruct QuickTest to wait a specified amount of time before proceeding to the next step.

syntax: Wait(10)
Here the QTP will wait for 10 sec and after that it will proceed for the execution of the next step

Sync:
This method is only available for Web.
This method can be used to synchronize the test execution with a new web page that has to appear in the browser.
This method is used when QTP is not sure how long it is going to take to load page

No comments:

Post a Comment