> 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/faq/faq-create-scenario/faq-recording/can-i-test-my-smartphone-web-h.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# スマートフォンやタブレット用のテストは可能ですか？どうやってレコーディングするのですか？

{% hint style="warning" %}
Chromeモバイルデバイス環境（Autifyクラウド環境）はご契約プランによってご提供状況が異なります。
{% endhint %}

{% hint style="warning" %}
モバイル実機端末環境はご契約プランによってご提供状況が異なります。
{% endhint %}

可能です。スマートフォンやタブレットなど、モバイルデバイス向けのシナリオのレコーディングと実行の方法についてそれぞれ解説いたします。

## モバイル用シナリオのレコーディング

モバイル用シナリオのレコーディング方法は大きく二つあります。

1. **ウィンドウサイズからモバイルサイズを選択してレコーディングする**
2. **Chromeのデベロッパーツールで画面サイズを選択してレコーディングする**

ウィンドウサイズから選択可能なモバイルサイズはiPhone Xです。iPhone X向けのレコーディングを希望する場合には 1. の方法、それ以外のモバイルサイズを選択したい場合には 2. の方法を選択してください。

### ウィンドウサイズからモバイルサイズを選択してレコーディングする

1. 新規シナリオ作成画面を開きます。
2. モバイル用のウィンドウサイズを選び、レコーディングウィンドウを立ち上げます。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-bc80b9e600a508f02a68b2a0d1958f86d19007cd%2Fzndsk-Screen_Shot_2021-11-04_at_14.01.20.png?alt=media)
3. ウィンドウがモバイルサイズで立ち上がりますので、そのままレコーディングを進めます。普段どおりクリックや入力、アサーションの挿入などを行うことでモバイルサイト向けのシナリオを作成することができます。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-c48a39bd6a4e89cf421cc483214c6fa19f200ea1%2Fzndsk-Screen_Shot_2021-11-04_at_13.54.52.png?alt=media)

**注意：** モバイルデバイス名（iPhone Xなど）のついたウィンドウサイズを選択した場合には、レコーディング時に対象サイトへアクセスする際のユーザーエージェントも、モバイルデバイスに一致したものが設定されます。

### Chromeのデベロッパーツールで画面サイズを選択してレコーディングする

1. 新規シナリオ作成画面を開きます。
2. PC用のウィンドウサイズを選び、レコーディングウィンドウを立ち上げます。
3. Google Chrome のデベロッパーツールを開きます。
   * **Windows : Ctrl + Shift + I**
   * **Mac : ⌥ + ⌘ + I**
4. モバイル表示に切り替えるボタンを押します。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-c776f7584608f7570a49df70185689fb36ec2441%2Fzndsk-_2019-10-09_11.12.48.png?alt=media)
5. 好きな端末サイズを選択します。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-fc177111e321d2dd6589fbaf3f0cf747d86595cd%2Fzndsk-_2019-10-09_11.14.33.png?alt=media)
6. その状態で普段どおりクリックや入力、アサーションの挿入などを行うことでモバイルサイト向けのシナリオを作成することができます。\
   ただし、技術的な制約により、モバイル向けのレコーディング中はアサーション挿入時に対象がグレーに強調される機能が使えません。うまく対象要素を選択できない場合はサポートまでご相談ください。

## モバイル用テストの実行

Autifyでは下記の実行が可能です。

1. 「今すぐ実行 iPhoneX(Emulator)」ボタンで実行
2. 「テストプラン」から実行 2-1. エミュレーターでの実行 2-2. 実機での実行

### 1. 「今すぐ実行 iPhoneX(Emulator)」ボタンで実行

モバイル（375x812）ウインドウサイズをシナリオで設定している場合、「今すぐ実行 iPhoneX(Emulator)」ボタンが表示されます。このボタンをクリックすると、**iPhone Xのモバイルエミュレーター** で **すぐにテストを実行** することができます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-4609d5659d8c1da3cd75b745c970a004ab7b07cf%2Fzndsk-Screenshot_2022-03-09_15.42.38.png?alt=media)

### 2. 「テストプラン」から実行

「テストプラン」でモバイルデバイスの実行環境を選択して実行することができます。 「テストプラン」では、モバイルデバイスの実行環境として、エミュレーターと実機をご用意しています。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-91ff2b9aa6a4353ef26a3e6817449b5c197496b0%2Fzndsk-Screenshot_2020-03-09_5.55.53.png?alt=media)

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-eaa038115d10ea3d33d0477c99c9932135765cc1%2Fzndsk-Screenshot_2020-03-09_5.56.14.png?alt=media)

#### 2-1. エミュレーターでの実行

エミュレーターでの実行はChrome DevToolsのDevice Modeで実行されます。 Chrome DevToolsのDevice Modeというのは、各種端末の画面サイズやユーザーエージェントなどをシミュレートする機能です。Device Mode自体の詳細については[こちら](https://developers.google.com/web/tools/chrome-devtools/device-mode)をご参照ください。

この実行方法の特徴は

* 実機ではないので **簡易的な確認** にすぎず、モバイルOSやモバイル版ブラウザの影響など厳密なテストはできない
* 実機での実行に比べて **かなり高速**
* **Chromeモバイルデバイス環境が利用できるプランで利用可能**

#### 2-2. 実機での実行

実機での実行は「外部デバイスファーム」を利用して実際の端末上でテストを実行します。

この実行方法の特徴は

* 実際の端末上でその端末の標準ブラウザを立ち上げて実行するので、**OSやブラウザによる影響の確認ができる**
* Device Modeでの実行に比べて **かなり遅い**
* **モバイル実機端末環境を利用できるプランで利用可能**


---

# 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/faq/faq-create-scenario/faq-recording/can-i-test-my-smartphone-web-h.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.
