Skip to main content

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.
Extend keeps your existing cases and adds new ones. It never replaces them. While it runs, the test is in the EXTENDING status; when it finishes, the test returns to SUCCESS.

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, Security & Safety, or Accuracy). It is available only for tests Galtea generated.
  • 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:
1

Open a generated test

Go to the Tests section and open a test that Galtea generated.
2

Click Extend Test Cases

Use the Extend Test Cases button and choose how many cases to add.
3

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.

Data Augmentation

Expand any test from its existing cases.

Tests

Learn about tests and test types in Galtea.