Interview Questions

I want to set current path run time ....

SilkTest Questions and Anwsers


(Continued from previous question...)

94. I want to set current path run time ....

I want to set current path run time - means if I am having scripts on *C:\Silktest*\XYZ.pln then in Initialise function - I want to set path as
*C:\Silktest *
How to do that in ST ?
Also I want to set few run time options , not thr' run time option dialog box but pragmatically Note ::All options present in Runtime dialog
1. Use files
2. Result file path
I checked for .opt file option ..
that is for Agents ONLY I guess..



The "CurrentPath" would return the current path.....Manipulate this string to set your current path......
In .opt file set
[Runtime]
UseFiles=C:\SilkTest\test.inc;extend\explorer.inc;so on.........
ResultsPath=C:\Silktest

(Continued on next question...)

Other Interview Questions