> 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/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).

# テストの再実行

シナリオ作成時の試行錯誤や、テストプランで特定のシナリオが不安定な時など、失敗したテストを再実行したい場合は、テスト結果詳細画面の右上に表示される **再実行** をクリックすることで、簡単にテストを再実行できます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-085e4750f96fc1ce307bd1d8ed4fda271a5e8529%2Frerun-ja.png?alt=media)

{% hint style="info" %}

* 「再実行」ボタンから実行したテストは、テストの実行回数またはクレジットは消費しません。
* テストが成功またはキャンセルされた場合は「再実行」ボタンが表示されません。
* 失敗したテストのシナリオが更新されている場合やブラウザのバージョンが更新されている場合、確認ダイアログが表示され、最新のシナリオで実行されます。
  {% endhint %}

## テストプランで実行したテストの再実行

### 実行環境

* テストプランで実行環境を変更して再実行しても、失敗した時の実行環境で再実行され、確認ダイアログにはその旨が表示されません。
  * 例：テストプランではMac OS / Safariを指定して実行し、テストが失敗した。その後、テストプランの実行環境をChrome / Linuxに指定し直しても、失敗したテストを再実行した時は、Mac OS / Safariで再実行される。
* 再実行したい実行環境がAutifyでサポートされなくなった場合、その実行環境を指定して再実行はできません。

### URL置換

テストプランで指定するURL置換を変更して再実行をしても、失敗した時に指定されていたURLを用いてテストが再実行されます。

### Autify Connect

Autify Connect を利用した場合の再実行をするとき、テストプランのアクセスポイント設定を変更して再実行しても、失敗した時のアクセスポイントを用いてテストが実行されます。

## 再実行ボタンが利用できないケース

### テストの実行に失敗しました。データが削除されています。

以下の2つ全ての条件を満たした場合、「テストの実行に失敗しました。データが削除されています。」と表示され再実行ができません。

* シナリオにcsvデータパターンを使っている場合
* シナリオを修正時にcsvデータパターンを更新や削除などした場合

### テストの実行に失敗しました。シナリオが削除されています。

失敗したテスト結果のシナリオが削除されている場合、「テストの実行に失敗しました。シナリオが削除されています。」と表示され再実行ができません。


---

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