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

# テストプランの再実行

## 概要

テストプランを運用していると、失敗したテストのみをもう一度実行したくなることがよくあります。 個々のテストについては、[テストプラン結果詳細画面から「再実行」](https://help.autify.com/nocode-web/autify-university/foundation/rerun/rerun-test.md)できますが、テストプランで多くのシナリオを管理していると、一つ一つ再実行するのが大変だったり、場合によっては再実行用のテストプランを用意する必要があったりします。 このようなニーズに応えるため、テストプラン実行結果から、失敗したテストのみを再実行する、テストプラン再実行機能を用意しました。

## 使い方

1. 失敗したテストプラン実行結果を開きます。
2. \[失敗したテストを再実行する]をクリックします。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-8c00ebc58281cfa2065c7b25a4a37335a60a2a8b%2Ftest-plan-rerun-1.png?alt=media)
3. 失敗したテストのみ再実行が行われます。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-6ecc745b53de00a1e2cb45a3f715018e09024cc3%2Ftest-plan-rerun-2.png?alt=media)

## 利用上の留意点

### テスト実行回数・クレジット消費

この機能で実行されたテストは、テストの実行回数またはクレジットは消費しません。

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

再実行したテスト結果にまだ失敗したテスト結果がある場合、もう一度再実行することが可能です。

### 複数のテスト実行環境

複数のテスト実行環境の一部のみでテストが失敗していた場合には、全ての環境で再実行が行われます。 ChromeとEdgeを指定したテストプランで、シナリオAがChrome環境でのみ失敗していたケースで再実行した場合、ChromeとEdge環境両方で再実行が行われます。

### 再実行時の直列、並列実行の影響範囲

テストプラン内で並列を指定していた場合、「失敗したテストを再実行する」ボタンから実行した場合は、失敗したシナリオが並列で再実行されます。その逆で直列を指定していた場合は、直列で再実行されます。

### シナリオが削除されていた場合

再実行時にテストプランから失敗していたシナリオが削除されていた場合は、そのシナリオは再実行から除外されます。

### シナリオが更新されていた場合

再実行対象のシナリオが更新されている場合は、その旨の警告が表示されます。 OKとすれば、再実行が可能です。

### 変数

元のテスト実行時に用いられた変数が利用されます。

### データ

元のテスト実行時からデータが変更された場合は再実行できません。

### 廃止されたテスト実行環境

元のテスト実行時に使われていたテスト実行環境が廃止された場合、再実行は行えません。

### URL置換

テストプランに登録された最新のデータが使われます。


---

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