Open topic with navigation

# LaunchAut Method (IDesktopEnvironment)

Launches an AUT using the file name. To use this method, you must create an application whitelist file. For details, see Add SDK code to your tests in the LeanFT Help Center.

Note: Supported in LeanFT versions 14.51 and later.

In this topic:

## LaunchAut Method (String)

Launches an AUT using the file name. To use this method, you must create an application whitelist file. For details, see Add SDK code to your tests in the LeanFT Help Center.

#### C# Syntax

     public IAut LaunchAut(
       string fileName
    )

#### Parameters

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

#### Return Value

Launched AUT

## LaunchAut Method (String,String[])

Launches an AUT using the file name and a list of arguments. To use this method, you must create an application whitelist file. For details, see Add SDK code to your tests in the LeanFT Help Center.

#### C# Syntax

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

#### Parameters

fileName
  The name of the AUT file to launch. Specify only the name, or the full or relative path to the file.
args
  A list of arguments.

#### Return Value

Launched AUT

## LaunchAut Method (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 LeanFT Help Center.

#### C# Syntax

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

#### Parameters

fileName
  The name of the AUT file to launch. Specify only the name, or the full or relative path to the file.
args
  A list of arguments.
workingDirectory
  A working directory.

#### Return Value

Launched AUT