SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Dec 2002
    Location
    Portland, Or, USA
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Window not found...

    When I run a single test case, or even 3 or 4, I don't see much problem.

    But, if I loop, say 50 times, running the same test case over and over I will get 3-4 failures out of the 50 where Silktest can't find the window (or text box in a window, or some such).

    I've tried increasing the agent timeout from 5 to 30 seconds and it hasn't had any effect.

    Any ideas how to get Silktest to find open windows more consistently?

    ------------------

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Window not found...

    What is it you are testing?

    I see this with browsers fairly often so I'll set a wait state something like:

    integer iWait = 0
    while !myWindow.mySubSomethingOrOther.Exists(1) && iWait < 60
    Sleep(1)
    iWait++

    That way, if the window appears we move on, but we never wait longer than a minute for it to load. Stick this in a do/except and you're golden!

    ------------------

  3. #3
    Junior Member
    Join Date
    Dec 2002
    Location
    Portland, Or, USA
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Window not found...

    Thanks, like most good ideas , it seems so simple I feel stupid for not thinking of it!

    Much better than just increasing my agent timeout.

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 07:11 AM.

Copyright BetaSoft Inc.