> 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.walnutai.ai/test-and-quality-management/test-management/nested-test-case.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
