Table of Contents

Interface IDesktopEnvironment

Namespace
HP.LFT.SDK
Assembly
HP.LFT.SDK.dll

Represents an environment on which test operations are performed.

public interface IDesktopEnvironment : IEnvironment

Properties

Keyboard

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

IKeyboardDevice Keyboard { get; }

Property Value

IKeyboardDevice

Mouse

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

IMouseDevice Mouse { get; }

Property Value

IMouseDevice

Methods

Describe<T>(IDescription)

Describes a top level Window or Dialog test object.

T Describe<T>(IDescription description) where T : class, ITopLevelObject

Parameters

description IDescription

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

Returns

T

Type Parameters

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.

IAut LaunchAut(string fileName)

Parameters

fileName string

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

Returns

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.

IAut LaunchAut(string fileName, params string[] args)

Parameters

fileName string

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

args string[]

A list of arguments.

Returns

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.

IAut LaunchAut(string fileName, string[] args, string workingDirectory)

Parameters

fileName string

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

args string[]

A list of arguments.

workingDirectory string

A working directory.

Returns

IAut

launched AUT

Release()

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

void Release()