# Desktop Tests in Test Studio

Test Studio recording feature supports various desktop applications. To initiate recording session against specific application, you need to define which app to use in the desktop test.

This article guides you through the desktop test configuration process.

* [Configure Desktop Test to Record Specific Application](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/desktop-test#configure-desktop-test-to-record-specific-application)
* [Choose the Desktop Application to Automate](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/desktop-test#choose-the-desktop-application-to-automate)
* [Finish Desktop Test Configuration](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/desktop-test#finish-desktop-test-configuration)

> **Tip**
> <br>
> <br>
> Check <a href="https://www.telerik.com/videos/teststudio/desktop-testing-video-tutorial" target="_blank">this video tutorial for recording an end-to-end Desktop test scenario</a>.

## Configure Desktop Test to Record Specific Application

The **configuration of the desktop test requires a desktop app to be specified** and, thus, used for recording and execution. Open a Desktop test in Test Studio and find the **Configure** button in the **Test** tools ribbon. Click the **Configure** button to open the **Desktop App Config Wizard**.

![Configure button](https://www.telerik.com/teststudio/documentation/assets/3614b2884c1f626adf4d93d9bd3143f2/fig1.png)

> **Tip**
> <br>
> <br>
> If you try to initiate a recording session in a desktop test, before this is configured, the **Desktop Config Wizard** pops up and lets you choose the application to automate.

## Choose the Desktop Application to Automate

Test Studio provides different options to define the application to automate:

* [Specify an executable file](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/desktop-test#configure-application-path-in-desktop-test) for this test;
* [Use a default path](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/desktop-test#use-default-desktop-application-path) to the executable file set on project level;
* [Define startup arguments and working directory](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/desktop-test#startup-arguments-and-working-folder-for-desktop-application)
* [Specify an Application User Model ID](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/desktop-test#configure-application-user-model-id);
* [Choose to not launch an application](https://www.telerik.com/teststudio/documentation/automated-tests/desktop-testing/desktop-test#do-not-launch-desktop-application)

![Config Desktop app wizard](https://www.telerik.com/teststudio/documentation/assets/76de555f4c50a820e1585bc79d586a0a/fig2.png)

## Configure Application Path in Desktop Test

Click the **Browse** button to open File Explorer and browse to the folder with the executable file and select it.

![Specify path to Desktop app](https://www.telerik.com/teststudio/documentation/assets/e5f0f5bea3e9048dffd03e76390f20e3/fig3.png)

The **Desktop Application Path** field supports using environment tokens (such as `%Program Files%\MyApp\App.exe`). When using environment tokens, the **Full Path** field displays the full path to the executable file.

![Full application path](https://www.telerik.com/teststudio/documentation/assets/cfff340bce9c0bbe62441975b7c469a5/fig4.png)

## Use Default Desktop Application Path

The automation process requires multiple tests to be created for a single application. In such case configuring each created test will be a tedious task. Thus Test Studio allows you to **set a default desktop app path on project level** and use this for all desktop tests.

The option is available in <a href="/features/project-settings/general" target="_blank">Project Settings -> General</a> and once a **Default Desktop App is set** each new Desktop test in the project is configured to use it.

![Use default path](https://www.telerik.com/teststudio/documentation/assets/6790604e62f290b17517b429bb2d34ce/fig5.png)

## Startup Arguments and Working Folder for Desktop Application

The configuration of a desktop application lets you set startup **Arguments** and a **Working folder** if these are required for the proper functioning of the tested app.

![Arguments and Working folder](https://www.telerik.com/teststudio/documentation/assets/5e25b57888df5cda4b6feb5d52b7651f/fig5a.png)

## Configure Application User Model ID

Modern desktop applications are not always started with an executable file. Example of such apps are all applications from the Windows store, UWP or Maui-based apps. To enable this type of automation Test Studio Desktop tests support configuring a test using the <a href="https://docs.microsoft.com/en-us/windows/win32/shell/appids" target="_blank">Application User Model ID</a>.

![Configure Application user model ID](https://www.telerik.com/teststudio/documentation/assets/a4b0d03678509e17f76a166f9832fdaa/fig6.png)

> **Tip**
> <br>
> <br>
> **Not sure what is the Applications ID for the tested app?** Follow <a href="/automated-tests/desktop-testing/desktop-app-user-model-id" target="_blank">few simple steps to find the User Model Id</a> and use it in the Test Studio desktop test configuration.

## Do Not Launch Desktop Application

This option lets you prevent the automatic start of an application on test startup. If you select it **use the steps to launch an application and connect the Test Studio process** to it:

* <a href="/features/custom-steps/desktop-common/launch-app-step" target="_blank">Launch application step</a>
* <a href="/features/custom-steps/desktop-common/connect-to-app" target="_blank">Connect to application step</a>

![Do not launch default app](https://www.telerik.com/teststudio/documentation/assets/870ca15cfbd33d1de3fba9ced2107e83/fig7.png)

> **Tip**
> <br>
> <br>
> **Initiate the recording session** using the <a href="/automated-tests/test-execution/partial-test-execution#run-to-here" target="_blank">partial test run option Run->To Here</a>.

## Finish Desktop Test Configuration

Once you choose the path to the desktop application executable file, you can **confirm the configuration** by pressing the **OK** button. Then, use the <a href="/automated-tests/recording/overview#start-a-recording-session" target="_blank">**Record** button</a> to launch the specified app in Test Studio recording mode.

> **Tip**
> <br>
> <br>
> In any case, when you need to change the applied settings, hit the **Configure** button to access the wizard again.

## See Also:

* <a href="https://www.telerik.com/videos/teststudio/desktop-testing-video-tutorial" target="_blank">Desktop Test Recording Video Tutorial</a>.
