SPONSORS:






User Tag List

Results 1 to 8 of 8

Thread: Delay

  1. #1
    syi
    syi is offline
    Junior Member
    Join Date
    Aug 2001
    Location
    Fairfax, VA, USA
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Delay

    I am wondering how SilkTest deals with delays in playback functions. For example, if one screen takes twice as long to open as it did at the time of recording, will it know to wait twice as long before it goes on to the next playback function?

    I noticed that if my application takes longer than usual to retrieve/open the next window, SilkTest comes back with an error letting me know that that the specific window cannot be found. But this only happens some times... Has anyone experienced this? Is there a way to avoid this?

    Please advise.

    Thank you.

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delay

    You can use the WaitForReady function in SilkTest.

    I have written my own function that waits for a specific amount of times, handles known error screens, and times page load times. Depends on what you want to do.

    MikeF

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

  3. #3
    Member
    Join Date
    Dec 2000
    Location
    San Francisco, CA
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delay

    Try the menu item Options... Agent...
    It should have the timing options you want to set.


    ------------------
    kalabog73@hotmail.com

  4. #4
    Member
    Join Date
    May 2001
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delay

    You can do something like this..
    Declare a Global Variable.
    EXISTS_DELAY=60 (//1min)

    Window. Exists (EXISTS_DELAY)

    It waits until 60 sec. If the page does not pop up it gives error. If the page pop ups before 60 sec., it keep continues.

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


    [This message has been edited by mansri (edited 09-06-2001).]

  5. #5
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delay

    Hi Syi,

    I have had the same problem in the past. What I did was write a while loop that would wait until the next window was active. See code below:

    [ ] Integer Counter = 0
    [-] while (!NextWindow.Exists(1) && Counter < 10)
    [ ] sleep(1)
    [ ] Counter = Counter + 1

    Hope this helps...

    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  6. #6
    Junior Member
    Join Date
    Apr 2001
    Location
    San Francisco, Ca. USA
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delay

    You can also use withoptions (kind of buggy) with the Agent Options if you have on case that you need to wait exceptionally long for.

    ------------------
    Robert

  7. #7
    Member
    Join Date
    May 2001
    Posts
    39
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delay

    try using simple loop !
    [-] while !Window.Exists()
    [ ] // do nothing
    I hope this will help !

    Prashant

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

  8. #8
    Member
    Join Date
    May 2001
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delay

    You can do something like this..
    Declare a Global Variable.
    EXISTS_DELAY=60 (//1min)

    Window. Exists (EXISTS_DELAY)

    It waits until 60 sec. If the page did not pop up it gives error. If the page pop ups before 60 sec., it keep continues.



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

 

 

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 05:49 AM.

Copyright BetaSoft Inc.