Wednesday, February 15, 2012

My first blog is regarding: QTP Synchronization.

Three type of Synchronization available in QTP:
1) Sync:
Waits for the browser to complete current navigation.
Only supported by web.

Ex: Browser("Google").Page("Google").Sync

2) Wait:QTP execution halt for specific period of time.

Ex. wait(5000)

3) Waitproperty is used to verify the property of object within a specific time.

 Ex:  Window("Windowname").WinObject
("Objectname").waitproperty("enabled", true, 2000)
Here QTP will wait a maximum of 2000 msec.  If the enabled
property becomes true before 2000 msec, then QTP will move
to the next step.