background image
<< Command Line Syntax | Command Line - Examples >>
Command Line - Syntax of the partner command
<< Command Line Syntax | Command Line - Examples >>
446
User's Guide
26 C
OMMAND
L
INE
S
YNTAX
Syntax of the partner command
The options
The following table lists all the options to the partner command.
Option
Description
-m
Specifies the target machine. The default is the current machine.
(On UNIX, get the machine name using the "hostname"
command.) Call the 4Test built-in function Connect to connect
to a different machine at runtime.
-r
Must be the last option specified, followed only by the name of
a script (and, optionally, arguments that the script takes), a suite,
testplan, or link file. If you specify a link file, tells SilkTest to
resolve the link and attempt to open the link target. Otherwise,
tells SilkTest to run the specified script, suite, or testplan,
optionally passing args as arguments to a script file
-q
Quits SilkTest after the script, suite, or testplan completes.
-query
Specifies a query. Must be followed by the name of a saved
query. Tells SilkTest to perform an Include/Open All, then
Testplan/Mark By Named Query, then Run/Marked Tests.
-p
Provided for use with a Windows shell program that is running
SilkTest as a batch task. The option enables another Windows
program to receive a message containing the number of errors
that resulted from the script(s) run. SilkTest broadcasts this
message using the Windows PostMessage function, with the
following arguments:
· hWnd = HWND_BROADCAST
· uiMsg = RegisterWindowMessage (mess)
· wParam = 0
· lParam = number of errors
To take advantage of the -p option, the shell program that runs
SilkTest should first register mess, and should look for mess
while SilkTest is running.
-resexport
Tells SilkTest to export the most recent results sets to .rex files
automatically. Specifying -resexport has the same effect as if
each script run invokes the ResExportOnClose function during
its execution.
script.t/
suite.s/
plan.pln/
link.lnk
The name of the SilkTest script, suite, testplan, or link file to
load, run, or open.