> For the complete documentation index, see [llms.txt](https://docs.aqua-cloud.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aqua-cloud.io/documentation/aqua-intelligence/create-test-cases-in-seconds-with-aqua-intelligence/generate-test-case-based-on-a-file.md).

# Generate test case based on a file

Effortlessly generate precise test cases from your files using aqua Intelligence. Streamline QA workflow with intelligent automation tailored for your project's needs.

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%2FMGKJ6JelmnPhNomO5MSE%2Fimage.png?alt=media&amp;token=cbba29c7-ece4-4e6f-9d47-bd558bdc1409" 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&amp;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&amp;token=31e67f08-bbf1-45bf-9e13-f4583b53c631" alt=""><figcaption></figcaption></figure>

Once the file is uploaded, you can optionally add a description to give aqua Intelligence 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&amp;token=234be33c-cddc-416d-8502-53e05a7ac504" alt=""><figcaption></figcaption></figure>

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

The aqua Intelligence 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.aqua-cloud.io/documentation/aqua-intelligence/create-test-cases-in-seconds-with-aqua-intelligence/generate-test-case-based-on-a-file.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
