background image
<< Test Frame - What happens by default | Test Frame - How SilkTest uses multiple tags at runtime >>
Test Frame - Using class-specific multiple tags
<< Test Frame - What happens by default | Test Frame - How SilkTest uses multiple tags at runtime >>
88
User's Guide
4 R
ECORDING
A
T
EST
F
RAME
Window declaration syntax and structure
The Record Window Declarations dialog displays.
2
Click Options.
The Record Window Declarations Options dialog displays.
3
Select and unselect the check boxes in the Default Multitags group box
as appropriate.
4
Click OK.
The next time you record window declarations, SilkTest will use the tag
types you selected by default. You can always override the defaults for a
particular object.
Using class-specific
multiple tags
You can specify which multiple-tag types to use for an individual class. For
example, maybe you don't want window ID used with a particular class, even
though you want window ID used with all other classes. You can specify this
by including a setting statement in the declaration for the class.
For more information, see "winclass declaration" in online Help.
If an object doesn't
have a caption or if the
caption is not unique
By default, SilkTest follows these steps to create a Caption tag for an object:
1
SilkTest uses the literal label or caption of the object, if there is one.
2
If the object has a sibling object with the same label or caption, SilkTest
appends the object's index number to the tag. The index number is the
object's order of appearance in relation to other sibling objects of the
same class, from top left to bottom right within the parent object.
For example, if a dialog has two objects labeled Find, the tag of the one
nearest the top left of the dialog is Find[1] and the tag of the one nearest
the bottom right of the dialog is Find[2].
3
If the object does not have a label or caption, SilkTest uses the index
number.
For example, if a dialog contains two unnamed text fields, the text field
closest to the upper left corner of the dialog has the tag #1, and the other
has the tag #2.