# 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FQAws1UNnstKM2RaEJ1sT%2Fimage.png?alt=media&#x26;token=d6d6b35d-a919-4063-9ae8-baac18b44104" 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FkkfcbVD9zrWuUJSsyTuM%2Fimage.png?alt=media&#x26;token=0f9b710e-eba7-41aa-9f47-9567b24c09f4" 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FzMmeV4ppZg3it8k1Y6ha%2Fimage.png?alt=media&#x26;token=30912ea9-4e01-4f5c-8f9a-2f40a048ffdb" 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2F8PutwGJMdLNU3mv4YbCP%2Fimage.png?alt=media&#x26;token=d1c4f39f-f423-4e90-ad24-fe04f653a300" 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FHGNUH4A32u5g1l4ydH0H%2Fimage.png?alt=media&#x26;token=d3180aa1-5ef8-4583-a2ba-5c1f9ed88f25" 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 %}
