UFT Test Object Schema > Elements > IconInfo Element

IconInfo Element

Description

Icon information for the element (ClassInfo or Operation).

Important Information

  • The icon defined for an operation is displayed only in the run results.
  • If the IconInfo element is not defined for a test object class or operation, a default icon is used.
  • Note for .NET Add-in users: Do not use this element for the .NET Add-in.

Attributes

Name Type Use Default Description
IconFile string required   The file system path to the file that contains the icon. The file can be a .dll, .exe or .ico file.

You can specify a file path relative to the UFT installation folder, by providing a file path that begins with the string INSTALLDIR, where INSTALLDIR replaces the UFT installation folder path.

IconIndex integer optional   The index of the icon's location in the file (required only if the IconFile attribute is a .dll or .exe).

Used By

Source

<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="IconInfo">
    <xs:annotation>
        <xs:documentation>Icon information for the element (ClassInfo or Operation).</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:attribute name="IconFile" type="xs:string" use="required">
            <xs:annotation>
                <xs:documentation>The file system path to the file that contains the icon.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="IconIndex" type="xs:integer" use="optional">
            <xs:annotation>
                <xs:documentation>The index of the location of the icon in the file.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
</xs:element>