# Create test cases from the navigation page

When on the navigation page, click on the "+ Add new" button located at the top left of your screen.

<figure><img src="/files/6GWfYW5UvVCK6h5050c4" alt=""><figcaption></figcaption></figure>

Once you select the create ‘Test case with AI Copilot’ option, the modal will appear.

In the ‘Context’ field, provide details about the product, feature, or functionality under test. Include any special glossary terms the AI should consider.&#x20;

<figure><img src="/files/8znm8xhYShEEMDRFFIdl" alt=""><figcaption></figcaption></figure>

Alternatively, you can select a requirement which AI should cover with test cases.

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

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

{% hint style="info" %}
However, despite having provided the requirement, you can still include context as additional information. This helps the AI Copilot generate more relevant and precise test cases.
{% endhint %}

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

As soon as the requirement is selected and context provided, choose whether you want to create a single test case or multiple test cases by selecting either ‘One’ or ‘Multiple’ under ‘Number of test cases’.

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

Use the dropdown menu under ‘Max number of test steps’ to set a limit on the number of steps the test case should include. Options range from 3 to 12 steps or you can select ‘Any’ for no limit.

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

In cases when you need to create only one test case, you can choose the path (case) which test case should cover: positive or negative.&#x20;

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

When you create multiple test cases, AI Copilot will generate both: positive and negative path test cases.

As soon as all options are preselected, click the button ‘Create’. AI Copilot will analyze a linked requirement or context and start creating test case or test cases.

**Adding single test case**

When a single test case is generated, you can either regenerate it or add it if you are satisfied with the result.

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

The generated test case will be linked as a dependent item that covers your requirement.

**Adding multiple test cases**

When you set the AI Copilot to generate multiple test cases, once they are ready, you will see the number it created in the corresponding block.

You can switch between the test cases to review them before adding as coverage to your requirement

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

By default, all test cases will be linked to a requirement as soon as you click the ‘Add button’, but if you see that some of the test cases are not relevant, you can exclude them by unchecking the ‘keep’ icon.

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

Even when generating multiple test cases, upon saving, all test cases will be added as dependencies if they are generated based on the requirement.


---

# 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/ai-copilot-create-test-cases-out-of-requirements-or-based-on-context-in-seconds/create-test-cases-from-the-navigation-page.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.
