> 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="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FJKKk7r5Kkd0CriwH5DL4%2Fimage.png?alt=media&amp;token=2cf431b3-ef87-4bb0-a1f4-4876fdf0fea7" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FvW6arfuxNFYIuWqNubDC%2Fimage.png?alt=media&amp;token=393241bf-50c4-4f88-be70-91d96815897d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FGnWVRdI8XBXuFo0gxkKV%2Fimage.png?alt=media&amp;token=bcea8bb0-84ca-4efb-94d9-b621aba13fbd" 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="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2F3lOXQZiWOcWhdEPvhhrD%2Fimage.png?alt=media&amp;token=15cd99a0-b044-4677-9784-53611d2e9d37" alt=""><figcaption></figcaption></figure>
