UFT Test Object Schema > Elements > Operation Element

Operation Element

Description

A single operation (method or property) for a test object class.

Attributes

Name Type Use Default Description
ExposureLevel string optional Expert Specifies which users can access the operation.

Note: If all operations for a test object class are specified as Expert, then the test object class cannot be used by Subject Matter Experts. In this case, all operations are automatically changed to CommonUsed.

Possible values:

Expert - Available only to Automation Engineers using UFT.

CommonUsed - Available to Subject Matter Experts using Business Process Testing and to Automation Engineers using UFT.

Name RestrictedString required   The name of the operation.

For naming rules, see the RestrictedString simple type.

PropertyType Property_Type optional Method The operation type (method or a property).

For the list of possible values, see the Property_Type simple type.

SortLevel integer optional 0 The sort level of the operation. The sort level specifies where the operation appears in the list of possible operations that UFT displays for a test object in the Keyword View and Editor. All operations with the same sort level are grouped together in alphabetical order.

Possible values:

0 - Default sort level

any integer below zero - Places the operation higher in the list

any integer above zero - Places the operation lower in the list

Diagram

Operation Element (Required, 1 element allowed) Sequence (Required, 1 element allowed) Description Element (Optional, up to 1 element(s) allowed)
Documentation 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)
Argument Element (Optional, unlimited elements allowed) Sequence (Required, 1 element allowed) Type Element (Required, 1 element allowed)
AdditionalInfo Element (Optional, up to 1 element(s) allowed)
ReturnValueType Element (Optional, up to 1 element(s) allowed) Sequence (Required, 1 element allowed) Type Element (Required, 1 element allowed)
AdditionalInfo Element (Optional, up to 1 element(s) allowed)
AdditionalInfo Element (Optional, up to 1 element(s) allowed)


Children

Used By

Source

<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Operation">
    <xs:annotation>
        <xs:documentation>A single operation (method or property) for a test object class.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:sequence>
            <xs:element ref="Description" minOccurs="0" />
            <xs:element ref="Documentation" minOccurs="0" maxOccurs="1" />
            <xs:element ref="HelpInfo" minOccurs="0" />
            <xs:element ref="IconInfo" minOccurs="0" />
            <xs:element ref="Argument" minOccurs="0" maxOccurs="unbounded" />
            <xs:element ref="ReturnValueType" minOccurs="0" />
            <xs:element ref="AdditionalInfo" minOccurs="0" />
        </xs:sequence>
        <xs:attribute name="Name" type="RestrictedString" use="required">
            <xs:annotation>
                <xs:documentation>The name of the operation.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="PropertyType" default="Method">
            <xs:annotation>
                <xs:documentation>The operation type (method or property).</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
                <xs:restriction base="Property_Type">
                    <xs:maxLength value="3" />
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="ExposureLevel" use="optional" default="Expert">
            <xs:annotation>
                <xs:documentation>Specifies which users can access the operation.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="Expert" />
                    <xs:enumeration value="CommonUsed" />
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="SortLevel" type="xs:integer" use="optional" default="0">
            <xs:annotation>
                <xs:documentation>The sort level of the operation.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
</xs:element>