Object attributes are the named variables that can be used to create
and drive an object to a desired state. When you click in the test data table
in any cell that contains an object, you will see a list of several definitions
for the object. When you select a definition, the row representing the object
expands to display the attributes of the definition that you have chosen.
To supply test data for the attributes of an object:
- Double-click in the type column of the object you wish to define
attributes for. This displays a list of the various definitions
you can use to build the object. These definitions are based on:
- The available constructors for the object
- The properties of the object (for those objects that conform to the JavaBeans™ specification.)
- The subclasses of an interface, abstract class, or superclass
- Specialized support for particular classes or interfaces
- Select the definition that best matches how you want to define
the object. After you select the object definition, the
object's attributes are added to the test data table as child elements of
the object.
- Move your cursor to any data set in the table and enter the values
for the object's attributes.
Note: There is no support in test
data tables for hashmaps (java.util.HashMap).