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

NameTypeUseDefaultDescription
file_namestringoptional 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_One_installdir>\dat\Extensibility\Web\Toolkits\<Toolkit name> folder.

functionstringoptional The name of the implementation function.
namestringrequired The name of the test object method.
typestringoptionaljavascriptThe 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>