IDesktopEnvironment Interface

Represents an environment on which UFT Developer performs test operations.

C# Syntax
                        
public interface IDesktopEnvironment : IEnvironment
Public Properties
 NameDescription
Public Property

Keyboard

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

C# Syntax

                        public IKeyboardDevice Keyboard {get;}
Public PropertyMouse

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

C# Syntax

                        public IMouseDevice Mouse {get;}
Public Methods
 NameDescription
Public MethodDescribe<T>

Describes a top level Window or Dialog test object.  

C# Syntax

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

Parameters

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

Type Parameters

T
The type of test object. Only an IWindow or an IDialog can be the top-level test object.
Public MethodLaunchAutOverloaded. 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 UFT Developer Help Center.  
Public MethodRelease

Supported on UFT Developer versions 15.0.1 and later

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

C# Syntax

                            void Release()
Top