# Generate test cases with AI Copilot using test design techniques

With the latest update to **aqua AI Copilot**, you can now quickly generate a set of test cases based on proven **test design techniques** — helping you cover more ground with less manual effort.

This feature uses the data you provide (requirement, test case, file or just a promt in plan language) and applies test design logic to create high-quality, structured test cases.

### Supported test design techniques

#### <mark style="color:blue;">1.</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**Boundary value analysis**</mark>&#x20;

This technique focuses on the values at the **edges of input ranges** where errors often occur.

**How it works in aqua:**

When you provide some context with a numeric input range (e.g., min = 1, max = 100), once you select this test design technique, the AI can generate test cases that include:

* The **minimum** and **maximum** values
* The **just above and below** boundary values (e.g., 0, 1, 2, 99, 100, 101)
* Any invalid or out-of-range values (optional)

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

**Ideal for:**

* Numeric input fields
* Validations with strict value constraints (e.g., age, weight, quantity)

#### <mark style="color:blue;">2.</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**Equivalence partitioning**</mark>&#x20;

This technique divides input data into **valid and invalid partitions** where each partition is expected to behave similarly.

**How it works in aqua:**

You define the valid and invalid input ranges or categories (e.g., postal codes, age groups, membership types), and AI can generate:

* Test cases per valid partition
* Test cases per invalid partition

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

**Ideal for:**

* Form inputs with categories
* Business rules based on input types

#### <mark style="color:blue;">3.</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**Decision table testing**</mark>

This technique uses a **table of conditions and actions** to generate all meaningful test combinations.

**How it works in aqua:**

You provide:

* Input conditions (e.g., isMember, discountCodeApplied, paymentMethod)
* Expected outcomes or rules

AI builds on the backgrpund a decision matrix and creates test cases for each combination that leads to a different result.

<figure><img src="/files/79LtVh3bTVPDrpUCCwEt" alt=""><figcaption></figcaption></figure>

**Ideal for:**

* Complex business logic
* Systems with multiple decision rules

***

### How to create test cases using the test design technique

First, select the option to generate test cases either from the navigation page or from the requirements page.

Once a modal appears, provide some context, upload the file or select a requirement that you want to cover.

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

Then, select the style for the generation and choose 'Multiple' option.&#x20;

When you select it, then the option to choose the test design technique appearts.&#x20;

All you need to do is to select the desired technique:

* Boundary Value Analysis
* Equivalence Partitioning
* Decision Table Testing

Click **Generate Test Cases** — and let AI do the rest.

When AI generate test cases, you can still preview them, regenerate them and select only those that you want to keep.

{% hint style="success" %}
When AI Copilot generates test cases based on the selected test design technique, it also generates the test data sets and inject variables into all test cases
{% endhint %}

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

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

So when you start testing, you can select the needed value set and perform the testing.

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

Hence, during the testing there will be the proper variables inserted and indication what value set is being used.

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

### 💡 Tips for Best Results

* Provide clear and structured input values (e.g., value ranges, option lists, condition-outcome pairs).
* Use decision table format (e.g., CSV or list format) for faster setup.
* Review and edit generated cases to match edge scenarios specific 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-with-ai-copilot-using-test-design-techniques.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.
