> 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/test-and-quality-management/test-management/nested-test-case.md).

# Nested Test Case

**Nested Test Cases** are reusable test cases that are called and executed within another parent test case as part of its workflow.

They allow you to embed a predefined set of steps (such as login, setup, or validation flows) that are used frquently inside a larger test scenario, enabling modular, reusable, and maintainable test design.

* **Nested Test Case:** To add a nested test case, hover over the desired test step and click the branching icon.

<figure><img src="/files/fQ6ZOwdVsxAnE0Lh9HqP" alt=""><figcaption></figcaption></figure>

* Choose **'Nested Test Case'** from the available options.

<figure><img src="/files/dVTF2dkaduWiSrYeoMF4" alt=""><figcaption></figcaption></figure>

* Select the required test case to call, then click **'Confirm Selection'** to proceed.

<figure><img src="/files/FhK4YxJVgiQTBR1RhWyU" alt=""><figcaption></figcaption></figure>

* The **Branches View** is also available within the **Nested Test Data** section to view and manage the associated branches and their datasets.

<figure><img src="/files/A6AJ04YEk4I7WM2Yatiq" alt=""><figcaption></figcaption></figure>
