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.
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.
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.