background image
<< Test Frame - Modifying identifiers and tags | Test Frame - Mapping custom classes to standard classes >>
Test Frame - Why change the tags
<< Test Frame - Modifying identifiers and tags | Test Frame - Mapping custom classes to standard classes >>
94
User's Guide
4 R
ECORDING
A
T
EST
F
RAME
Modifying identifiers and tags
Why change the tags
By default, the GUI object's caption and index are used for the tag, because
they are the most portable. In most cases, these are what you want to use.
However, there are situations in which the default tag is not suitable. For
complete information about using alternative tags, see the section "How to
choose a tag-string form" in the "multitag statement" topic in online Help.
Modifying in the
Record dialog
You can modify the identifier or tag for a dialog as you are recording it.
Procedure To modify a declaration in the Record Window Declarations
dialog:
1
In the Window Declaration list box at the bottom of the dialog, click the
line for the object containing the tag or identifier you want to change.
The Window Detail group box in the upper left of the dialog updates to
include the information from the line you clicked on.
2
To change the identifier, simply replace the existing identifier with one
of your choice.
To change the tag, select the tag types you want to include in the
generated multitag. You can edit the contents of each tag type in the text
fields in the Tag Information group box.
The Window Declaration list box updates dynamically as you enter the
new information.
3
When finished making modifications, press the Paste to Editor
pushbutton.
The declarations for the dialog are appended to the test frame file.
Example of changing tag You might want to provide more than one caption
for a control if the control's caption can change dynamically. For example, if
a push button sometimes says Yes and sometimes says Continue, you could
change the tag as shown here:
Note that you separate different tag components using the pipe character ( | ).