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

# 並列実行

{% hint style="warning" %}
並列実行はご契約プランによってご提供状況が異なります。
{% endhint %}

最大並列実行数はご契約のプランによって異なります。なおLite,Standardプラン以外のお客様の場合、並列数を増やすことができます。

## 並列実行を有効化するには

並列実行機能をご利用いただくには、左サイドメニュー「設定」>「ワークスペース設定」画面から「テストの並列実行」を有効にしてください。なお、**無効にする** を選択された場合にはテストは直列で実行されます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-31a3d2b235a05ff0f65b75baa1c63412658b3d8c%2Fzndsk-Screenshot_2020-11-24_10.59.00.png?alt=media)

### 並列実行の有効化における注意事項

並列実行を有効にすることで、 **”テストプランAを先に実行しておかないとテストプランBが失敗してしまう”** といった実行順序や、 **”テストプランAとテストプランBが同時に実行されると期待通りの動作をしない”** といったアプリケーションの性質に依存する「シナリオ」は、失敗するようになってしまう可能性がありますのでご注意ください。

## 並列実行の進みかた

Autifyのテストは「シナリオ」単位で実行されます。

下図において、**1) 並列実行無効時** と **2) 並列実行有効時** で、各テスト実行環境でどのようにテストの実行が進むのかを解説します。

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

**1) 並列実行無効時**: 全ての環境のテストが直列で実行されます。このため、「Autifyクラウド環境」と「デバイスファーム環境」で同時にテストが実行されることはありません。

**2) 並列実行有効時**: 「Autifyクラウド環境」のテスト内で実行されるテストはご契約の最大並列数で実行され、それと並行して「外部デバイスファーム環境」では1件ずつのテスト実行が進行します。

### 複数の実行環境を「テストプラン」で指定したときの並列実行順は？

定まっていません。各環境でテスト実行が可能になり次第、順次実行されます。

### 並列実行有効時に複数の「テストプラン」を同時に実行要求するとどうなるか？

並列実行は「シナリオ」単位で進行します。このため、テストプランAとテストプランBの実行要求が同時に行われた場合、AとBのシナリオが入り混じって並列実行されることがありえます。

### 並列実行数をデフォルトから変更できないか？

並列実行数を増やしたい、あるいは外部デバイスファームでの並列実行をご希望の場合には[料金プランのお問い合わせフォーム](https://autify.com/ja/pricing)よりお気軽にご相談ください。

関連記事:

* [「Autifyクラウド環境」とはなんですか？](https://help.autify.com/nocode-web/autify-university/foundation/execution-environments/autify-cloud-environment.md)
* [並列実行・直列実行の指定が適用される範囲を教えて下さい](https://help.autify.com/nocode-web/autify-university/advanced/test-execution-order/scope-of-application-of-parallel-or-sequential-execution.md)


---

# 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/advanced/test-execution-order/parallel-execution.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.
