Results 1 to 9 of 9

Thread: synchronization to take place?

  1. #1
    Moderator
    Join Date
    Sep 2006
    Answers
    920

    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

    Regards,
    Brijesh Jain
    ---------------------------------------------------------
    Connect with me on Skype: jainbrijesh
    Google Plus : jainbrijeshji

  2. #2

    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


  3. #3
    Junior Member
    Join Date
    Feb 2008
    Answers
    6

    Re: synchronization to take place?

    10 seconds


  4. #4

    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


  5. #5
    Junior Member
    Join Date
    Feb 2008
    Answers
    6

    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?


  6. #6

    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 Attached Files
    Last edited by Anshoo_Arora; 02-08-2008 at 05:29 PM. Reason: Formatting

  7. #7
    Junior Member
    Join Date
    Feb 2008
    Answers
    6

    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

  8. #8

    Re: synchronization to take place?

    Thank you too, Fred.


  9. #9

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact