Table of Contents

Class Desktop

A top-level Window or Dialog test object. When working in a grid configuration, use IDesktopEnvironment instead. IDesktopEnvironment represents the desktop of a specific environment or grid node. When working in a grid configuration, use Get(EnvironmentDescription) in order to get the IDesktopEnvironment object instead. This object represents the desktop of a specific environment or grid node.

Inheritance
Desktop
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class Desktop

Constructors

Desktop()

Declaration
public Desktop()

Methods

Describe<T>(IDescription)

Describes a top level Window or Dialog test object.

Declaration
public static 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
public static 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
public static 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 allowlist file. For details, see Add SDK code to your tests in the Help Center.

Declaration
public static 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