SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Member
    Join Date
    Jan 2001
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I slow the execution of scripts..?

    Hello SIlk Users,
    My script is intended to go in a iteration.
    The testing application , depending on the
    network traffic, gets slow..
    that is when the Silk aborts and comes up
    with the error message "window 'name' not
    enabled or Exposed..".
    I did find some debugging hints from the
    Silk help..

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>

    [B]Window is not enabled[\B]

    Problem

    You run a script and get the following error:

    Error: Window 'name' is not enabled

    This error means that the object that SilkTest is trying to act on is not enabled. This message applies to controls inside top-level windows (such as PushButton and CheckBox).

    Solution

    You can correct this problem in one of two ways.

    If the object is indeed disabled, edit the script and add the actions that will enable the object.

    If the object is in fact enabled and you want the script to perform the action, tell SilkTest not to verify that a window is enabled:

    To turn off the verification globally, uncheck the Verify that windows are enabled option on the Verification tab in the Agent Options dialog (select Options/Agent).

    To turn off the option in your script on a case by case basis, add the following statement to the script, just before the line causing the error:
    Agent.SetOption(OPT_VERIFY_ENABLED, FALSE)

    Then add the following line just after the line causing the error:
    Agent.SetOption(OPT_VERIFY_ENABLED, TRUE)
    <HR></BLOCKQUOTE>

    This never works in my scripts...
    I hope I can get some solution to this
    problem..
    Thanks in advance..
    ~Girija




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

  2. #2
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I slow the execution of scripts..?

    You can Go to Option->Agent->Timing and change the number for Keyboard event delay/mouse event delay.



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

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

    Re: How do I slow the execution of scripts..?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Gilbert:
    Basically one way of slowing the execution of scripts, you can go to Options/Agents...
    and change some parameters in the Timing tab.
    Another way (not practical) is to find a very slow system that is capable of running your scripts...


    <HR></BLOCKQUOTE>

    My understanding of the question is that
    the window is taking a long time to become enabled as the system slows.


    Doesn't Silk have a timeout value for
    verifying if window is enabled?

    Wouldn't increasing this timeout value solve the problem?

    Why is this an issue of slowing down the script?


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

  4. #4
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: How do I slow the execution of scripts..?

    Raul,

    It seems like you are trying to ask or add more questions than the originator of this topic.
    Let's read his question in slow motion...
    "How...do...I...slow...the...execution...of...scri pts..?"


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


    [This message has been edited by Gilbert (edited 04-20-2001).]

  5. #5
    Senior Member
    Join Date
    Sep 2000
    Posts
    159
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I slow the execution of scripts..?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Gilbert:
    Raul,

    It seems like you are trying to ask or add more questions than the originator of this topic.
    Let's read his question in slow motion...
    "How...do...I...slow...the...execution...of...scri pts..?"

    <HR></BLOCKQUOTE>


    The problem is more important than the question. It seems like he is posing the
    wrong question for the problem.

    I don't see why the script needs to be slowed
    down in order to solve his problem.



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

  6. #6
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: How do I slow the execution of scripts..?

    Basically one way of slowing the execution of scripts, you can go to Options/Agents...
    and change some parameters in the Timing tab.
    Another way (not practical) is to find a very slow system that is capable of running your scripts...


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

  7. #7
    Junior Member
    Join Date
    Feb 2001
    Location
    ottawa
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I slow the execution of scripts..?

    I don't think it we should be trying to slow the 'scripts down' but slow silktest down as it is trying to act upon the controls before the are enabled. I too have come across this problem as well. I tried setting the same various timeouts and other options silk has that were mentioned in the above posts to help 'slow down silk', but they did not work very well.

    What I did finally do was write my own 'while loop'. This loop will be called after silk has exhausted it's own timeout calls. In order for this loop to work properly one must know what the control or window name is. So you would have to modify your scripts to send an expected control\window name to this function call. So when the 'while loop' is kicked off it will loop until it finds the expected control\window. I have my own built in timeout that I can change in my ini file. So if I know the load on the server is going to get heavy I can change this value during runtime..or just leave it at a high timeout number and let it run. my scripts don't have to be done within a certain time frame so I concentrate on having my automation complete my suite of tests..rather then having them fail on every second one because of a minor timeout problem.
    This was my way of solving the problem. I am sure there is other ways as well
    Hope this helps,

    james

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

  8. #8
    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: How do I slow the execution of scripts..?

    As I read down through this thread, I was thinking the exact thing James was thinking... I use a conditional while loop. If you know for certain that a window or control is supposed to/going to appear, use a while loop to put the script on hold while the window/control does not exist, or while a value {i} is less than some predefined value so your script doesn't hang there for the whole weekend.

    [This message has been edited by DJGray (edited 04-23-2001).]

  9. #9
    Member
    Join Date
    Nov 2000
    Location
    Tampa, FL USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I slow the execution of scripts..?

    [-] while !(wWindow.Exists())
    [ ] sleep(.4)

    this solved my problem on a slow network/application.... insert the code where ever you need it, or better yet, make it a function and call it passing the window you want to check the existence of.....


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

  10. #10
    Member
    Join Date
    Jan 2001
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I slow the execution of scripts..?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>I don't think it we should be trying to slow the 'scripts down' but slow silktest down as it is trying to act upon the controls before the are enabled. <HR></BLOCKQUOTE>

    Yes , I want to slow down the Silktest....
    execution...
    I welcome more suggestions on this...
    Thanks
    ~Girija

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

 

 
Page 1 of 2 12 LastLast

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 02:26 AM.

Copyright BetaSoft Inc.