![]() |
|
|
QTP Sync, Wait and Synchronization |
Post Reply
|
| Author | |
Anitta
Admin Group
Joined: 24 Apr 06 Posts: 69 |
Quote Reply
Topic: QTP Sync, Wait and SynchronizationPosted: 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. 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. 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. Synchronization is enabled only during recording. |
|
![]() |
|
PrathibhaS
Newbie
Joined: 20 Jan 09 Posts: 1 |
Quote Reply
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.?
|
|
![]() |
|
tossy
Bronze Member
Joined: 20 Aug 08 Posts: 64 |
Quote Reply
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)
|
|
![]() |
|
tester
Groupie
Joined: 28 Jun 10 Posts: 46 |
Quote Reply
Posted: 27 Jul 10 at 7:41am |
|
Hi,
How to modify the synchronization time in scripts. |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |