> 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

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="/files/bEATHQnW0ORvc1hSykSz" alt=""><figcaption></figcaption></figure>

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

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

Upload a file in one of the supported formats

<figure><img src="/files/1hgLCvZaRakBajVyfBRR" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/WysKNSwubtfyp5hjUyjY" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
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=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
