# 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/ACyaBC6XF1c8Yzi4txqk" 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 AI Copilot 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 AI Copilot 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: 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-cases-in-bdd-format.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.
