> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quixa.io/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Test Scenario Creator

> Automatically generate comprehensive positive, negative, and edge-case test flows from OpenAPI specs.

Writing exhaustive regression test suites manually is time-consuming. Quixa includes an **AI Test Scenario Creator** that inspects your API schemas and automatically synthesizes complete test flows with assertion matrices.

***

## 1. How It Works

1. In the **Collections** sidebar tab, locate any endpoint.
2. Right-click the endpoint and select **`Generate AI Tests`**.
3. Quixa's backend AI engine parses:
   * The OpenAPI/Swagger path parameters, query parameters, and JSON schemas.
   * Required vs. optional fields, regex validations, and enum values.
   * Documented HTTP response codes (`200 OK`, `400 Bad Request`, `401 Unauthorized`, `404 Not Found`).

***

## 2. Generated Scenario Archetypes

The AI generator produces a balanced test suite covering multiple validation angles:

* **Happy Path (200 / 201)**: Valid input payloads with all required and optional attributes populated with realistic synthetic data.
* **Missing Required Fields (400 Bad Request)**: Systematically tests payload omission to ensure backend schema validation rejects bad requests.
* **Malformed Data & Boundary Values (422 Unprocessable)**: Out-of-bounds numbers, invalid regex patterns, and string length boundary violations.
* **Unauthorized Access (401 / 403)**: Validates that missing or corrupted authorization headers trigger proper security responses.

***

## 3. Dedicated Tests Section & Folder Mirroring

When you select scenarios to save:

* They are saved as **`[TEST]`** flows in a dedicated **Tests** section of the sidebar (isolated from your primary business flows).
* **Deep Folder Mirroring**: Flows are automatically organized into structured folders matching the collection hierarchy:

```text theme={null}
📁 Tests/
   📁 PaymentService/
      📁 Transactions/
         ⚡ [TEST] Create Transaction - Valid 200
         ⚡ [TEST] Create Transaction - Missing Amount 400
         ⚡ [TEST] Create Transaction - Invalid Card 422
```

* Test flows can be run individually or bundled directly into automated **Test Suites**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.