SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8

Thread: Execution Speed

  1. #1
    Junior Member
    Join Date
    Jan 2003
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Execution Speed

    I'm pulling data from GUI objects using the ActiveX_get_info() and obj_get_info() functions. I initially reference the objects by their location number in order to get tag name and other attributes with the two functions mentioned. The problem I have is in the speed of execution. With some GUIs, the time of execution is a matter of seconds. With others, it is a matter of hours. I've adjusted the times in settings and this doesn't seem to work. Is there anything that anyone can suggest?

    Thanks,
    M

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

  2. #2
    Senior Member
    Join Date
    May 2001
    Location
    Ankh-Morpork
    Posts
    2,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Execution Speed

    I don't know if this would have any effect, but particularly if you are dealing with scrolling list objects, go to your PC's desktop properties and turn off "Use transition effects...".

    Also, if your script does a lot of looping or is just plain very large, running it minimized can make a big difference, too.

    ------------------
    Charles Reace (charlesDOTreaceATverizonDOTnet)
    "Forward!" he cried from the rear, and the front ranks died.
    The generals sat, and the lines on the map moved from side to side.

    (Roger Waters, "Us and Them")
    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Execution Speed

    Thanks for the insight. I learned a while back to turn off the transition effects to make testing results more reliable. That was a pain to figure out When you say minimized, do you mean the WinRunner window or is there an option pertaining to some sort of code minimization?

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

  4. #4
    Senior Member
    Join Date
    Aug 2002
    Posts
    172
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Execution Speed

    I'm sure that he means to minimise the WR window.

    ------------------
    Cordialement
    Cordialement

  5. #5
    Senior Member
    Join Date
    May 2001
    Location
    Ankh-Morpork
    Posts
    2,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Execution Speed

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Sulla:
    I'm sure that he means to minimise the WR window.

    <HR></BLOCKQUOTE>
    Yes. There is a Run Minimized option in the Run menu, as well as a similar argument if running from the command line. I've found it gives a couple of my scripts which do a lot of looping/recursion very significant speed increase (like 10 x's or more), I guess because WR no longer has to scroll the source code on your screen, move the little arrow pointer around, etc.?


    ------------------
    Charles Reace (charlesDOTreaceATverizonDOTnet)
    "Forward!" he cried from the rear, and the front ranks died.
    The generals sat, and the lines on the map moved from side to side.

    (Roger Waters, "Us and Them")
    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.&lt;/i] (The Song of Roland)

  6. #6
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Execution Speed

    This thread may be useful as well:
    http://www.qaforums.com/Forum4/HTML/008043.html

    ------------------
    ...
    Airborne requirements seldom land and are exempt from gravity.

    JP

  7. #7
    Junior Member
    Join Date
    Jan 2003
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Execution Speed

    Thanks for all the help. I tried everything. I put the lines of code into a function in a separate compiled module, used variables to shorten the line lengths, and still the function is slow.

    Initially I am referencing the objects by location in order to get their vb_names/activeX tags. I have over 200 objects in the GUI, could this be my issue?

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

  8. #8
    Senior Member
    Join Date
    Aug 2002
    Posts
    172
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Execution Speed

    This may not be helpful, for I haven't seen your code.

    Set the default delays to zero.

    setvar("delay_msec", 0);
    setvar("timeout_msec", 0);

    ------------------
    Cordialement
    Cordialement

 

 

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 10.71%
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:03 AM.

Copyright BetaSoft Inc.