> 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.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Rerun a test

If you want to rerun a failed test, such as when you're creating a scenario or if a particular scenario in a test plan is flaky, you can easily rerun it by clicking the \[Rerun] button that appears in the upper right corner of the test result details page.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-847cc2810062a55be9ac1c871d0bbf288005c33b%2Frerun-en.png?alt=media)

{% hint style="info" %}

* Tests executed using the \[Rerun] button don't count toward the number of test runs or use us credits.
* The \[Rerun] button does not appear if the test was successful or aborted.
* If the scenario of the failed test has been updated or the browser version has been updated, a confirmation dialog will appear and the newest scenario will be executed.
  {% endhint %}

## Rerunning tests executed as part of a test plan

### Execution Environment

* If the execution environment of the test plan is changed before the test is rerun, the test is rerun in same execution environment as when it failed. The confirmation dialog will not mention this.
  * Example: The execution environment of the test plan is set to Mac OS / Safari and the test failed. In this case, even if you change the execution environment to Chrome / Linux, the test will be rerun in Mac OS / Safari.
* If Autify no longer supports the execution environment you want to use, you will not be able to select that execution environment when rerunning tests.

### URL Replacements

If you change the URL replacements specified in the test plan and rerun the test, the test will be rerun using the URL that was specified when the test failed.

### Autify Connect

If you're using Autify Connect, even if you change the Access Point settings in the test plan before rerunning the test, it will be rerun using the same Access Point that was used when the test failed.

## You cannot use the rerun button if...

### Failed to run test. Data was deleted.

If both of the following two conditions are met, the message "Failed to run test. Data was deleted" will be displayed and Autify will not be able to rerun the test.

* The scenario uses a csv data pattern.
* The csv data pattern was updated or deleted when the scenario was edited.

### Failed to run test. Scenario was deleted.

If the scenario of the failed test has been deleted, the message "Failed to run test. Scenario was deleted" will appear and Autify won't be able to rerun the test.


---

# 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.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.
