background image
<< Test Frame - Mapping custom classes to standard classes | Test Frame - Defining a method for a GUI object >>
Test Frame - Mapping and recording Manager Class OSF/Motif widgets
<< Test Frame - Mapping custom classes to standard classes | Test Frame - Defining a method for a GUI object >>
96
User's Guide
4 R
ECORDING
A
T
EST
F
RAME
Mapping custom classes to standard classes
2
In the Window Declarations list box, click on the line containing the
declaration for the custom object.
The line is highlighted and the declaration for the CustomWin appears in
the Window Detail group box.
3
In the Window Detail group box, press the Class Map pushbutton.
The Class Map dialog appears. The name of the custom class is
displayed in the Custom Class text field.
4
In the Standard Class field, enter the name of the built-in 4Test class to
which you are mapping the custom class.
5
Click Add.
6
Click OK.
When you resume recording, the object has the standard 4Test class. Any
subsequent similar objects encountered will automatically be mapped to the
correct 4Test class. You must modify any prerecorded declarations containing
these objects to use the standard class.
Mapping and recording Manager Class OSF/Motif
widgets
The Manager Class widgets of OSF/Motif (including XmFrame and
XmForm) are by default mapped to the Ignore class, and are ignored when
you record your test frame. If you wish to include these objects among those
being recorded, you must remap these classes to themselves.
To learn which widgets are being mapped to the Ignore class, check the Show
Ignored Windows option in the Record Window Declarations Options dialog.
Ignore-class widgets are displayed in the text field at the bottom of the
Record Window Declarations dialog. As long as these widgets are classed as
Ignore, they will not be pasted into your test frame.