background image
<< Overview - The 4Test language | Overview - GUI objects >>
Overview - GetDefaultButton method
<< Overview - The 4Test language | Overview - GUI objects >>
30
User's Guide
1 O
VERVIEW
The 4Test language
this way, each class does not need to define all the methods it needs; the class
can just inherit the existing definition from its ancestor classes.
For example, one action you can perform on objects of class DialogBox is the
GetDefaultButton method. This method returns the identifier of the default
pushbutton, which is the pushbutton that is pressed when the Return or Enter
key is pressed. You could not use this method with objects that were not
dialog boxes, such as menus or text fields.
When you record testcases, the proper 4Test methods for each of your
manual actions are recorded automatically for you, so it really is transparent
to you which class the recorded methods belong to. However, if you decide to
write or augment a testcase by hand, you can look up the class and the
methods it supports in the online Help or Library Browser.
The class hierarchy
The following illustration shows the hierarchy of the core classes of GUI
objects recognized by SilkTest.