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

NameTypeUseDefaultDescription
IconFilestringrequired 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 One installation folder, by providing a file path that begins with the string INSTALLDIR, where INSTALLDIR replaces the UFT One installation folder path.

IconIndexintegeroptional 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>