background image
<< Commands - Open All | Commands - App Ready Timeout >>
Commands - PVCS Options
<< Commands - Open All | Commands - App Ready Timeout >>
User's Guide
467
27 M
ENU
C
OMMANDS
Options menu
The statement uses the SetOption method to operate on the Agent object.
OPT_WINDOW_TIMEOUT
is the internal 4Test name of the Window Timeout
option, and 5 is the current, default value of the option, five seconds.
This code is useful if you want to set a local value for a given Agent. You
simply place the statement in the main routine of your script, making sure to
set the value you want.
·
The 4Test Statement Which Sets the Option field displays the code. You
can either type it yourself or select the Copy to Clipboard pushbutton to
have SilkTest copy the statement to the clipboard.
Creating multiple sets of Agent options In some situations you might want
to have more than one set of Agent options; for example, if you're working
on multiple projects, you might want to have a custom set of options for each
project. In this case, you need to save your options in a file other than the
default file, which is partner.ini. SilkTest saves your options automatically in
partner.ini whenever you exit the dialog. To save your custom options in
another file, see "Options/Save New Options Set..." on page 489.
Timing options
Window Timeout (Seconds) Specifies the number of seconds SilkTest
waits for a window to appear and be in the correct state. If a window does not
appear in the correct state within the specified timeout, SilkTest raises an
exception. The correct state of the window depends on how you set the
options on the Verification tab, which determine whether SilkTest checks
whether a window is enabled, active, exposed, or unique.
The default is 5 seconds (unless you have enabled enhanced support for
Visual Basic, in which case the default is 20 seconds for 32-bit applications
and 10 seconds for 16-bit applications).
Window Retry Interval (Seconds) Specifies the number of seconds
SilkTest will wait between attempts to verify a window, if the window does
not exist or is in the incorrect state. SilkTest continues trying to find the
window until the time specified by the Window Timeout option is reached.
The correct state of the window depends on how you set the options on the
Verification tab, which determine whether or not SilkTest checks whether a
window is enabled, active, exposed, or unique.
The default is 0.06 seconds.
Keyboard Event Delay (Seconds) Specifies the delay used before each
keystroke in a script.