background image
<< Test Cases - for RadioList GetItemCount | Test Cases - Recording the cleanup stage and pasting the recording >>
Test Cases - To verify an attribute of a GUI object
<< Test Cases - for RadioList GetItemCount | Test Cases - Recording the cleanup stage and pasting the recording >>
User's Guide
131
5 D
ESIGNING
AND
R
ECORDING
T
ESTCASES
Recording the verification stage
·
Selected range, which is the beginning and ending position of the text
string currently selected in the field, in (line, column) format. For
example a value of {1,12,1,16} means that the selected text begins on
line 1, column 12 and ends on line 1, column 16.
·
Selected Text, which is the string that is currently selected, if any, in the
text field.
·
Text, which is the entire contents of the text field.
By recording verification statements for the values of one or more of an
object's attributes, you can determine whether the state of the application is
correct or in error when you run your testcases. That is: did the feature you
are testing have the expected result?
Note Attributes have been essentially rendered obsolete and have
been replaced by properties. See "Verifying using properties" on
page 115.
Procedure To verify an attribute of a GUI object:
1
Select Options/Recorder.
2
Drive your application to the test state and press Ctrl+Alt.
The Verify Window dialog opens with the Attribute tab displayed.
The list box on the left shows the attributes for the current object.
3
Select an attribute from the list box.
The current value of the attribute (that is, the value that exists when you
are recording) is shown in the Attribute Value field.