background image
<< Commands - Use the Caption | Commands - the Record Window Locations dialog >>
Commands - Window Identifier
<< Commands - Use the Caption | Commands - the Record Window Locations dialog >>
User's Guide
503
27 M
ENU
C
OMMANDS
Record menu
Window Identifier
When you place the mouse cursor over a GUI object, the Window Identifier
text field displays the 4Test identifier for the object. The actual name
recorded by SilkTest depends on whether or not you have previously recorded
declarations for the GUI objects you want to test.
·
If you have compiled the include file for the GUI objects, then a fully
qualified object name is composed of the identifier of the object and as
many of its ancestors as necessary to uniquely identify the object.
Example: The fully qualified name of the Open menu item is:
TextEditor.File.Open
The ancestor of the Open menu item is the File menu. The ancestor of the
File menu is the top-level GUI object, TextEditor, the application itself.
·
If you have not previously compiled the include file for the GUI objects,
then SilkTest creates a fully qualified object name on the fly (called
dynamic instantiation) based on the class and tag of the object. For more
information, see "Recording without window declarations" on page 138.
When the text field displays the identifier you want to record, you can halt
tracking and insert (paste) it into a script file. Press Ctrl+Alt (Ctrl+Shift if
you changed the hotkey in Recorder Options) to freeze the contents of the
text field, and then press Paste to Editor, or Copy to Clipboard and related
commands, to insert the identifiers into a script.
Keep on Top
If checked, always keeps the Record Window Identifiers dialog in the
foreground.
Default is checked.
Resume Tracking
The Resume Tracking pushbutton continues the recording of identifiers.
Typically, you use Resume Tracking after pasting an recorded identifier into
the editor. When you are ready to record another identifier, select Resume
Tracking.
Paste to Editor
The Paste to Editor pushbutton inserts the recorded identifier into the active
SilkTest editing window. The identifier is inserted at the cursor position. The
Record Window Identifiers dialog is cleared.