Table of Contents

Interface IDesktopEnvironment

Represents an environment on which test operations are performed.

Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public interface IDesktopEnvironment : IEnvironment

Properties

Keyboard

Returns a IKeyboardDevice object that enables device replay on the environment.

Declaration
IKeyboardDevice Keyboard { get; }
Property Value
Type Description
IKeyboardDevice

Mouse

Returns a IMouseDevice object that enables device replay on the environment.

Declaration
IMouseDevice Mouse { get; }
Property Value
Type Description
IMouseDevice

Methods

Describe<T>(IDescription)

Describes a top level Window or Dialog test object.

Declaration
T Describe<T>(IDescription description) where T : class, ITopLevelObject
Parameters
Type Name Description
IDescription description

The description of the top level Window or Dialog test object.

Returns
Type Description
T
Type Parameters
Name Description
T

The type of test object. Only an IWindow or an IDialog can be the top-level test object.

LaunchAut(string)

Launches an AUT using the file name. To use this method, you must create an application allowlist file. For details, see Add SDK code to your tests in the Help Center.

Declaration
IAut LaunchAut(string fileName)
Parameters
Type Name Description
string fileName

The name of the AUT file to launch. Specify only the name, or the full or relative path to the file.

Returns
Type Description
IAut

launched AUT

LaunchAut(string, params string[])

Launches an AUT using the file name and a list of arguments. To use this method, you must create an application allowlist file. For details, see Add SDK code to your tests in the Help Center.

Declaration
IAut LaunchAut(string fileName, params string[] args)
Parameters
Type Name Description
string fileName

The name of the AUT file to launch. Specify only the name, or the full or relative path to the file.

string[] args

A list of arguments.

Returns
Type Description
IAut

launched AUT

LaunchAut(string, string[], string)

Launches an AUT using the file name, a list of arguments, and a working directory. To use this method, you must create an application whitelist file. For details, see Add SDK code to your tests in the Help Center.

Declaration
IAut LaunchAut(string fileName, string[] args, string workingDirectory)
Parameters
Type Name Description
string fileName

The name of the AUT file to launch. Specify only the name, or the full or relative path to the file.

string[] args

A list of arguments.

string workingDirectory

A working directory.

Returns
Type Description
IAut

launched AUT

Release()

Releases the environment, if it was locked as a grid node.

Declaration
void Release()