Show TOC

 Testing AttributesLocate this document in the navigation structure

Use

When you have created a test object, you can address a container for attributes. This can be simulated for classes. You can both display and change the attributes. The attribute display contains the following types of attribute field:

  • Fields for direct input
  • Lengthened fields
  • Read-only fields
  • Complex data fields (tables)
  • Attributes that are themselves object references.
Prerequisites

You have created an instance of the class you want to test. See Creating Instances.

Procedure
  1. In the Attributes section of the object display, select the attribute that you want to test.
  2. Click the icon that corresponding to the data type of the attribute.

    If the field is an input field, you can change the attribute values. If it is an object reference, the relevant object is displayed.

  3. If the field is an object reference, repeat the previous step.
Result

You have tested the access to the attributes of a class. The access is displayed in the first line of the object display.