Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

synchronization to take place?

This is a discussion on synchronization to take place? within the QTP forums, part of the Software Testing category; Consider a scenario where in QuickTest, the synchronization timeout is set to 10 seconds and the global timeout is set to 10 seconds. However, the actual time taken by the ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 02-07-2008
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 910
Thanks: 12
Thanked 108 Times in 76 Posts
jainbrijesh will become famous soon enoughjainbrijesh will become famous soon enough
synchronization to take place?

Consider a scenario where in QuickTest, the synchronization timeout is set to 10 seconds and the global timeout is set to 10 seconds. However, the actual time taken by the object to be visible is 25 seconds. How long will QuickTest wait for the synchronization to take place?
a) 20 seconds
b) 25 seconds
c) 10 seconds
d) 35 seconds
__________________
--
Brijesh Jain
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-07-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
Re: synchronization to take place?

20 seconds.

QuickTest won't be able to identify the object, and the test will fail since it takes 5 more seconds for the object to appear.

Global Timeout + Sync. Timeout = Total Timeout
Reply With Quote
  #3 (permalink)  
Old 02-07-2008
Junior Member
 
Join Date: Feb 2008
Location: USA
Posts: 8
Thanks: 1
Thanked 2 Times in 2 Posts
FredMan is on a distinguished road
Re: synchronization to take place?

10 seconds
Reply With Quote
  #4 (permalink)  
Old 02-08-2008
Moderator
 
Join Date: Sep 2007
Location: Chennai, INDIA
Posts: 406
Thanks: 2
Thanked 197 Times in 91 Posts
sridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura about
Re: synchronization to take place?

Quote:
Originally Posted by jainbrijesh View Post
Consider a scenario where in QuickTest, the synchronization timeout is set to 10 seconds and the global timeout is set to 10 seconds. However, the actual time taken by the object to be visible is 25 seconds. How long will QuickTest wait for the synchronization to take place?
a) 20 seconds
b) 25 seconds
c) 10 seconds
d) 35 seconds
Hi Brijesh,

Really a nice objective type question asked in QTP!!!

The answer will be 20 seconds as explained by Anshoo.

Regards,
Ganesan
Reply With Quote
  #5 (permalink)  
Old 02-08-2008
Junior Member
 
Join Date: Feb 2008
Location: USA
Posts: 8
Thanks: 1
Thanked 2 Times in 2 Posts
FredMan is on a distinguished road
Re: synchronization to take place?

The question is, "How long will QuickTest wait for the synchronization to take place?". I believe that QTP initializes for 10 seconds (Global timeout) before QTP will begin the sync timeout. So QTP will wait 10 seconds for the object to appear after the global timeout. Make sense?
Reply With Quote
  #6 (permalink)  
Old 02-08-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
Re: synchronization to take place?

You are absolutely correct. As the script loads, global timeout kicks in and after that, sync step timeout initializes, which is 10 seconds. But, the total timeout is: global timeout + sync step timeout. In our scenario, as qtp initiates and waits for the object to load, it spends 10 seconds of global timeout and then, 10 seconds of sync step timeout. This is the total timeout instructed to qtp to wait for an object to load, therefore, when both timeouts “burn-out”, qtp fails the script as the object takes 25 seconds (5 seconds longer) to appear. Yes, what you said is correct. Qtp will wait for 10 seconds after the global timeout. But in all, it will wait for 20 seconds. This wait is also the amount of time qtp waits for synchronization to take place. Let me make use of the “insert done…” example from the flights application. If you insert a synchronization point of 10 seconds with a global timeout of 20 seconds, qtp will wait for a total of 30 seconds for “insert done…” to appear. However, it doesn’t take that long to load and appears before the total timeout (global+syncstep), so the script moves on. Now, try the same with a sync step timeout of 0. See how long qtp waits? it will wait if global timeout<>0. In other words, since sync step timeout is 0, qtp will only wait if global timeout>=1. If you use the default value of global timeout (20 seconds), with sync step timeout of 0 seconds, the total timeout will be 20 seconds. It will only wait for 20 seconds for any object to appear. In other words, qtp will only wait 20 seconds for synchronization to take place. I hope i didn’t go in circles. It’s a friday.



Please see the attachment. I don't know why the Editor won't format my stuff.
Attached Files
File Type: doc save.doc (21.0 KB, 11 views)

Last edited by Anshoo_Arora; 02-08-2008 at 05:29 PM. Reason: Formatting
Reply With Quote
The Following 3 Users Say Thank You to Anshoo_Arora For This Useful Post:
  #7 (permalink)  
Old 02-08-2008
Junior Member
 
Join Date: Feb 2008
Location: USA
Posts: 8
Thanks: 1
Thanked 2 Times in 2 Posts
FredMan is on a distinguished road
Re: synchronization to take place?

Thank you for the explanation. I stand corrected but you have to admit that the exercise brought out the thinking caps.

Last edited by FredMan; 02-08-2008 at 05:36 PM. Reason: Mispelled word
Reply With Quote
The Following User Says Thank You to FredMan For This Useful Post:
  #8 (permalink)  
Old 02-08-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
Re: synchronization to take place?

Thank you too, Fred.
Reply With Quote
  #9 (permalink)  
Old 02-11-2008
Moderator
 
Join Date: Sep 2007
Location: Chennai, INDIA
Posts: 406
Thanks: 2
Thanked 197 Times in 91 Posts
sridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura about
Re: synchronization to take place?

Quote:
Originally Posted by Anshoo_Arora View Post
You are absolutely correct. As the script loads, global timeout kicks in and after that, sync step timeout initializes, which is 10 seconds. But, the total timeout is: global timeout + sync step timeout. In our scenario, as qtp initiates and waits for the object to load, it spends 10 seconds of global timeout and then, 10 seconds of sync step timeout. This is the total timeout instructed to qtp to wait for an object to load, therefore, when both timeouts “burn-out”, qtp fails the script as the object takes 25 seconds (5 seconds longer) to appear. Yes, what you said is correct. Qtp will wait for 10 seconds after the global timeout. But in all, it will wait for 20 seconds. This wait is also the amount of time qtp waits for synchronization to take place. Let me make use of the “insert done…” example from the flights application. If you insert a synchronization point of 10 seconds with a global timeout of 20 seconds, qtp will wait for a total of 30 seconds for “insert done…” to appear. However, it doesn’t take that long to load and appears before the total timeout (global+syncstep), so the script moves on. Now, try the same with a sync step timeout of 0. See how long qtp waits? it will wait if global timeout<>0. In other words, since sync step timeout is 0, qtp will only wait if global timeout>=1. If you use the default value of global timeout (20 seconds), with sync step timeout of 0 seconds, the total timeout will be 20 seconds. It will only wait for 20 seconds for any object to appear. In other words, qtp will only wait 20 seconds for synchronization to take place. I hope i didn’t go in circles. It’s a friday.



Please see the attachment. I don't know why the Editor won't format my stuff.
Very good explanation Anshoo....

I think if you face the problem with the alignment, then you can use shift enters, inserting HTML tags manually for example for bold etc., it may solve you.

Regards,
Ganesan
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Is it possible for the developer to apply Synchronization RaviCKota Java 2 04-07-2008 10:43 PM
Dynamically Changes its place rajaputra QTP 3 10-31-2007 05:28 AM
Float or character in place of int Geek_Guest C and C++ 5 10-27-2007 04:35 AM
Kindly let me know the Place JamesMike Companies 1 11-12-2006 02:48 PM
Place the Position Bessie Brainteasers 1 08-17-2006 10:47 AM


All times are GMT -4. The time now is 06:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved