> 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-mobile/using-autify-nocode-mobile/test-execution/run-the-test-on-real-devices.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# クラウド実機端末でテストを実行する

{% hint style="info" %}
ℹ️ 当ドキュメントは、Autify NoCode Mobileでクラウド実機端末実行をご利用のお客様向けの内容となります。 ローカル実機端末実行をご利用されている方は、[ローカル端末を使ったレコーディング・テスト実行のセットアップ手順 (各OS)](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/execution-environments/local-device/overview-of-local-device-support.md#how-to-use)をご参照ください。
{% endhint %}

Autify NoCode Mobileでは実機端末でテストを実行することが可能です。このドキュメントでは、実機端末を利用したテスト実行の一連の流れを確認していきます。

### 前提

事前にテスト実行・レコーディングで利用したい実機端末を設定しましょう。 利用端末設定で設定した実機端末は、テストプランでのテスト実行する端末、レコーディング時に利用する端末として選択できるようになります。 利用したい実機端末は **「設定」 > 「ワークスペース」 > 「利用端末」** より設定・確認することが可能です。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-23ab0d92f3338a90ebecbc29038726925147272f%2Frealdevice%20setting.png?alt=media)

詳しい設定方法は、[ワークスペース記事](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/settings/settings-workspaces.md)の利用端末の項をご参照ください。

### 1. ビルドファイルをアップロードする

ビルド画面の右上にある新規ビルドボタンをクリックし、実機端末のテストで利用したいビルドファイルをアップロードします。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-7581bf3e42680d584370e02bae97964cad52f996%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202024-10-09%2023.02.43.png?alt=media)

ビルドファイルの生成、アップロードの方法は以下のドキュメントをご参照ください。

* [ビルドファイルの生成](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/build-file-upload/export-a-build-file.md)
* [ビルドファイルのアップロード](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/build-file-upload/upload-a-new-build-file.md)

{% hint style="warning" %}
**注意点**

* 実機端末では、以下の形式のビルドファイルをサポートしています。
  * iOS: `.ipa`ファイル形式
  * Android: `.apk`ファイル形式
    {% endhint %}

### 2. 実機端末を利用してシナリオを作成・実行する

ビルドファイルのアップロードが完了後、シナリオのレコーディングに進みます。 レコーディング方法は「[シナリオの作成](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/scenario-creation-and-maintenance/creating-scenarios.md)」のドキュメントに記載されていますが、実機端末をご利用の場合はビルドファイルの選択時、**利用端末** で設定した実機を設定することができます。 端末種類の選択肢に表示される[Busy](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/execution-environments/untitled/overview-of-cloud-based-real-device-support.md#devices-that-are-busy)や[Any](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/execution-environments/untitled/overview-of-cloud-based-real-device-support.md#what-is-any)については、こちらの記事をご参照ください。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-08bf9a670a3778ed786826b7c44c234a2f3b3c72%2Frealdevice_select.png?alt=media)

レコーディング完了後、シナリオ編集画面の「今すぐ実行」よりテストを実行することができます。 この時、テスト実行はシナリオ編集画面に表示されているOS・機種で実行されます。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-2d9bb2d2908a549169213847079859c94db73c11%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202024-10-09%2022.57.51.png?alt=media)

### 3. テストプランに複数の端末を登録し、テストを実行する

テストプランを作成し、「実行環境」>「編集」より実機端末を複数登録し、テスト実行することも可能です。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-eb2c01643df5e65f637fa00058118239229d2f48%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202024-10-09%2023.24.35\(1\).png?alt=media)

**利用端末** で設定した実機端末を追加し、**保存** をクリックします。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-cc0dc156bcaff46ec14d170c3d988c8e2838c466%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202024-10-09%2023.25.41.png?alt=media)

**実行** をクリックすると、登録した複数の実機端末でテストが実行されます。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-92b3ddcacc2a0c6c1696254f89e2dcfc9ab4d7d3%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202024-10-09%2023.28.30.png?alt=media)

テストプランの作成について、詳しくは以下のドキュメントをご参照ください。

* [テストプランの作成](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/test-plan/how-to-create-a-test-plan.md)

{% hint style="warning" %}
**注意点**

「利用端末」から端末を削除する際、もしその端末がテストプランに使われている場合は、テストプランの実行環境からも自動的に削除されます。

例：iPhone 13をテストプランに登録している状態で、「利用端末」からiPhone 13を削除すると、テストプランの実行環境からもiPhone 13が削除されます。 再びiPhone 13を利用するには、**「設定」 > 「ワークスペース」 > 「利用端末」** からiPhone 13を再度追加し、テストプランで設定し直す必要があります。
{% endhint %}


---

# 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-mobile/using-autify-nocode-mobile/test-execution/run-the-test-on-real-devices.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.
