# Cancel or re-run tests

You can cancel an active run when it is no longer useful, and you can re-run a previous run when you want a fresh result for the same selection.

## Cancel an active run

Cancel a run when:

| Situation                             | Why cancel                                              |
| ------------------------------------- | ------------------------------------------------------- |
| The wrong site URL was entered        | The result will not represent the intended environment. |
| The wrong tests were selected         | The run is spending time on the wrong scope.            |
| A required service is down            | Failures would only confirm an external outage.         |
| A newer change makes the run obsolete | A fresh run will give a better signal.                  |

To cancel:

1. Open **Runs**.
2. Select the active run.
3. Choose **Cancel**.
4. Confirm the action if TestVibe asks for confirmation.

The run moves to a cancelled state. Any partial evidence that was already produced may still be visible, but the run should not be treated as a pass or failure signal.

## Re-run a previous run

Re-run when you want to retry the same test selection after fixing a problem, updating the target site, or refreshing credentials.

1. Open **Runs**.
2. Select the completed, failed, or cancelled run.
3. Choose **Re-run**.
4. Review the selected tests, site URL, and run configuration.
5. Start the new run.

A re-run creates a new run attempt. The original run remains available in the history so you can compare the before and after results.

## What carries forward

When you re-run, TestVibe uses the previous run as the starting point:

| Item              | What to check                                                            |
| ----------------- | ------------------------------------------------------------------------ |
| Test selection    | Confirm the same files or group are still the right scope.               |
| Site URL          | Update it if the environment changed.                                    |
| Run configuration | Confirm browser, viewport, and evidence settings.                        |
| Secrets           | Refresh credentials if the earlier failure was caused by authentication. |

## Delete old results

Some completed run rows can also be deleted from the run list. Deleting a result removes that historical run from the TestVibe view. Cancel first only when a run is still active; delete only when you no longer need the historical result.

For status meanings, see [Understand live run status](/run-tests/understand-live-run-status.md).


---

# 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.testvibe.com/run-tests/cancel-or-rerun-tests.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.
