Welcome to the UFT Testing Extensibility API Reference > TestingEnvironment Schema > Elements > Operation Element
TestingEnvironment Schema
Operation Element
Description
A single method or property of a test object class.
Namespace (none)
Diagram
AdditionalInfo Element ReturnValueType Element Argument Element IconInfo Element HelpInfo Element Documentation Element Description Element Sequence Operation Element
Overview
Operation
A single method or property of a test object class.
Name requiredRestrictedString Simple Type
The name of the operation.
PropertyType optionalRestriction of PropertType Simple Type
The operation type. Either Method or up to three Property specifications.
ExposureLevel optionalRestriction of xs:string
Specifies the exposure level of the operation. It can be common used and exposed to all users, or exposed only to experts.
SortLevel optionalxs:integer
The sort level of the operation. Numbers below zero move the item up in the list. Numbers above zero move the item down.
Sequence
Descriptionoptionalxs:string
The description of the element.
Documentation0..∞Extension of xs:string
The documentation string for the operation.
NumOfArguments optionalxs:integer
The number of arguments that require values to be specified in order to show the documentation string for the operation.
HelpInfooptional
Context-sensitive Help information for the element.
HelpFile requiredxs:string
The file system path to the file which contains the help information.
HelpContext optionalxs:integer
The context identifier for the location inside the help file where the information resides.
IconInfooptional
Icon information for the element.
IconFile requiredxs:string
The file system path to the file which contains the icon. Can be a dll, exe, or ico file.
IconIndex optionalxs:integer
The index to the location of the icon inside the dll or exe.
Argument0..∞
The argument definitions for the operation.
Name requiredRestrictedString Simple Type
The argument name.
IsMandatory requiredxs:boolean
Specifies whether the argument is mandatory.
DefaultValue optionalxs:string
The default value for this argument.
Direction optionalRestriction of xs:string
Specifies whether this argument is an input argument or an output argument.
Sequence
Type
The data type.
VariantType optionalVariant Simple Type
The variant type of the argument.
ListOfValuesName optionalxs:IDREF
The name of the list of values of the argument. Can be one of the list of values names defined in this XML.
Descriptionoptionalxs:string
The description of the element.
HelpInfooptional
Context-sensitive Help information for the element.
HelpFile requiredxs:string
The file system path to the file which contains the help information.
HelpContext optionalxs:integer
The context identifier for the location inside the help file where the information resides.
AdditionalInfooptional
Placeholder for additional information.
ReturnValueTypeoptional
The return value's data type.
Sequence
Type
The data type.
VariantType optionalVariant Simple Type
The variant type of the argument.
ListOfValuesName optionalxs:IDREF
The name of the list of values of the argument. Can be one of the list of values names defined in this XML.
AdditionalInfooptional
Placeholder for additional information.
AdditionalInfooptional
Placeholder for additional information.
Attributes
Name Type Use Default Fixed Description
Name RestrictedString Simple Type required     The name of the operation.
PropertyType Restriction of PropertType Simple Type optional Method   The operation type. Either Method or up to three Property specifications.
ExposureLevel Restriction of xs:string optional Expert   Specifies the exposure level of the operation. It can be common used and exposed to all users, or exposed only to experts.
SortLevel xs:integer optional 0   The sort level of the operation. Numbers below zero move the item up in the list. Numbers above zero move the item down.
Source
<xs:element name="Operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>A single method or property of 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="unbounded"   />
      <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. Either Method or up to three Property specifications.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="PropertType">
          <xs:maxLength value="3"   />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ExposureLevel" use="optional" default="Expert">
      <xs:annotation>
        <xs:documentation>Specifies the exposure level of the operation. It can be common used and exposed to all users, or exposed only to experts.</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. Numbers below zero move the item up in the list. Numbers above zero move the item down.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>
See Also