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