SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Oct 2001
    Location
    Cambridge, MA, USA
    Posts
    263
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to Improve the Performance of your SilkTest Scripts

    This topic is dedicated to sharing ideas on how to optimize SilkTest code for performance.

    I'm running into a situation where the code that I'm writing to calculate dynamic tag strings is very slow. I suspect that there are some things I can do in my code to improve the performance, but I'm not sure where to start. That got me thinking about, and searching for, suggestions/ideas/guidelines on how to write SilkTest code to optimize for performance. There's not much out there! Please share your ideas and suggestions here.

    Thanks,
    Derek



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

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Westford, MA, USA
    Posts
    160
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to Improve the Performance of your SilkTest Scripts

    I suppose you could submit your code or algorithm for review by the masses. Otherwise it's kind of hard to know where to start.

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

  3. #3
    Junior Member
    Join Date
    Mar 2002
    Location
    Toronto, Ontario, Canada
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to Improve the Performance of your SilkTest Scripts

    Optimizing your scripts is the same as optimizing your code in any programming language. There are many things you can do to ensure your scripts run quicker, use RAM more effeciently, etc. How much of a difference these make per line of code is often negligable, but if you have extremely large scripts then they start to make a difference.

    Here is a list of a couple things that may improve the speed of your code:

    -Use explicit instead of implicit casting (this saves the compiler from having to figure it out)
    -If you use the recorder, remove the SetActive() methods from the last line (which often gets added)
    -Remove unncessary verifyproperty statements (or parts of them)
    -Ensure you are using appropriate datatypes (ie: don't use a long datatype to store an intger of 1-10)
    -Avoid unnecessary error handling
    -Avoid wildcards if possible

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

 

 

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 11:10 PM.

Copyright BetaSoft Inc.