background image
<< Recovery System - To specify statically the keys | Recovery System - Specifying windows to be left open >>
Recovery System - Recording a Close method
<< Recovery System - To specify statically the keys | Recovery System - Specifying windows to be left open >>
User's Guide
295
15 U
NDERSTANDING
THE
R
ECOVERY
S
YSTEM
Specifying new window closing procedures
Name of Close Item On System Menu If selecting a menu item from the
system menu will close the dialog, add the menu item to the default list.
For a complete listing of the defaults for these options on all supported
platforms, see "Close options" on page 469.
Specify dynamically
As you set Close options in the Agent Options dialog, the informational text
at the bottom of the dialog shows the 4Test command you can use to specify
the same option from within a script; add this 4Test command to a script if
you need to change the option dynamically as a script is running.
Specify for individual
objects
If you want to specify for an individual dialog the keys, menu items, and
buttons that the recovery system should use to close that dialog, define the
appropriate variable in the window declaration for the dialog:
·
lsCloseWindowButtons
·
lsCloseConfirmButtons
·
lsCloseDialogKeys
·
lsCloseWindowMenus
Recording a Close method
Procedure To record a Close method, SilkTest provides the Record Method
dialog:
1
Open your application.
2
Open the application's test frame file.
3
Place the insertion point on the window declaration for the dialog:
4
Select Record/Method.
SilkTest displays the Record Method dialog, which allows you to record
a method for either a window declaration or a class.
5
Press the arrow button to the right of the Method Name field and select
Close from the drop-down list.