background image
<< Test Frame - About classes | Test Frame - GUI-specific internal ID >>
Test Frame - About tags
<< Test Frame - About classes | Test Frame - GUI-specific internal ID >>
User's Guide
85
4 R
ECORDING
A
T
EST
F
RAME
Window declaration syntax and structure
Refer to the online Help for descriptions of the variables, methods, and
properties defined by each class.
About identifiers
The identifier is the GUI object's logical name.
Default identifier is
based on the label/
caption
By default, SilkTest derives the identifier from the object's actual label or
caption, removing any embedded spaces or special characters (such as
accelerators). So, for example, the Save As label becomes the identifier
SaveAs.
Note Identifiers can contain single-byte international characters,
such as é and ñ.
Identifier can be based
on the index
If the object does not have a label or caption, SilkTest constructs an identifier
by combining the class of the object with the object's index. The index is the
object's order of appearance, from top left to bottom right, in relation to its
sibling objects of the same class. For example, if a text field does not have a
label or caption, and it is the first text field within its parent object, the default
identifier is TextField1.
Identifier can be
changed
Note that the identifier is arbitrary, and you can change the generated one to
the unique name of your choice. See "Modifying identifiers and tags" on
page 93.
About tags
The tag is the actual name of the object, as opposed to the identifier, which is
the logical name. SilkTest uses the tag to identify objects in the application
under test when recording and when executing testcases.
Testcases never use the tag to refer to an object; they always use the identifier.
Five kinds of tags
Unlike identifiers, tags are not arbitrary. There are five types of tags:
Tag type
Description
Caption
The caption or label as it appears to the user.
Prior text
Closest static text above or to the left of the object. Prior
text tags begin with the ^ character.
Index
The order of the object in relation to its sibling objects
of the same class. Index tags begin with the # character.