# TCG (Test Case Generator)

## What is TCG?

The **Test Case Generator (TCG)** is an AI-powered platform that automatically generates structured test cases from technical specifications. Upload a PDF or Word document describing your product requirements, and the platform extracts requirements, reasons over them, and produces a ready-to-use test suite including automation scripts.

***

## Who is this for?

| Role                | What you do                                                                                    |
| ------------------- | ---------------------------------------------------------------------------------------------- |
| **Admin Portal**    | Create and configure portals, manage access, set feature toggles, monitor analytics            |
| **End User Portal** | Upload specifications, generate test cases, edit and export results, create automation scripts |

***

## Core Capabilities

* **Standard Generation** - Full end-to-end extraction of requirements and test cases from a specification document
* **Delta Generation** - Generate only the test cases affected by changes between two document versions
* **Section Generation** - Generate test cases from a single section or pasted text
* **AI Quality Analysis** - Automatically detect duplicates, contradictions, and coverage gaps
* **Script Generation** - Produce executable automation scripts (pytest, Playwright, JUnit, etc.)
* **GitHub Integration** - Push generated scripts directly to a GitHub repository

***

## Platform Architecture

TCG uses a **multi-portal model**:

* Each **portal** is an isolated workspace with its own URL, branding, authentication, and feature configuration.
* **Admins** manage portals via `/admin`.
* **Users** access their portal via `/user/<portal-slug>`.

***

## Navigation

Use the sidebar to navigate to:

* **Admin Portal** - Everything an admin needs to set up and manage portals
* **End User Portal** - Everything a user needs to generate, review, and export test cases


---

# 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.understand.tech/documentation/apps/tcg-test-case-generator.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.
