# 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FHcOrrzeSLDuNwcfbjgSU%2Fimage.png?alt=media&#x26;token=4766b42f-c766-4f36-ac20-98868f9e9278" 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2Ft6nPQdKRDDFASDjqtSpx%2Fimage.png?alt=media&#x26;token=ed6ac1fe-e1e7-4376-bb77-b76d86f72180" 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FT8tX2XSUKTPBncQMWkWP%2Fimage.png?alt=media&#x26;token=72c5b23a-a456-46f7-a7ab-ee4a15a18c62" 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FVZQ0WUmGYODCvxGJbZUq%2Fimage.png?alt=media&#x26;token=51e6d984-2315-4a56-a65d-c93004c91621" 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2Fn1qY6i3isiD4RHO2021T%2Fimage.png?alt=media&#x26;token=cecf8c76-80f6-495f-967b-3910b79dce94" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FcgkFcf7DLSwqrOdL4Vpo%2Fimage.png?alt=media&#x26;token=3746adbd-ff57-4b41-977f-accc5adb0f7a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2F15Nc8l8kwZCn5lhCOTRe%2Fimage.png?alt=media&#x26;token=06fabf69-6ae2-4826-9434-ca1dd760450b" 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="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FngNHNQYp9H2lJwkWDykO%2Fimage.png?alt=media&#x26;token=5362c11b-4416-43f1-9bf4-672fc84b9d79" 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.
