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

# Re-run failed tests

> Replay a previous Qodex run or isolate recently failed scenarios to confirm fixes and flakes.

# Re-run failed tests

Re-running helps you confirm whether a failure is fixed, flaky, stale, or tied to a temporary environment issue.

There are two useful patterns: rerun the original plan from a previous test run, or start a new run scoped to scenarios whose last run failed.

## Rerun the original plan

Open a test run and click **Rerun**. Qodex creates a new run using the original plan and environment.

The new run keeps:

* The same planned scenarios.
* The same environment.
* The same grouping behavior.
* The same CSV snapshot when the original run used one.
* A new title prefixed with `Rerun:`.

This is best when you want to reproduce the whole run exactly.

## Run only scenarios that failed recently

If you want to focus only on current failures, open **Scenarios**, filter by **Last run: Failed**, then click **Run all**.

This creates a new scoped run from the filtered scenario list. It is useful after a fix, when you do not want to run the entire suite again.

## Compare artifacts

Open the original run and rerun side by side. Compare:

* Step screenshots.
* API request and response evidence.
* UI DOM, console, and network artifacts.
* Failure classifications.
* Findings created or verified by each run.

If the classification is `STALE_TEST`, update the scenario and rerun. If it is `ENVIRONMENT_ISSUE`, rerun after the target is healthy. If it is a real bug, use the finding evidence to fix the product behavior.

## Related

<CardGroup cols={2}>
  <Card title="Run a single scenario" icon="play" href="/run-tests-single-scenario">
    Reproduce one failed scenario in isolation.
  </Card>

  <Card title="Run tag-filtered scenarios" icon="tag" href="/run-tests-tag-filtered">
    Rerun a known subset such as regression or critical.
  </Card>
</CardGroup>
