SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jun 2002
    Location
    Pune,Maharashtra,India
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Silk test 5.5 - any facility for web synchronization

    We are using Silk Test 5.5 (SP1) to automate the web application. The application is dynamic and we have application server on one machine and database server on another machine .

    Now, to navigate through the pages we have used Sleep()command in the silk scripts in the following manner:
    1.We click on Next/Save button using Click() command to go to the next page.
    2.After this command we provide Sleep() command so that the next page gets loaded.
    3.We check weather the next page has appeared by using Exists() command.

    The duration to load the page is unknown and it depends upon the various factors like processor speed, network traffic, database connectivity, system configuration etc. Therefore sometimes the page gets loaded within given Sleep() duration and doesn't get loaded within the given duration. Thus the result of the automation test suite is very inconsistent.

    We want the automation suite to get rid of this variable window loading time. Therefore we wanted to know that ,is there any method for checking weather the event has been completed and the tool on itself waits (without the sleep command) for the event to get completed , ensures that the next page has appeared and proceeds. In case the next page doesn't appear for some reason, waits for some optimistic time(Does not wait indefinitely) and come out with the appropriate error message.
    In such case the test case will never fail.
    please let us know if any such method exists.

    Thanks and Regards,


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

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Silk test 5.5 - any facility for web synchronization

    It looks like you have already figured out that sleeps are a bad idea in general. You probably want to look at the Agent options Timing tab. Set the Window Timeout option to a number (in seconds) that is reasonable for your App. Also look at the Verification tab. If you select "Verify that windows are active" and set the Window Timeout to 10 (for example) then Silk will wait up to 10 seconds for an object referenced in your script to become active.

    Using the Agent.SetOption method, you can change these settings at runtime for certain chunks of code. Also, look in Help for the withoptions command, as it is a convenient way to set Agent options for only a certain block of code. IE you don't have to remember to set the Option back to your default at the end.

    Good luck.

    ------------------
    Tom
    Tom

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Silk test 5.5 - any facility for web synchronization

    There is a reasonably robust "library" available through the Silk Downloads on this site that will probably do the trick.

    Terry Horwath / The Carl Group have some web testing functions that allow you to wait for specific objects, auto-timeout / stop load / reload the web page, etc.

    They've been working well for me ...


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

  4. #4
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Silk test 5.5 - any facility for web synchronization

    Question that must be answered is what is the right timeout for me?

    For any solution that can't answer this question with certitude, means that it is not a good solution.

    I think you combine different approach to the same solution it will work best.

    1)WaitForReady() first defense(this is the cause of all our problem in the first place, it doesn't always work)
    2)Agent timeouts
    3)Custom wait functions, and Sleep() in the needed spots.


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

  5. #5
    Senior Member
    Join Date
    Dec 2001
    Location
    San Jose, CA
    Posts
    102
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Silk test 5.5 - any facility for web synchronization

    GodKnows's suggestion of using WaitForReady() is a good one. Unfortunately, it doesn't work well sometimes.
    Try using Browser.WaitForReady(600) in do-except block. If this fails, you can do something different -- timing, agent's time, etc.

    Michael

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

 

 

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:36 PM.

Copyright BetaSoft Inc.