www.itgalary.com Homepage
Forum Home Forum Home > Testing > Automation Tools
  Active Topics Active Topics
  FAQ FAQ  Forum Search   Register Register  Login Login

QTP Sync, Wait and Synchronization

 Post Reply Post Reply
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
Anitta View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 Apr 06
Posts: 69
  Quote Anitta Quote  Post ReplyReply Direct Link To This Post Topic: QTP Sync, Wait and Synchronization
    Posted: 11 Feb 08 at 8:52pm

QTP Sync, Wait and Synchronization

Synchronization makes available specified amount of time for an object to process prior to moving on to the next step.

Wait is like forcing the QTP to wait for a specified amount of time while synchronization is not a 'forced' wait e.g. whenever a specific page loads QTP moves forward in case of synchronization, but in case of wait, if the wait is for 10 seconds and a webpage loads in 3 seconds then it still waits for 7 seconds.

Synchronization is there to take care of the timing problems between QTP and the AUT. Examples where synchronization can be used:

For a web page to load.
For a button to become enabled or disabled.
For client-server communications to finish.

Synchronization is possible in many ways:

1) We can insert a synchronization point for example for a progress bar to reach 100%. QTP will generate a WaitProperty statement in the Expert View in case of synchronization.

2) We can use Exist or Wait statements. Exist statements always return a Boolean (0 or 1) value.

3) We can also modify the default amount of time that QTP waits for a Web page to load.
(Browser Navigation Timeout, File(menu)-> Settings-> Web tab)

4) When working with tests, we can increase the default timeout settings for a test to instruct QuickTest to allow more time for objects to appear.
(Object Synchronization Timeout, File(menu)-> Settings-> Run tab)

Synchronization is enabled only during recording.



Back to Top
PrathibhaS View Drop Down
Newbie
Newbie


Joined: 20 Jan 09
Posts: 1
  Quote PrathibhaS Quote  Post ReplyReply Direct Link To This Post Posted: 20 Jan 09 at 5:54am
Hi
 
I m using QTP 9.5 and IE 7
The Object Synchronization Timeout is set for 20 secs in QTP and I m checking for object existency for false condition as
 
editObj.Exist(0)
 
Can anyone tell me whether QTP returns false for the above statement immediately or after the Object Synchronization Timeout of 20 secs.?


Back to Top
tossy View Drop Down
Bronze Member
Bronze Member
Avatar

Joined: 20 Aug 08
Posts: 64
  Quote tossy Quote  Post ReplyReply Direct Link To This Post Posted: 27 Feb 09 at 10:06am
I'm using IE 7 Timeout is set for 15 secs,  I m checking for object existency for false condition as
 
editObj.Exist(i)
Back to Top
tester View Drop Down
Groupie
Groupie


Joined: 28 Jun 10
Posts: 46
  Quote tester Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jul 10 at 7:41am
Hi,

How to modify the synchronization time in scripts.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

.