Unified Functional Testing Automation

LoadFromFile Method

Description

Loads the specified environment variable file. The environment variable file must be an XML file using the following syntax:

<Environment>

    <Variable>

        <Name>This is the first variable's name</Name>

        <Value>This is the first variable's value</Value>

    </Variable>

</Environment>

For more information about environment variable files, see the Unified Functional Testing User Guide.

Syntax

Environment.LoadFromFile(Path)

Argument

Type

Description

Path
String
The path of the environment file to load.

Example

The following example loads the MyVariables.xml file.

Environment.LoadFromFile("C:\UFT\Files\MyVariables.xml")