Complex Types > PropertyType Complex Type
ObjectRepositorySchema Schema
PropertyType Complex Type
Description
A complex type that enables you to define all of the information for an identification property.
Namespace http://www.mercury.com/qtp/ObjectRepository
Diagram
Parameter Element Value Element Choice Sequence PropertyType Complex Type
Overview
PropertyType
A complex type that enables you to define all of the information for an identification property.
Name optionalxs:string
The property name. The property name. The Name must be a supported property for the test object class. 
For a list of supported properties for a particular test object class, refer to the relevant object in the Unified Functional Testing Object Model Reference Help.
Type optionalxs:string
The property value type. Possible values: STRING, NUMBER, BOOL
Hidden optionalxs:boolean
Indicates whether the property is displayed in the object repository interface.
ReadOnly optionalxs:boolean
Indicates whether the property value can be edited.
Sequence
Choice
ValueValueType Complex Type
The value of the property for properties set to a constant value.
RegularExpression optionalxs:boolean
Indicates whether the value should be evaluated as a regular expression.
ParameterParameterType Complex Type
The name of the parameter for parameterized properties.
Type optionalxs:string
The type of parameter. The type of parameter.  For repository parameters in the current version of UFT, the parameter Type is always Repository.
RegularExpression optionalxs:boolean
Indicates whether the parameter value should be evaluated as a regular expression.
Used By
Attributes
Name Type Use Default Fixed Description
Name xs:string optional     The property name. The property name. The Name must be a supported property for the test object class. 
For a list of supported properties for a particular test object class, refer to the relevant object in the Unified Functional Testing Object Model Reference Help.
Type xs:string optional     The property value type. Possible values: STRING, NUMBER, BOOL
Hidden xs:boolean optional 0   Indicates whether the property is displayed in the object repository interface.
ReadOnly xs:boolean optional 0   Indicates whether the property value can be edited.
Remarks
The value of a property can be a fixed value or it can be parameterized.  Therefore, a Property element can have either a Parameter child element or a Value child element.  It cannot have both.
Source
<xs:complexType name="PropertyType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>A complex type that enables you to define all of the information for an identification property.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:choice>
      <xs:element name="Value" type="tns:ValueType">
        <xs:annotation>
          <xs:documentation>The value of the property for properties set to a constant value.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Parameter" type="tns:ParameterType">
        <xs:annotation>
          <xs:documentation>The name of the parameter for parameterized properties.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:choice>
  </xs:sequence>
  <xs:attribute name="Name" type="xs:string">
    <xs:annotation>
      <xs:documentation>The property name. </xs:documentation>
    </xs:annotation>
  </xs:attribute>
  <xs:attribute name="Type" type="xs:string" use="optional">
    <xs:annotation>
      <xs:documentation>The property value type. Possible values: STRING, NUMBER, BOOL</xs:documentation>
    </xs:annotation>
  </xs:attribute>
  <xs:attribute name="Hidden" type="xs:boolean" use="optional" default="0">
    <xs:annotation>
      <xs:documentation>Indicates whether the property is displayed in the object repository interface.</xs:documentation>
    </xs:annotation>
  </xs:attribute>
  <xs:attribute name="ReadOnly" type="xs:boolean" use="optional" default="0">
    <xs:annotation>
      <xs:documentation>Indicates whether the property value can be edited.</xs:documentation>
    </xs:annotation>
  </xs:attribute>
</xs:complexType>
See Also