> 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/debug-a-test-case-in-smart-recording.md).

# Debug a Test Case in Smart Recording

**What is Debugging a Test Case?**

In **Smart Recording**, the **Debug** feature allows you to validate a test case before saving it. Once the AI generates the test case based on the provided prompt and the required steps are recorded, you can use Debug to execute the **entire test case** and verify that the recorded steps, actions, and parameters work as expected.

During debugging, the recorded **steps and parameters remain visible**. The live screen in the current window is disabled, and the test case is launched in a **separate browser window** for execution.

**Steps to Debug a Test Case**

* Record the required test steps using either **AI Recording** or **Manual Recording** in Smart Recording.&#x20;

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FoomdnfvaC4ygXfnIvqxL%2FScreenshot%202026-08-10%20at%203.10.57%E2%80%AFPM.png?alt=media&amp;token=47328c1f-c985-4435-afd8-cdefec466d3a" alt=""><figcaption></figcaption></figure>

* Once the test case is generated. Click the **Debug** button available in the **top-left corner** of the screen. Set breakpoints at the required steps to pause the execution and inspect the test flow.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2F0SRvxuSddlKjdfdiCTop%2FScreenshot%202026-08-10%20at%203.17.06%E2%80%AFPM.png?alt=media&amp;token=32a71136-904e-4f33-9046-31b3bfa088f6" alt=""><figcaption></figcaption></figure>

* While debugging, the test case opens in a **separate browser window**. The **steps and parameters remain visible**, while the **Chat panel and Live Screen are closed**.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FPeGxBoJjagUl4LwGJKY4%2FScreenshot%202026-08-10%20at%203.12.54%E2%80%AFPM.png?alt=media&amp;token=dde4f303-6833-4672-8520-30bb190951b3" alt=""><figcaption></figcaption></figure>

* You can make changes to the test case while debugging. This includes modifying **steps, actions, parameters, test data, and other required configurations**. These changes can be made to correct or refine the test flow before saving it

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

* Click a **parameter** and select **Write with AI** to generate test data for the selected parameter. Provide the required context or instructions, and WalnutAI will generate the corresponding test data for use during test execution.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FfxmIsQ1E05h02xPI1qz6%2FScreenshot%202026-08-12%20at%204.25.11%E2%80%AFPM.png?alt=media&amp;token=ac279bc6-27a7-4d5e-8641-e77005b40786" alt=""><figcaption></figcaption></figure>

* Once the test case has been successfully validated and any required corrections have been made, **save the test case** for future execution.
