background image
<< Commands - The Record Testcase dialog | Commands - SilkTest assigns the class CustomWin >>
Commands - Opens the Record Window Declarations dialog
<< Commands - The Record Testcase dialog | Commands - SilkTest assigns the class CustomWin >>
498
User's Guide
27 M
ENU
C
OMMANDS
Record menu
Record/Window Declarations...
Opens the Record Window Declarations dialog, which allows you to record
descriptions, called window declarations, of the GUI objects in your
application and insert them into a declarations file, called an include file.
SilkTest uses the declarations in the include file to identify the objects named
in your test scripts. The declaration is a combination of class, identifier, and
tag.
The Record Window Declarations dialog, shown below, is composed of a
Window Declaration list box, the Window Detail group box, the Tag
Information group box, a check box and several pushbuttons. As you move
the mouse pointer over your application, the contents of the dialog change to
reflect the object under the pointer. When you position the mouse pointer
over the object you want to declare and press Ctrl+Alt, the Record Window
Declarations dialog freezes the current contents, in effect, taking a snapshot
of the declaration. The following figure shows a snapshot of the declaration
for the Text Editor.
Window Detail
The Window Detail group box (upper left) displays the class, identifier, and
tag of the object highlighted in the list box (bottom of the dialog). You can
edit the class and identifier of an object displayed in the list box by selecting
it. The Window Detail group box contains the following fields:
Class The class is the GUI object type and determines which methods can
operate on the object.