> 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/web-test-case-creation.md). Agents can also search and read this documentation through its [MCP server](https://docs.walnutai.ai/~gitbook/mcp).

# Web Test Case Creation

Creating a Web test case in WalnutAI allows you to automate web application workflows using **AI Recording**. Simply describe the required flow in a natural-language prompt, and WalnutAI generates the corresponding automated test steps.

**Steps to Generate a Web 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 **Web** as the test type.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FBld04OcvNkOcwb0r39Mv%2FScreenshot%202026-09-25%20at%201.10.03%E2%80%AFPM.png?alt=media&amp;token=9b69d8d7-7813-49d4-b386-90980dfac92a" alt=""><figcaption></figcaption></figure>

* Click the **Settings** icon in the bottom bar and configure the required [recording settings. ](#user-content-fn-1)[^1]

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FiUQTYNWyFU1yON9nQuwZ%2FScreenshot%202026-09-25%20at%201.11.56%E2%80%AFPM.png?alt=media&amp;token=e87e1d6b-8f67-4f21-804e-34c69e794b3e" alt=""><figcaption></figcaption></figure>

* Enter the application URL and click **Connect**. Once connected, the application opens in the **Live Screen.**

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FOo834Yo49NZbHvcluLAZ%2FScreenshot%202026-09-25%20at%201.15.46%E2%80%AFPM.png?alt=media&amp;token=8a2ce4ed-b31c-418d-92c5-8783aa00ab28" alt=""><figcaption></figcaption></figure>

* Describe the required workflow in the chat panel. For example: *Log in to the application with valid credentials and log out.*&#x20;

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FeEHYzcbmSwOdNvRutrnr%2FScreenshot%202026-09-25%20at%201.18.09%E2%80%AFPM.png?alt=media&amp;token=6d399a8d-3e0b-4340-adda-b3daf986571c" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Use the **+** icon to add existing **test cases or custom methods** to the recording session. For more information, refer to [**Insert Test Cases and Custom Methods**.](https://docs.walnutai.ai/core-features/intelligence-hub/generate-test-cases/smart-recording/ai-recording/insert-test-cases-and-custom-methods.md)
{% endhint %}

* Click **Send**. The AI agent processes the instructions, performs the required actions, 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%2FaCCFW4KuAUk0Q7Ej6DUJ%2FScreenshot%202026-09-25%20at%201.18.54%E2%80%AFPM.png?alt=media&amp;token=407a6349-be32-4b82-b8ef-e04913c3c1b0" 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)

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FbLpz3V9jwlat9a1N1f8v%2FScreenshot%202026-09-25%20at%201.19.58%E2%80%AFPM.png?alt=media&amp;token=87907dbc-7a57-421c-a591-1ee910bf77f8" alt=""><figcaption></figcaption></figure>

{% 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%2FpHmjBxjl7euGXdfa4EHO%2FScreenshot%202026-09-25%20at%201.20.29%E2%80%AFPM.png?alt=media&amp;token=04c7961c-7fc2-49aa-88b6-4001f980cd8c" alt=""><figcaption></figcaption></figure>

* Click the **chevron** next to the test case to expand it and view an overview of all the test steps.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FaedeDXxUoHSPGaqOuXcL%2FScreenshot%202026-08-10%20at%205.44.44%E2%80%AFPM.png?alt=media&amp;token=6bbe3d55-45bd-4fd2-8b4a-6c1a29a553cb" alt=""><figcaption></figcaption></figure>

[^1]: * **Live Screen:** Enable this to view the application interactions in real time while the AI agent performs the requested actions.
    * **Reuse Session:** Enable this to reuse an existing application session, including previously captured cookies, to avoid repeating authentication.
