> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/en/autify-university/foundation/rerun/rerun-test-plan.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Rerun a test plan

## Overview

When using a test plan, you may often want to rerun only the tests that failed. You can rerun individual tests using the [Rerun button on each test result page](https://help.autify.com/nocode-web/en/autify-university/foundation/rerun/rerun-test.md), but if there are many scenarios in a test plan, rerunning them one by one would be time-consuming, and you may even have to create a new test plan to rerun them.

To address these needs, we have introduced a new feature that allows you to rerun only the failed scenarios directly from the test plan results page.

## How to use

1. Open the failed test plan result page.
2. Click \[Rerun failed tests].

   ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-2e1ef5ad7e9da42ef0ad31ac259953b88c5f3b79%2Fen-rerun-test-plan-1.png?alt=media)
3. Only the failed scenarios will rerun.

   ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-9ed9ac5d19493a3aa359ba0ed53585cd1c381b8e%2Fen-rerun-test-plan-2.png?alt=media)

## Points to note

### Test Execution Count and Credits

Tests executed using this functionality do not count towards the test execution count or credits.

### Rerunning a Previously Rerun Test Plan

If there are failed scenarios in a test plan that has already been rerun, you can rerun them again.

### Multiple test execution environments

If several test execution environments are set, the scenario will rerun in all of them, even the ones that were successful.

For example, if a test plan has both Chrome and Edge as its execution environments, and Scenario A only failed in Chrome, it will rerun in both Chrome and Edge.

### Impact of sequential and parallel execution on reruns

Rerunning failed tests preserves the test plan execution mode:

* if a test plan uses parallel execution, scenarios will rerun in parallel
* if a test plan uses sequential execution, scenarios will rerun sequentially

### If a scenario has been deleted

If a failed scenario was deleted from the test plan when it is rerun, that scenario will be excluded from the rerun.

### If a scenario has been updated

If a scenario to be rerun has been updated, an alert will notify you of the change. You can proceed with the rerun by selecting 'OK'.

### Variables

The rerun uses the variables used in the failed test.

### Data

You cannot rerun the test if the data used in the failed test has been updated.

### Deprecated test environments

You cannot rerun the test if the environment used in the failed test has been deprecated.

### URL Replacement

The current URL replacement settings are used during the rerun.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/en/autify-university/foundation/rerun/rerun-test-plan.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
