background image
<< Test Frame - Using class-specific multiple tags | Test Frame - About GUI specifiers >>
Test Frame - How SilkTest uses multiple tags at runtime
<< Test Frame - Using class-specific multiple tags | Test Frame - About GUI specifiers >>
User's Guide
89
4 R
ECORDING
A
T
EST
F
RAME
Window declaration syntax and structure
Changing tags Sometimes you need to change tags from what SilkTest
named them by default. See "Modifying identifiers and tags" on page 93.
How SilkTest uses
multiple tags at
runtime
When running your testcases, the Agent tries to resolve each part of a
multiple tag from top to bottom until it finds an object that matches.
Consider this declaration:
CheckBox CaseSensitive
multitag "Case sensitive"
"#1"
When SilkTest encounters a reference to Find.CaseSensitive, it first looks for
a check box whose caption is "Case sensitive". If it finds one, it uses it. If it
doesn't find one, it looks for the first check box in the dialog (because of the
index tag "#1"). If there is one, SilkTest uses it. If none of the tags resolve, an
exception is raised.
For complete information about tag resolution, see "multitag statement" in
online Help.
Turning off multiple-
tag recording
Because multiple tags make your scripts less sensitive to changes at runtime,
you will want to use them. They make your scripts play back more reliably.
However, if your application has tags that contain the pipe character ( | ), you
need to turn off multiple-tag support, because the multitag statement uses the
pipe character to delimit the tags.
Procedure To turn off multiple-tag recording.
1
Select Record/Window Declarations.
The Record Window Declarations dialog displays.
2
Click Options.
3
Deselect the Record Multiple Tags check box.
The check boxes in the Default Tag group box become radio buttons.
4
Select the tag type you want SilkTest to use by default.
5
Click OK.