---
title: Android Espresso Cloud Automation
description: Android Espressoでテストを加速し、AndroidエミュレーターまたはTestingBotの実際のデバイスでテストを実行します。
source_url:
  html: https://ja.testingbot.com/features/automation/espresso
  md: https://ja.testingbot.com/features/automation/espresso.md
---

エスプレッソクラウド 
# 実際のAndroidデバイスでEspressoを実行する

Galaxy、Pixel、OnePlus、Xiaomiなどの実機（Android 4.4～Android 15）で、単一のCLIコマンドを使ってEspressoスイートを実行できます。大規模な並列処理、ビデオおよびログアーティファクト、そして99.9%の稼働率SLAを提供します。

すべてのプラットフォームをご覧になりたいですか？ [自動化フレームワークの全ラインナップ](https://ja.testingbot.com/features)をご覧ください。

[無料で始める](https://ja.testingbot.com/users/sign_up) [デモをリクエストする](https://testingbot.com/demo)

- **本物のAndroidデバイス:** 200以上
- **Android版:** 4.4 → 15
- **稼働時間SLA:** 99.9%

世界で最も革新的な企業のいくつかから信頼されています

 30秒で回答 
## TestingBotでEspressoを実行する理由とは？

本物のAndroidデバイス

エミュレーターだけでなく、実機のGalaxy、Pixel、OnePlus、Xiaomi端末で動作します。最新のフラッグシップモデルはもちろん、Android 4.4以降の豊富な旧機種にも対応しています。

社内のAndroidラボを置き換える

埃をかぶったスマホの山、膨張したバッテリー、そしてOEMアップデートの繰り返し作業はもう不要です。TestingBotは5年以上にわたり、実機でAndroidテストを実施してきました。

ネイティブJavaとKotlin

GoogleがAndroid Studioに同梱しているEspressoフレームワークをそのまま使用できます。同じAPI、同じJUnitアサーション、真のネイティブパフォーマンスを実現します。

 エスプレッソとは何ですか？ 
## 60秒でエスプレッソ

 ![Espresso](https://ja.testingbot.com/assets/environments/svg/android-1b3d235e17522e2238e1c55b4e9cdd41219f653cd958ea065877d3813f32ffc3.svg)

### Espresso

Google · built into Android Studio · Java / Kotlin

Espressoは、Android StudioとAndroid SDKに組み込まれている、Google公式のAndroid向けUIテストフレームワークです。AndroidJUnitRunnerインストゥルメンテーションランナーを使用し、アプリの実際のUIに対して、タップ、スワイプ、スクロール、インテント、ビューアサーションなどのスクリプトを実行できます。

Espressoはアプリと同じプロセスで実行されるため、テストは高速かつ信頼性が高く、テストとUIスレッド間の自動同期が行われます。高速なインプロセスAndroid UIテストの定番ツールと言えるでしょう。

- Android Studioに組み込まれたネイティブのGoogleフレームワーク
- JavaおよびKotlinバインディング
- 実機のGalaxy、Pixel、OnePlus、Xiaomi、およびエミュレーター
- マッチャーの表示、アクションの表示、アサーションの表示、インテントの表示
- AndroidJUnitRunner、CI向けJUnit XML出力

 1行CLI 
## 実機でEspressoをコマンド1つで実行

TestingBot CLIをインストールし、アプリのAPKとテスト用のAPKを指定し、デバイスを選択するだけで完了です。アップロード、機能の取得、結果のポーリングはすべて自動的に処理されます。

install the CLI step 1

```bash
# Install the TestingBot CLI
$ npm install -g testingbot-cli

# Authenticate (once) — set your KEY and SECRET
$ export TESTINGBOT_KEY=your-key
$ export TESTINGBOT_SECRET=your-secret

# Build app + Espresso test APKs (one-off)
$ ./gradlew assembleDebug \
    assembleDebugAndroidTest
```

run Espresso step 2

```bash
# Run Espresso on a real Pixel — one command
$ testingbot espresso app.apk app-test.apk \
    --device "Pixel 8" \
    --platform-version "14" \
    --real-device

# Or, on a Galaxy
$ testingbot espresso app.apk app-test.apk \
    --device "Galaxy S24" \
    --real-device

# → live results in your TestingBot dashboard
# → JUnit XML, video and logcat via REST API
```

高度なフラグ、並列実行、CI統合については、 [TestingBot上のEspressoの完全なドキュメント](https://testingbot.com/support/app-automate/espresso)を参照してください。

 購入か建築か 
## TestingBotと社内Androidデバイスラボの比較

自社でAndroidデバイスラボを維持するのは費用がかかります。デバイスは故障する可能性があり、OEMは独自のスケジュールでアップデートを配信し、SamsungのKnox制御は頻繁に変更されます。ホスト型Androidデバイスクラウドは、これらのコストとどのように異なるのか、以下に比較します。

| 能力 | テストボット | 社内Androidラボ |
| --- | --- | --- |
| デバイスカバレッジ | Android 4.4から15までのGalaxy、Pixel、OnePlus、Xiaomi | 購入およびラックできるものに限定されます |
| 最初のテストの時間 | 数分、CLIコマンド1つで実行できます | 数週間にわたるプロビジョニング、ADB、MDM、テザリング |
| 並列スケーリング | 最大100の同時エスプレッソセッション | 所有するデバイスの数によって制限されます |
| ビデオとログ | ビデオ、ログキャット、スクリーンショット、JUnit XML | 独自の録音・ログ集約システムを構築する |
| 信頼性 | 稼働率99.9%のSLA、24時間365日の監視 | 電池切れや画面の破損を修理します。 |
| 安全 | セッションごとにデバイスのデータが消去されます。 | 手作業による清掃、残存する州のリスク |
| サポート | 24時間365日の人的サポートと専任のカスタマーサクセスマネージャー | Stack Overflowとあなた自身のログ |

 機能 
## Espressoに必要なすべてのものがクラウド上にあります

TestingBotは、テストを実行するだけでなく、Android Studioで設定できるEspressoの全機能に加え、位置情報やネットワークスロットリングといったクラウド専用機能も提供します。

- ### [Instrumentation](https://testingbot.com/support/app-automate/espresso/instrumentation)

Configure AndroidJUnitRunner instrumentation arguments per run.

- ### [Test filters](https://testingbot.com/support/app-automate/espresso/filter)

Run a subset of your Espresso suite without rebuilding the bundle.

- ### [Test reports](https://testingbot.com/support/app-automate/espresso/test-reports)

Video, logcat, screenshots and JUnit XML for every run.

- ### [Screenshots](https://testingbot.com/support/app-automate/espresso/screenshots)

Take in-test screenshots and pull them via the REST API.

- ### [Network throttling](https://testingbot.com/support/app-automate/espresso/simulate-network-conditions)

Simulate 3G, 4G, lossy WiFi and offline conditions per session.

- ### [Localization & geo](https://testingbot.com/support/app-automate/espresso/set-localization-options)

Set device locale, language and GPS coordinates for store-front and back-end checks.

 本物のAndroidデバイス 
## Galaxy、Pixel、OnePlus、Xiaomiをオンデマンドで提供

TestingBot クラウド プラットフォームで Espresso を使用して実際の Android デバイスをテストします。TestingBot は Android 4.4 から Android 15 までのデバイスに対応しています。

[すべてのデバイスを表示](https://testingbot.com/support/app-automate/devices)

 ![Test online on Galaxy S26](https://ja.testingbot.com/assets/devices/160h/40-e917ed08e15b5941fed75855ac457dd1df46b471a2020f081c4d70cefb68f4e8.webp)

Galaxy S26

 ![Test online on Huawei P40](https://ja.testingbot.com/assets/devices/160h/39-32a788c7e66a3da1c88eaaefefd37381f729e510f096b43906968b6907c44c57.webp)

Huawei P40

 ![Test online on Pixel 10](https://ja.testingbot.com/assets/devices/160h/37-738ed465eff0a4bcc33a5294f6f9f4d701fed317ce0e97e202ffc3f9dca7edd4.webp)

Pixel 10

 ![Test online on Pixel 9](https://ja.testingbot.com/assets/devices/160h/35-abb9a661ebbfa84f18bd6985d3e80330ad43fe4ea7d408157c87ae0f560a5ca1.webp)

Pixel 9

 ![Test online on Galaxy S25](https://ja.testingbot.com/assets/devices/160h/34-ba3caa0fe8fb834ea684e524f6ad690ca4f78402e85a51a48e94ad4dfcb93208.webp)

Galaxy S25

 ![Test online on Redmi Note 13](https://ja.testingbot.com/assets/devices/160h/32-5f416c0f9e99cc3c6782b2b50072f406a8056e009850c16693dbc1fe815f88db.webp)

Redmi Note 13

 ![各実行時のビデオ、スクリーンショット、およびJUnit XML](https://ja.testingbot.com/assets/features/test-results-315382c39a67ad52167d2a4fd78570c99aea3e0ec386c17e82265851e93cb7b3.png)

 テストレポート 
## 各実行時のビデオ、スクリーンショット、およびJUnit XML

Espressoの実行ごとに、ビデオ画面録画、logcat出力、ビューポートのスクリーンショット、および主要なCIパーサーすべてに対応したJUnit XMLレポートが付属します。

テスト結果に基づいてセッションを合格または不合格としてマークし、 [REST API](https://testingbot.com/support/api)を介して成果物を取得し、結果を Jira、Slack、または CI ダッシュボードに送信します。

- すべてのテスト実行のフルHDビデオ
- logcatの出力、アプリのログ、クラッシュレポート
- ビューポートのスクリーンショットをリクエストに応じて表示
- Jenkins、GitHub Actions、GitLab CI 用の JUnit XML

 継続的インテグレーション 
## EspressoをCI/CDに数分で接続できます

TestingBotは、主要なCI/CDツールすべてと連携します。トリガーEspressoはすべてのビルドで実行され、デバイスビデオをストリーミング配信し、JUnitレポートをビルドダッシュボードにフィードバックします。

 ![Jenkins](https://ja.testingbot.com/assets/integrations/jenkins-e586a1c4af833e4c8d38d7b392a4e84bd193f30cae9cf8c9f198a58ec943a1ff.webp)

### [Jenkins](https://testingbot.com/support/integrations/ci-cd/jenkins)

 ![Bamboo](https://ja.testingbot.com/assets/integrations/bamboo-c8fe09a3cb0b74d6055e3aa6607d77720bfe29ff487b8e3cf825138adf634346.svg)

### [Bamboo](https://testingbot.com/support/integrations/ci-cd/bamboo)

 ![TeamCity](https://ja.testingbot.com/assets/integrations/teamcity-7e75cdb835903a4983ad276c41d95e569ceac5be486e96ec1f955029ce5bb319.svg)

### [TeamCity](https://testingbot.com/support/integrations/ci-cd/teamcity)

 ![CircleCI](https://ja.testingbot.com/assets/integrations/circleci-ede029654ff39b60342e4a5bba8fc9a3a49305cc38bda215b7cf8d07e85e0543.webp)

### [CircleCI](https://testingbot.com/support/integrations/ci-cd/circleci)

 ![GitLab CI](https://ja.testingbot.com/assets/integrations/gitlab-e4c0b6db07d07bc0a400f5606e258f4dc8a51b778e97bbfa51d1d531f3cb049a.webp)

### [GitLab CI](https://testingbot.com/support/integrations/ci-cd/gitlab)

 ![GitHub](https://ja.testingbot.com/assets/integrations/github-actions-8436242ad9e15381f84f1a98a10dddce15611087f121d6305782e211942b7842.webp)

### [GitHub](https://testingbot.com/support/integrations/ci-cd/github-actions)

Spoof device GPS
20+ regions

アメリカ合衆国

イギリス

ドイツ

フランス

スペイン

ベルギー

オーストラリア

中国

日本

 位置情報テスト 
## 20以上の地域でAndroidアプリをテストしてください。

デバイスのGPSを世界中のどこにでも偽装し、顧客が居住するどの国からでも、 **位置情報** 、 **ジオターゲティング** 、および **Playストアのストアフロントルールを** 検証できます。

 セキュアデバイス 
## 実機を使用。セッション終了後は毎回データが消去されます。

Espressoのセッションでは、テスト専用に1台のAndroid端末がロックされます。テストが終了すると同時に、端末は初期化され、インストールされているすべてのアプリが削除され、キャッシュがクリアされた後、次の顧客が使用できるよう端末プールに戻されます。

SOC 2に準拠し、GDPRにも適合。SAML SSOと監査ログを企業チーム向けに提供。

- セッションごとに1台のデバイスのみを使用し、共有はしません。
- セッションごとに消去されます
- アプリごとの保持期間制御機能を備えた暗号化された.apkファイルのアップロード

[TestingBotトラストセンターにアクセス](https://trust.testingbot.com/)

1. 1

エスプレッソの実行で、実際のデバイスが1つロックされます。

お客様のセッション専用に、新品同様のGalaxy、Pixel、OnePlus、またはXiaomiをご用意いたします。

2. 2

テストは実際のAndroidハードウェア上でネイティブに実行されます

本物のセンサー、本物の指紋リーダー、本物のOEMカスタマイズ。

3. 3

デバイスはリリース時に消去されます

アプリを削除し、キャッシュをクリアし、アカウントを消去しました。クリーンな状態でプールに戻しました。

 Secure Tunnel 
## 内部バックエンドと通信するテストアプリ

Espressoの実行時に、プライベートAPI、ステージング環境、およびlocalhost上で実行されているサービスにアクセスできるように、当社の[セキュアトンネル](https://testingbot.com/support/tunnel)を使用してください。

エンドツーエンドで暗号化され、受信ファイアウォールルールは不要で、主要なCIプロバイダーにすぐに利用できます。

 ![TestingBot secure tunnel for Espresso](https://ja.testingbot.com/assets/features/tunnel-diagram-poster-8c25e19e6fe4f7276a46a96b31a0ad0e07bb4f5bf98dc192d2b70897cfbb1a26.png)

[続きを読む](https://ja.testingbot.com/support/tunnel)

よくある質問
## TestingBotのEspressoに関するよくある質問

Espressoとは何ですか？また、TestingBotでEspressoを実行する理由は何ですか？

Espressoは、Googleが開発したAndroid向けネイティブUIテストフレームワークです。TestingBotは、Galaxy、Pixel、OnePlus、Xiaomiといった実機デバイス群上でEspressoビルドを実行するため、デバイス、OEMアップデート、ADBトンネルなどを社内で管理する必要はありません。TestingBot CLIを使用して`.apk`ファイルと`.apk`テストバンドルをアップロードするだけで、数秒でテストを実行できます。

どのAndroidバージョンがサポートされていますか？

TestingBotは、Android 4.4からAndroid 15までの実機Androidデバイスをサポートしており、GoogleおよびOEMのリリースごとに更新されています。最新のフラッグシップGalaxy、Pixel、OnePlusスマートフォンに加え、下位互換性を確保するための豊富な旧機種も取り揃えています。

実機とエミュレーターの両方で実行できますか？

はい。TestingBotでは、実機のAndroidデバイスとGoogle Play APIを搭載したAndroidエミュレータの両方に対応しています。TestingBot CLIで--real-deviceフラグを使用して、テストごとに切り替えることができます。

Espressoを並列実行することはできますか？

はい。TestingBotのプランには、実機およびエミュレータ上で最大100個のEspressoセッションを並行して実行できる機能が含まれています。各セッションは専用のデバイスをロックするため、テスト同士が干渉することはありません。

実行するテストを絞り込むことはできますか？

はい。 [テストフィルタAPI](https://testingbot.com/support/app-automate/espresso/filter)を使用すれば、バンドルを再構築することなく、Espressoスイートの一部を実行できます。

結果はどのように確認できますか？

TestingBotダッシュボードで、HDビデオ、logcat出力、スクリーンショットをリアルタイムで確認できます。REST [API](https://testingbot.com/support/api)経由でプログラムによる操作も可能です。さらに、主要なCIパーサーすべてに対応したJUnit XMLレポートも提供します。

Espressoは私のステージングバックエンドに接続できますか？

当社の[セキュアトンネル](https://testingbot.com/support/tunnel)をインストールすれば、Espressoの実行環境は、受信ファイアウォールルールを設定することなく、ステージングAPI、内部サービス、およびlocalhostにアクセスできます。

このデバイスのクラウドはGDPR/SOC 2に準拠していますか？

TestingBotはGDPRに準拠し、EU域内にデータ保管場所を確保しています。また、ISO 27001に準拠し、STARレベル1の認証を取得しています。デバイスはセッション間でデータ消去され、アプリのアップロードは暗号化されます。エンタープライズプランでは、SAML SSOと監査ログが利用可能です。

## エスプレッソテストを開始する準備はできましたか？

開始するには、 [EspressoTesting](https://testingbot.com/support/app-automate/espresso)のドキュメントを参照してください。

[無料トライアルを開始する](https://ja.testingbot.com/users/sign_up)

あなたが好きかもしれないリソース

[![Android Espresso Tutorial](https://ja.testingbot.com/assets/resources/articles/19-fe4971eb8049097c25f2cc2fce95b71b94f3bb342e094c219b2404c09374f015.webp)](https://testingbot.com/resources/articles/android-espresso-testing)
### [Android Espresso Tutorial](https://testingbot.com/resources/articles/android-espresso-testing)

Learn more about Android Espresso Testing in this tutorial.

[続きを読む](https://testingbot.com/resources/articles/android-espresso-testing)
