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

# Test Management

> Create, organize, and manage your test cases

## Overview

OneTest's test management system helps you create, organize, track, and maintain your test cases efficiently.

> [card] Test Cases
>
> Create and manage test cases with steps, preconditions, and expected results

> [card] Folders & Tags
>
> Organize tests hierarchically with folders and categorize them with tags

> [card] OQL Search
>
> Find tests instantly with a powerful query language

## Creating Test Cases

There are multiple ways to create test cases in OneTest.

> [tab] AI Generation (Recommended)
>
> ### Generate Tests with AI
>
> The fastest way to create tests is using the AI Assistant:
>
> **1. Open AI Chat**
>
> Press `Cmd/Ctrl + K` or click the chat icon
>
> **2. Describe What to Test**
>
> ```
> Create a test for user login with valid credentials
> ```
>
> **3. Review & Save**
>
> The AI generates a complete test case. Review and click **Save**.
>
> > [!TIP]
> >
> > The AI understands context and can generate multiple related tests at once:
> >
> > ```
> > Create 5 tests for the checkout flow covering happy path and error cases
> > ```

> [tab] Manual Creation
>
> ### Manual Test Creation
>
> **1. Click New Test**
>
> Navigate to Test Management and click **"+ New Test"**
>
> **2. Fill Basic Information**
>
> * **Title**: Clear, descriptive title
> * **Description**: What this test validates
> * **Priority**: P0 (critical) to P4 (nice-to-have)
> * **Type**: Manual, Automated, or API
>
> **3. Add Test Steps**
>
> Define step-by-step instructions:
>
> 1. Action to perform
> 2. Expected result
>
> **4. Set Metadata**
>
> * **Tags**: `smoke`, `regression`, `login`, etc.
> * **Folder**: Organize by feature area
> * **Requirements**: Link to user stories (e.g., `US-123`)
>
> **5. Save**
>
> Click **Save** to create the test case

> [tab] Import from File
>
> ### Import Tests
>
> **1. Prepare Your File**
>
> Supported formats: CSV, Excel, or JSON
>
> **2. Click Import**
>
> Go to Test Management and click **Import**
>
> **3. Map Fields**
>
> Map your columns to OneTest fields
>
> **4. Review & Import**
>
> Review the preview and click **Import**
>
> See [Import & Export](https://onetest.ai/ui/import-export.md) for details.

## Test Case Components

> [accordion] Title & Description
>
> **Title**: Short, clear summary of what's being tested
>
> ```
> Good: "Verify user can login with valid credentials"
> Bad:  "Login test"
> ```
>
> **Description**: Detailed explanation of the test purpose and scope

> [accordion] Test Steps
>
> Each step should have:
>
> * **Action**: What the tester should do
> * **Expected Result**: What should happen
>
> Example:
>
> ```
> 1. Navigate to login page       → Login form is displayed
> 2. Enter valid username          → Username field accepts input
> 3. Enter valid password          → Password is masked
> 4. Click Login button            → User is redirected to dashboard
> ```

> [accordion] Preconditions
>
> What must be true before running this test:
>
> * User account exists
> * User is not logged in
> * Test data is available

> [accordion] Test Data
>
> Specific data needed for this test:
>
> * Username: `test@example.com`
> * Password: `Test123!`
> * Expected role: `Admin`

> [accordion] Tags & Folders
>
> **Tags**: Categorize for easy filtering
>
> * `smoke`: Critical path tests
> * `regression`: Run before releases
> * `feature-name`: Group by feature
>
> **Folders**: Hierarchical organization
>
> * Authentication/Login/Valid Credentials
> * Checkout/Payment/Credit Card

## Organizing Tests

### Folders

Create folders to organize tests by feature, module, or any structure that fits your team:

**1. Navigate to Test Management**

Access the Test Management section from the main navigation

**2. Create Folders**

Create folders to organize your tests by feature or module

**3. Move Tests**

Drag and drop or use bulk operations to move tests into folders

### Bulk Operations

Use checkboxes to select test cases for bulk actions:

* **Click a checkbox** to select a single test
* **Select multiple** tests across the list
* **Bulk actions** appear in the toolbar: Move, Tag, Export

## Exporting Test Cases

Export test cases to **Excel (XLSX)** format for reporting, sharing, or offline review.

> [tab] Export All
>
> Export all test cases in the current product:
>
> 1. Go to the Test Cases list
> 2. Click the **Export** button in the toolbar
> 3. Choose **"All Test Cases"**
> 4. An XLSX file downloads with all test data

> [tab] Export with OQL Filter
>
> Export a filtered subset using OQL:
>
> 1. Enter an OQL query in the search bar (e.g., `priority IN (p1, p2) AND status = ready`)
> 2. Click the **Export** button
> 3. Choose **"Filtered Results"**
> 4. Only matching test cases are exported

> [tab] Export Selected
>
> Export specific test cases:
>
> 1. Select test cases using checkboxes
> 2. Click the **Export** button
> 3. Choose **"Selected Tests"**
> 4. Only checked test cases are exported

> [tab] Export Unassigned
>
> Export test cases not assigned to any folder:
>
> 1. Click the **Export** button
> 2. Choose **"Unassigned Tests"**
> 3. Tests without a folder are exported

### XLSX Export Contents

The exported Excel file includes:

| Column | Description |
| - | - |
| Identifier | TC-0001, TC-0002, etc. |
| Title | Test case title |
| Type | manual, automated, exploratory |
| Status | draft, ready, deprecated, archived |
| Priority | p1, p2, p3, p4 |
| Description | Full description text |
| Preconditions | Setup requirements |
| Steps | Action and expected result pairs |
| Tags | Comma-separated tags |
| Folder | Folder path |
| Created | Creation date |
| Updated | Last modification date |

## Best Practices

> [card] Be Specific
>
> Clear, unambiguous steps that anyone can follow

> [card] Single Purpose
>
> One test case should verify one thing

> [card] Use Tags
>
> Tag appropriately for easy filtering and test suite creation

> [card] Link Requirements
>
> Connect tests to user stories or requirements for traceability

## What's Next?

> [card] [Running Tests](https://onetest.ai/ui/running-tests.md)
>
> Execute and monitor test runs

> [card] [Import & Export](https://onetest.ai/ui/import-export.md)
>
> Bulk import and export test cases

> [card] [AI Assistant](https://onetest.ai/ai/generate-tests.md)
>
> Generate tests with AI

> [card] [OQL Query Language](https://onetest.ai/oql/overview.md)
>
> Master OQL for powerful searches


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