background image
<< Test Cases - Recording the verification stage | Test Cases - Configuring property sets >>
Test Cases - Verifying using properties
<< Test Cases - Recording the verification stage | Test Cases - Configuring property sets >>
User's Guide
115
5 D
ESIGNING
AND
R
ECORDING
T
ESTCASES
Recording the verification stage
With Verify Using Properties deselected, the next time you go to verify an
object, the Verify Window dialog will have an Attribute tab, instead of a
Property tab. For information on verification using attributes, see "Verifying
object attributes" on page 130.
Verifying using properties
You will perform most of your verifications using properties.
Each object has many characteristics, or properties. For example, as shown in
the following illustration, dialog boxes have these verification properties:
Caption, Children, DefaultButton, Enabled, Focus, Rect, and State.
Caption is the text that appears in the dialog box's title bar; Children is a list
of all the objects contained in the dialog box, DefaultButton is the button that
is invoked when you press Enter, and so on. In your testcases, you can verify
the state of any of these properties.
You can also, in the same testcase, verify properties of children of the
selected object. In the preceding illustration, notice that the child objects in
the Find dialog box (such as the text field FindWhat and the check box
CaseSensitive) are also selected for verification.
By recording verification statements for the values of one or more of an
object's properties, you can determine whether the state of the application is
correct or in error when you run your testcases.