UFT Test Object Schema > Elements > ClassInfo Element

ClassInfo Element

Description

The test object class.

Attributes

Name Type Use Default Description
BaseClassInfoName string optional   The name of the base test object class. The base class may be a class delivered with UFT or a class defined using Add-in Extensibility. For a list of all test object classes delivered with UFT, see the Object Model Reference section of the Unified Functional Testing Help.

The current test object class contains all of its own operations (methods and properties), together with operations that it inherits from the base class. Identification property definitions are not inherited from the base class.

For .NET: This is the name of the built-in UFT .NET Windows Forms test object class that you want to represent the custom control. The definitions in this ClassInfo element extend the existing test object class.

Default for a new test object class: The basic built-in test object class for the relevant environment. For example: WebElement, JavaObject, DelphiObject, WpfObject, SlvObject.

DefaultOperationName string optional   The default operation (method or property) of the test object class. The default operation is selected by default when a user adds a new step for a test object in this class.

Note: If this attribute is not defined and a base test object class is defined (in the BaseClassInfoName attribute), the default operation of the base test object class is used for this test object class.

FilterLevel boolean optional 0 Specifies whether the test object class should be included in the filter that is used when deciding which objects to add to the object repository (for example, during a learn or add object procedure).

Possible values:

0 - Add test objects of this class to the object repository.

1 - Do not add test objects of this class to the object repository.

GenericTypeID string optional   The generic type of the test object class. For example, for WinEdit and WebEdit test objects, the generic type is Edit. Generic types are used to create groups of similar test object classes for use when filtering objects (for example, in the Select Object for Step dialog box and when adding multiple objects to the object repository). Generic types are also used when creating documentation strings for the Documentation column of the Keyword View (unless they are specifically defined in the test object operation definition).

Note: If this attribute is not defined and a base test object class is defined (in the BaseClassInfoName attribute), the generic type of the base test object class is used for this test object class.

For a list of supported generic types, refer to the list of keys in the following registry location: HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest\SummaryData\GenTypes

Name RestrictedString required   The name of the test object class.

For naming rules, see the RestrictedString simple type.

For .NET: This is the fully qualified name of the .NET Windows Forms custom control to represent using the test object class defined in this ClassInfo element.

ROTypeInfo boolean optional false Specifies whether UFT should use the TypeInfo information from the actual object in the object repository and not from the XML file.

Possible values:

True - Use TypeInfo information from the object repository.

False - Use TypeInfo information from the XML file.

Diagram

ClassInfo Element (Required, 1 element allowed) Sequence (Required, 1 element allowed) Description Element (Optional, up to 1 element(s) allowed)
HelpInfo Element (Optional, up to 1 element(s) allowed)
IconInfo Element (Optional, up to 1 element(s) allowed)
TypeInfo Element (Optional, up to 1 element(s) allowed) Sequence (Required, 1 element allowed) ExternalTypeInfo Element (Optional, up to 1 element(s) allowed)
Operation Element (Optional, unlimited elements allowed)
AdditionalInfo Element (Optional, up to 1 element(s) allowed)
IdentificationProperties Element (Optional, up to 1 element(s) allowed) Sequence (Required, 1 element allowed) IdentificationProperty Element (Optional, unlimited elements allowed)


Children

Used By

Source

<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ClassInfo">
    <xs:annotation>
        <xs:documentation>The test object class.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:sequence>
            <xs:element ref="Description" minOccurs="0" />
            <xs:element ref="HelpInfo" minOccurs="0" />
            <xs:element ref="IconInfo" minOccurs="0" />
            <xs:element ref="TypeInfo" minOccurs="0" />
            <xs:element ref="AdditionalInfo" minOccurs="0" />
            <xs:element ref="IdentificationProperties" minOccurs="0" />
        </xs:sequence>
        <xs:attribute name="Name" type="RestrictedString" use="required">
            <xs:annotation>
                <xs:documentation>The name of the test object class.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="BaseClassInfoName" type="xs:string" use="optional">
            <xs:annotation>
                <xs:documentation>The name of the base test object class.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="GenericTypeID" type="xs:string" use="optional">
            <xs:annotation>
                <xs:documentation>The generic type of the test object class.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="DefaultOperationName" type="xs:string" use="optional">
            <xs:annotation>
                <xs:documentation>The default operation (method or property) of the test object class.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="FilterLevel" type="xs:boolean" use="optional" default="0">
            <xs:annotation>
                <xs:documentation>The filter level of the test object class.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="ROTypeInfo" type="xs:boolean" default="false">
            <xs:annotation>
                <xs:documentation>Specifies whether UFT should use the TypeInfo information from the actual object in the object repository and not from the XML file.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
</xs:element>