> 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/test-cases/manage-test-data-of-a-test-case.md).

# Manage Test Data of a Test Case

**Test Data** refers to the set of input values and parameters used to execute a test case and validate system behaviour. Proper test data ensures accurate, consistent, and repeatable test execution.

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

Test Data Management in WalnutAI consists of [**Test Data**](#user-content-fn-1)[^1] and [**Nested Test Data**.](#user-content-fn-2)[^2]

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

* The Test Data section is specific to an individual test case, allowing you to define the exact values as per the test case which will be used during execution.&#x20;

  * To add a dataset in a test case open the test case > Test Data and click '**Add Dataset'** and enter parameter values (such as URL, Email, or Password). All fields are editable and can be customized based on your test requirements.
  * Use the '**Import'** option to upload external datasets if they are already available.
  * Click '**Export'** to download the existing datasets for external use.
  * After adding or updating data, click '**Save All'** to ensure the datasets are stored and ready for execution.

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

{% hint style="info" %}
Test cases created using **Smart Recording from the Intelligence Hub** will have parameters automatically identified and mapped.
{% endhint %}

* **Nested Test Data** section applies to nested test cases (reusable test cases executed within other test cases).

  * **Left Panel:** Displays the nested test case structure (branches).
  * **Right Panel:** Shows parameter values and datasets for the selected branch.

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

{% hint style="info" %}
If multiple datasets exist, select the required ones using the checkbox to make it as Default which will be used for execution; otherwise, the system defaults to the first dataset. When multiple datasets are selected, the platform performs **Iterative Execution**, running the test once per selected dataset.
{% endhint %}

[^1]: Test Data is the input you give to a test case to check if the system works correctly.

[^2]: Nested Test Data is the input used for a nested (reusable) test case that runs inside another test case.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.walnutai.ai/test-and-quality-management/test-management/test-cases/manage-test-data-of-a-test-case.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
