SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I open OptionSet from Scripts?

    Does anyone knows any agent command or other way to open an option set from scripts or include file (not from test plan file)
    Thanks

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


    [This message has been edited by KS (edited 05-15-2001).]

  2. #2
    Junior Member
    Join Date
    May 2001
    Location
    Portland, OR
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I open OptionSet from Scripts?

    Ok, this isn't what you asked for, but maybe it will help. First, I don't see any way to change the option set on the fly from a script. But here is something that you might be able to do, but it's a little cludgy.

    You can invoke SilkTest via a command line. See SilkTest Help -> command line switches:for the partner command

    This is only relevant because the path to the .opt file is stored in the partner.ini file. It's possible, maybe, to change the file name in the partner.ini file and then restart SilkTest via the command line. This is completely ugly and I don't think that I'd actually recommend it, but you can make that call for yourself. I'm only pointing out that the functionality exists.

    I may be able to give better help you if you can describe why you need to change option sets on the fly. It sounds like a pretty unusual request. Maybe there is a better solution that address's the root issue.

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

  3. #3
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I open OptionSet from Scripts?

    Here is the situation. Some of my scripts are ran by testplan .pln file which automatically open up option set file and closes it. Some of my scripts are run by suite file .s where people forget to open option set file because they get confuse between these two methods of running. I was think about running a testcase in the very beginning that will open the appropriate option set file.

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

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I open OptionSet from Scripts?

    You can't change option sets except from a plan.

    You can change many of the settings programmatically - for example, which browser to use, use specific inc files, change Agent options, etc.

    Why not try convincing the .s people to change to using .pln files. Testplan files give you much more information - # of testcases, % complete, Test Selection by Query, etc.

    Hope this helps.


    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

  5. #5
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I open OptionSet from Scripts?

    by the way, this is the syntax for setting an optionset in the .pln file...

    optionset: c:\SilkScripts\MyOptions.opt

    Warning though, we've encountered some bugs with changing optionsets on the fly when also connecting to remote machines.

    Also, lookup SetOption() in the help to see how to change individual options in your code.

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


    [This message has been edited by BrianCarroll (edited 05-16-2001).]

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

    Re: How do I open OptionSet from Scripts?


 

 

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

Copyright BetaSoft Inc.