# Generate test case based on a file

In situations when you have your requirements passed to you in pdf, excel or just screenshots of the app as png, or UML diagram for the login process, now you can feed this information to AI and ask it to create a test case based on this information. <br>

Click the ‘Add test case' button on the main page

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2F3TgARL8UlKXLKhlmty1r%2Fimage.png?alt=media&#x26;token=d55601d4-9b57-4893-98bf-c5a87948ee52" alt=""><figcaption></figcaption></figure>

Then select creation of a test case based on a file.

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FyPfD53SCoIUHcGAt3dRF%2Fimage.png?alt=media&#x26;token=856ca125-c700-4e35-a852-a674eeb8617c" alt=""><figcaption></figcaption></figure>

Upload a file in one of the supported formats

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2Fd3ieQCzRSBnRiFJJUcnT%2Fimage.png?alt=media&#x26;token=31e67f08-bbf1-45bf-9e13-f4583b53c631" alt=""><figcaption></figcaption></figure>

Once the file is uploaded, you can optionally add a description to give AI Copilot some context.

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2F6W9O1m2dhcq6czR2lIpx%2Fimage.png?alt=media&#x26;token=234be33c-cddc-416d-8502-53e05a7ac504" alt=""><figcaption></figcaption></figure>

Then select the number of steps and path and click the ‘Create’ button.

The AI Copilot will start generating a test case.

Once it’s created, save it, review it further, and make any necessary modifications based on specific needs.

Have feedback? Don't hestitate to share! Email us at **<support@aqua-cloud.io>** or **<feedback@aqua-cloud.io>**


---

# 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-case-based-on-a-file.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.
