Table of Contents

Class Desktop

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

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.

public class Desktop
Inheritance
Desktop
Inherited Members

Constructors

Desktop()

public Desktop()

Methods

Describe<T>(IDescription)

Describes a top level Window or Dialog test object.

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

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

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

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