SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Sep 2000
    Posts
    48
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to set the runtime options within a script?

    I need to be able to run my script on many machines that already have silktest installed and each time I run my script on a different machine I find myself having to change the runtime options again and again. We have 2 other scripters and and they change the runtime options to run their script. The most important part i want to be able to change is the "use path", "use files", "default browser" option.

    thx
    Konrad Nau
    Software Test Automation Specialist Intern
    CQOS INC.

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to set the runtime options within a script?

    You can set these things at the script level, and set / clear most agent options that you desire.

    On my projects, the option sets (only 2, one for backward compatibility, and one for new code) have all those fields you mentioned cleared.

    You can just have use statements in your T and INC files, and keep it all under source control.

    My option sets are also under source control, to keep the fields blank.

    P.S. look up Agent options in the help, and how to set in T or INC files.

    [This message has been edited by styler (edited 01-18-2001).]
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

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

    Re: How to set the runtime options within a script?

    Styler,
    I just look through the agent options, but couldn't find a way to set the path (equivalent of use path in runtime options).
    Konrad Nau
    Software Test Automation Specialist Intern
    CQOS INC.

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

    Re: How to set the runtime options within a script?

    The partner.ini file located in your SilkTest installation directory contains an entry like this.
    [State]
    OptionsSet=c:\options\opttoload.opt

    This is being used to load the options set when you open SilkTest.

    What you can do is make copies of your existing partner.ini for each project/script that you run. Then make changes to these ini files to point to the desired options set to load (e.g. OptionsSet=c:\options\loadthisoneinstead.opt). Finally, what you can do is make a batch file which will replace the existing partner.ini with the ini file which will load your desired options and then execute SilkTest using the partner.exe command line.

    Now, your users can just click on these batch files to run your scripts without worrying about anything else.

    Don't forget to first backup your partner.ini before replacing it.


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

    Re: How to set the runtime options within a script?

    that's a very clever idea.
    thx
    Konrad Nau
    Software Test Automation Specialist Intern
    CQOS INC.

 

 

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 04:05 PM.

Copyright BetaSoft Inc.