Interface IDesktopEnvironment
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
Mouse
Returns a IMouseDevice object that enables device replay on the environment.
IMouseDevice Mouse { get; }
Property Value
Methods
Describe<T>(IDescription)
Describes a top level Window or Dialog test object.
T Describe<T>(IDescription description) where T : class, ITopLevelObject
Parameters
descriptionIDescriptionThe description of the top level Window or Dialog test object.
Returns
- T
Type Parameters
TThe 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
fileNamestringThe 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
fileNamestringThe name of the AUT file to launch. Specify only the name, or the full or relative path to the file.
argsstring[]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
fileNamestringThe name of the AUT file to launch. Specify only the name, or the full or relative path to the file.
argsstring[]A list of arguments.
workingDirectorystringA working directory.
Returns
- IAut
launched AUT
Release()
Releases the environment, if it was locked as a grid node.
void Release()