> 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-cases-in-bdd-format.md).

# Generate test cases in BDD format

You can now generate test cases in Gherkin format directly within the app. This eliminates the need to manually write or convert test cases into Gherkin format and saving a lot of time.

When creating a test case, you can choose between two styles:

* **Classic (default)**
* **Gherkin**

To generate a test case in Gherkin format, first select creation of a test with AI Copilot.

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

* Once the modal opens, select based on what you want to generate a test case and then choose the **Gherkin** style from the available options.
* **Single or Multiple test cases**:
  * If **Single** is selected, you can specify a path (e.g., negative/positive).
  * If **Multiple** is selected, you can generate multiple test cases simultaneously. The behavior is consistent with the classic test case creation process.

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

Once generation begins, you’ll see all the test cases being created in real-time.

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

When aqua Intelligence completes the process, you can preview each test case and decide whether to keep it, regenerate it, or discard it.

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

Need to tweak something? Simply provide additional instructions, and aqua Intelligence will regenerate the test case based on your updated input.

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

In the preview mode you can't edit a test case, but later you can modify it on the test case page

<figure><img src="/files/9xmBg2Uz7fbJoP52SN7W" alt=""><figcaption></figcaption></figure>

To remove a test case from the list, just uncheck the selection icon.

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

Once you are done with a review, simple click on the 'Save' button.

All test cases will be added to your project.


---

# 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-cases-in-bdd-format.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.
