You can start the Silk Test Classic executable program from the command line by:
partner [-complog filename] [-m mach] [-opt optionset.opt] [-p mess] [-proj filename [-base filename]] [[-q] [-query query name] [-quiet] [-r filename] [-resexport] [-resextract] [-r] scr.t/suite.s/plan.pln/link.lnk [args]]
The filename specified for various options expects the file to be located in the working directory. The default location is the Silk Test Classic installation directory, C:\Program Files (x86)\Silk\SilkTest. If you want to use a file that is located in another directory, you must specify the full path in addition to the filename.
The partner command can be called with the following options:
Optional arguments to a script file. You can access the arguments using the GetArgs function and use them with your scripts.
If you pass arguments in the command line, the arguments provided in the command line are used and any arguments specified in the currently loaded options set are not used. To use the arguments in the currently loaded options set, do not specify arguments in the command line.
For additional information, see Passing arguments to a script.
partner [-complog c:\testing\logtest1.txt]
If you include this argument, Silk Test Classic checks that the specified file exists each time that you compile. If the file does not exist, Silk Test Classic creates and opens the file. If the file exists, Silk Test Classic opens it and adds the information. The number of errors is written in the format n error(s), for example 0 errors, 1 error, or 50 errors. Compilation errors are written to the error log file as they are displayed in the Errors window. The error log file is automatically saved and closed when Silk Test Classic finishes writing errors to it.
Specifies the target machine. The default is the current machine. Call the 4Test built-in function Connect to connect to a different machine at runtime.
In order to use the -m switch, you need to have the Network setting of the Runtime Options dialog box set to TCP/IP or NetBIOS. If this is set to '(disabled)', the target machine is ignored. To set the Network setting, either set it interactively in the Runtime Options dialog box before running from the command line, or save the setting in an option set and add the '-opt <option set>' argument to the command line.
Provided for use with a Windows shell program that is running Silk Test Classic as a batch task. This option enables another Windows program to receive a message containing the number of errors that resulted from the run. Silk Test Classic broadcasts this message using the Windows PostMessage function, with the following arguments:
To take advantage of the -p option, the shell program that runs Silk Test Classic should first register the message (mess), and should look for the message while Silk Test Classic is running.
partner –proj d:\temp\testapp.vtp –r agent.pln
-base is an optional argument to –proj. You use the base argument to specify the location where you want to unpack the package contents. For example, partner –proj d:\temp\testapp.stp –base c:\rel30\testapp unpacks the contents of the package to the c:\rel30\testapp directory.
Starts Silk Test Classic in quiet mode, which prevents any pop-up dialog boxes from displaying when Silk Test Classic starts up.
The quiet option is particularly useful if you are doing unattended testing where a user is not available to respond to any pop-up dialog boxes that may display.
partner
partner -r test.s
partner -m sys1 -r test.t
partner -r test.t arg1 arg2
partner -query query3 -r tests.pln
partner -q -resexport -r tests.pln
partner test.inc