ApplicationUnderTest.Launch Method (String, String)

Starts the application by using specified parameters.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Shared Function Launch ( _
    fileName As String, _
    alternateFileName As String _
) As ApplicationUnderTest
public static ApplicationUnderTest Launch(
    string fileName,
    string alternateFileName
)
public:
static ApplicationUnderTest^ Launch(
    String^ fileName, 
    String^ alternateFileName
)
static member Launch : 
        fileName:string * 
        alternateFileName:string -> ApplicationUnderTest
public static function Launch(
    fileName : String, 
    alternateFileName : String
) : ApplicationUnderTest

Parameters

  • fileName
    Type: String

    The file name of the application to start.

  • alternateFileName
    Type: String

    The alternate file name that has environment variables.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
The application that was started.

.NET Framework Security

See Also

Reference

ApplicationUnderTest Class

Launch Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace