# Generate test data with AI Copilot

To generate the first set, open a test case item and navigate to the ‘Data’ tab. Select the option ‘Generate test data with AI’.

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

<br>

Once the modal appears, select the number of sets you’d like to generate and choose the context type for the data generation:

* **Custom**: Provide a custom instruction.
* **Requirement**: Select a requirement which this test case covers.
* **Test Case**: Use the completed test case as a basis for data generation.

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

After selecting your preferred option and entering the necessary details, click on the "Generate" button. The AI Copilot will process your request and generate the specified test data sets.

<figure><img src="/files/9OKvFt4E3IWYeR7euwPK" alt=""><figcaption></figcaption></figure>

Once the data is generated, review it to ensure it meets your requirements and ajust it if needed.

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

Then, go back to the test case steps and add the variables to validate your application's functionality during testing.

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

By following these steps, you can efficiently generate high-quality test data tailored to your specific testing needs, enhancing your QA processes and ensuring comprehensive coverage of different cases.

{% hint style="info" %}
**Important Reminder:**

Please be aware that AI Copilot can occasionally make mistakes or provide inaccurate output. We strongly recommend verifying any crucial information for accuracy.
{% endhint %}


---

# Agent Instructions: 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.aqua-cloud.io/documentation/ai-copilot/generate-test-data-with-ai-copilot.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.
