SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Can I turn off the sync feature for web testing?

    The problem I am having is QTP is waiting for the page to load (without having a sync statement). This is causing the problem because the popup text that I am looking for disappears when the page finishes loading. Is there anyway to force QTP to run the next line without waiting for the page to finish loading?

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Can I turn off the sync feature for web testing?

    You can reduce the Object Synchronisation Timeout parameter, default is 20000 miliseconds.

    This will solve that problem but may mean where you need to wait for a page to render elsewhere in the scrip it won't wait and test may fail.

    I set the sync timeout to 2000 and use Exist or WaitProperty methods if I need to wait for a particular event.

    Mark Smith.

  3. #3
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Can I turn off the sync feature for web testin

    To dynamically change Object Sync timeout, "do some stuff..." and then restore Object Sync timeout, use some variation of the following code snippet:

    <font class="small">Code:</font><hr /><pre>
    Dim iMS, iDefault, reporterMode
    '
    reporterMode=Reporter.Filter
    iMS=250
    '
    On Error Resume Next 'Ignore (or trap if you want) any exceptions...
    '
    Reporter.Filter=rfDisableAll 'disable QTP logging (you might not want to do this...)
    iDefault=Setting("DefaultTimeout") 'save existing Object Sync timeout
    '
    Setting("DefaultTimeout")=iMS 'reduce timeout to iMS milleseconds
    '
    ' your specific code goes here...
    '
    Setting("DefaultTimeout")=iDefault 'restore Object Sync Timeout
    Reporter.Filter=reporterMode 'restore QTP logging
    '
    On Error Goto 0 'back to QTP handling exceptions
    </pre><hr />
    -Hope this helps, Terry

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:01 AM.

Copyright BetaSoft Inc.