> For the complete documentation index, see [llms.txt](https://docs.walnutai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.walnutai.ai/core-features/intelligence-hub/generate-test-cases/smart-recording/ai-recording/desktop-test-case-creation.md). Agents can also search and read this documentation through its [MCP server](https://docs.walnutai.ai/~gitbook/mcp).

# Desktop Test Case Creation

Creating a desktop test case in WalnutAI allows you to automate desktop application workflows using **AI Recording**. Instead of manually identifying and configuring UI objects, WalnutAI intelligently captures the actions performed on the desktop application and converts them into automated test steps.

#### Steps to Generate a Desktop Test Case

* Navigate to the **Intelligence Hub**, select **Smart Recording**, and ensure the **Agent** is turned on.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FKv6HboeYjnA9aETgPMoR%2FScreenshot%202026-09-29%20at%206.17.43%E2%80%AFPM.png?alt=media&amp;token=4b6d30b7-b320-4a1c-8b3c-6745023a7148" alt=""><figcaption></figcaption></figure>

* Click the **AI Recording** button in the **bottom bar** and select the suitable **AI Recording** mode.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FcL4wZ6u26jMGNAkGovvY%2FScreenshot%202026-09-25%20at%201.09.09%E2%80%AFPM.png?alt=media&amp;token=dee7f980-ca4e-4a5a-b682-6b5a54c20fa2" alt=""><figcaption></figcaption></figure>

* Click the **Web** button in the bottom bar and select **Desktop** as the test type.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FIMvaJ4iMth3YPqGz302l%2FScreenshot%202026-10-09%20at%2011.48.00%E2%80%AFAM.png?alt=media&amp;token=9b43e7f7-f2b7-460e-bdc8-1aec141a89ad" alt=""><figcaption></figcaption></figure>

* In the **Application Path** field, select the desktop application you want to automate. You can either:
  * Select an application from the **Supported Apps** dropdown.
  * Manually enter the application's executable path.&#x20;

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FHdfWWkQJTNhpLPQDa0nI%2FScreenshot%202026-10-09%20at%2011.49.23%E2%80%AFAM.png?alt=media&amp;token=84cbcabf-4411-40fd-b197-fde8be48d262" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To find the path, open **Task Manager**, locate the required application, right-click it, and select **Properties**. Under the **Security** tab, copy the application path and paste it into the **Application Path** field in WalnutAI.
{% endhint %}

* Click the **Settings** icon and then click **Connect** to launch the selected desktop application.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FxQOqnJIQ46JYRRJcT693%2FScreenshot%202026-10-09%20at%2011.53.58%E2%80%AFAM.png?alt=media&amp;token=43176819-459e-448c-8b86-ed892637d7ac" alt=""><figcaption></figcaption></figure>

* Describe the workflow you want to automate in the **chat panel**. For example: "*Click on the last opened database and create a current account named QA Current with an initial balance of 10,000. Verify that the account is created successfully, then delete the newly created account."*

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FIY3qRAoA512et6D1cDrt%2FScreenshot%202026-10-09%20at%2012.18.39%E2%80%AFPM.png?alt=media&amp;token=7351ee53-9077-4a08-91db-fe38d9faf06d" alt=""><figcaption></figcaption></figure>

* Click **Send**. The AI agent processes your instructions, performs the required actions on the desktop application, and generates the corresponding test steps.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2F6U1X4PoKQwcRDdWpAnsP%2FScreenshot%202026-10-09%20at%2012.12.18%E2%80%AFPM.png?alt=media&amp;token=3da19226-2aa6-4665-a6e8-dcf08cba8f45" alt=""><figcaption></figcaption></figure>

* Once the test case is generated, review and customize the steps as required. You can **edit objects, skip a step, enable Continue on Failure, add a new step, add a nested test case, cancel a step, or**  [**debug the test case**.](https://docs.walnutai.ai/core-features/intelligence-hub/generate-test-cases/smart-recording/debug-a-test-case-in-smart-recording.md)

{% hint style="info" %}
For detailed information on modifying individual test steps, refer to  [**Manage a Test Step**.](https://docs.walnutai.ai/test-and-quality-management/test-management/test-cases/manage-test-step.md)
{% endhint %}

* On the Parameters tab, click **Chat with AI** to generate test data for the generated test case.
* You can execute test cases and heal failed test steps directly through the chat panel.
* Once you have completed the required modifications, click **Disconnect** to end the session and then click **Save** to save the generated test case.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2F8bDXgX9AZZflmguToaxb%2FScreenshot%202026-10-09%20at%2012.16.12%E2%80%AFPM.png?alt=media&amp;token=b7aef7a6-7465-4777-ab7b-0c1b7571b4f6" alt=""><figcaption></figcaption></figure>
