> 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/aqua-intelligence-create-test-cases-out-of-requirements-or-based-on-context-in-seconds.md).

# aqua Intelligence - create test cases out of requirements or based on context in seconds

Instantly generate test cases from requirements or context with aqua Intelligence. Preview, refine, and ensure coverage in aqua - save hours and streamline your QA workflow with smart automation.

aqua Intelligence is an AI-powered tool that can save you hours of work by helping you create test cases within a few seconds based on a requiremet or context, or both. It is capable of creating test cases even based on minimal information.

aqua Intelligence is especially useful when:

* A QA specialist wants to quickly cover a requirement that does not have any tests.
* The requirement is quite complex and it takes a lot of time to create high-quality test cases.
* A QA specialist wants to verify that all aspects of the requirement are covered by test cases

You can start using aqua Intelligence from multiple places in aqua.

**Test case based on a requirement**

Go to aqua and open an existing requirement or create a new one. Once you finish editing it, save your item and click on the aqua Intelligence 'Test' button.

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2F1DZYsbr7s5n59o0eHb2l%2FScreenshot%202023-09-21%20at%2017.10.47.png?alt=media&amp;token=c2865370-7b7b-44db-b59c-0d5dc9e2dd5d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FWjOhpZmS93mJxyCJVcAf%2Fimage.png?alt=media&amp;token=797acb23-665f-4ce7-82d9-862381379d2e" alt=""><figcaption></figcaption></figure>

Once the test case is generated, you can preview and check if the results are good before applying it. You can regenerate the test case as many times as you wish until the result meets your expectations.

You can also provide some context to aqua Intelligence under the instructions, so it can better understand your project or specifics of the requirement and generate you a test case taking into account added information. This includes, for instance, a glossary of words that are unique for your project or some important information about the product or device that is under the test.

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FzBzRStfSBSt5EoUP8YES%2Fimage.png?alt=media&amp;token=39a19864-7531-40be-8f94-a43f5b5d33bc" alt=""><figcaption></figcaption></figure>

Here’s another neat trick. Once aqua Intelligence generates a test based on requirement, it is immediately added as a dependency to the requirement. It will also be marked as covered.

<figure><img src="https://lh6.googleusercontent.com/HpMlijoAIJidw8zPPFLTYGDt5SSeZf8Kwgl0vKfO9ALYkdBKpZIu-yoeThnQgB9nxPb2CpkTittVn9y1A3keA0dnlQTknUHVwOkdi2tGivS6d6r4PPIND4o1qL4a61ngKtSV2p4Zi_ksDAfvZng-AZE" alt=""><figcaption></figcaption></figure>

**Generating a test case from the test case page**

You can generate a test case from the test case page itself too. The minimum required to create a test case is the title, but the more information you contribute, the more comprehensive test case will be generated.

Once you have at least a title, click on the ‘Test’ button at the ribbon of a details tab or from a test step designer. aqua Intelligence will immediately start generating your test case.<br>

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FsGbrzVi6v7ILeqRPQaHF%2Fimage.png?alt=media&amp;token=b204a492-fab0-40dc-8dad-10b79ba20879" alt=""><figcaption></figcaption></figure>

You can use this functionality to pre-create a template which you can modify later or expand once you have a detailed requirement of some nested test cases added.

For the best results, we recommend creating a test case based on a requirement and provide some context.

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FXOYnUlTf84mKwgFz7LRv%2Fimage.png?alt=media&amp;token=e98abd7b-68d4-4ccc-adbc-74b60a5e469d" alt=""><figcaption></figcaption></figure>

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

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


---

# 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/aqua-intelligence-create-test-cases-out-of-requirements-or-based-on-context-in-seconds.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.
