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

# Extend Test Cases

> Add more test cases to a Galtea-generated test by re-running the generator that created it

## What is Extend?

Extend adds more test cases to a test that **Galtea generated**. It re-runs the same generator that created the test and appends the new cases to it. The test cases it already has are kept.

This is the right way to grow a generated test — for example an onboarding test that started with only a few cases. The new cases are produced the same way the original ones were, so they stay consistent with the test's purpose.

<Info>
  Extend keeps your existing cases and adds new ones. It never replaces them. While it runs, the [test](/concepts/product/test) is in the `EXTENDING` status; when it finishes, the test returns to `SUCCESS`.
</Info>

## Extend vs. Data Augmentation

Both add more cases to a test, but they work differently:

* **Extend** re-runs the test's **original generator** (for [Behavior](/concepts/product/test/behavior-tests), [Security & Safety](/concepts/product/test/security-tests), or [Accuracy](/concepts/product/test/accuracy-tests)). It is available only for tests Galtea generated.
* **[Data Augmentation](/concepts/product/test/data-augmentation)** creates new cases by learning from the test's **existing cases**. It works on any test that has cases, including ones you uploaded.

In the dashboard you will see one button or the other, depending on the test: **Extend Test Cases** for a generated test, **Augment Test Cases** for a test that cannot be extended (for example one you uploaded from a file).

## When Extend is available

A test can be extended when Galtea generated it **and** it still has the input its generator needs:

* **Behavior** tests need a scenario style (strategy).
* **Security & Safety** tests need at least one threat (variant).
* **Accuracy** tests need the ground-truth document they were generated from.

Uploaded tests cannot be extended, because there is no generator behind them — use Data Augmentation for those.

## How to Use Extend

You can extend a generated test directly from the [Galtea dashboard](https://platform.galtea.ai/):

<Steps>
  <Step title="Open a generated test">
    Go to the **Tests** section and open a test that Galtea generated.
  </Step>

  <Step title="Click Extend Test Cases">
    Use the **Extend Test Cases** button and choose how many cases to add.
  </Step>

  <Step title="Wait for generation">
    The test enters the `EXTENDING` status while the generator runs. When it finishes, the new cases are added alongside the existing ones and the test returns to `SUCCESS`.
  </Step>
</Steps>

## Related

<CardGroup cols={2}>
  <Card title="Data Augmentation" icon="wand-magic-sparkles" href="/concepts/product/test/data-augmentation">
    Expand any test from its existing cases.
  </Card>

  <Card title="Tests" icon="flask" href="/concepts/product/test">
    Learn about tests and test types in Galtea.
  </Card>
</CardGroup>
