Run\Methods\Method Element

Description

The information for supporting a specific test object method.

Important Information

If no specific function is assigned to support a given test object method, UFT calls a function with the same name as the test object method to run the step.

Attributes

Name Type Use Default Description
file_name string optional   The file system path to the file containing the function. If no path is specified, the default file name defined in the Control\Settings element is used.

You can specify a path relative to the <UFT installation folder>\dat\Extensibility\Web\Toolkits\<Toolkit name> folder.

function string optional   The name of the implementation function.
name string required   The name of the test object method.
type string optional javascript The type of implementation function.

Used By

Source

<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Method" minOccurs="0" maxOccurs="unbounded">
    <xs:annotation>
        <xs:documentation>The information for supporting a specific test object method.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:attribute name="name" type="xs:string" use="required">
            <xs:annotation>
                <xs:documentation>The name of the test object method.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attributeGroup ref="ImpFuncAttrs" />
    </xs:complexType>
</xs:element>