> 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="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FqVSAaQUglINaDV2kLer7%2Fimage.png?alt=media&amp;token=b5e1f39a-fdb5-4ca5-9b93-ef9db0c4cfc9" 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="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FdZqGHuMCOYOmHlPtwmJJ%2Fimage.png?alt=media&amp;token=af4d2f7e-f69d-4db2-9420-af44038c5d2e" 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="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FlRkRKpPTotwkWq4TVBgi%2Fimage.png?alt=media&amp;token=7ce9e23b-72ca-4836-bb01-7472f516147d" 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="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2Fm3f2vEbFkrG7JiKVu6KN%2Fimage.png?alt=media&amp;token=f434a5bb-c48b-4825-9327-843e5270fd2e" 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.
