2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
Mobly テスト フレームワーク
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Mobly は、エンドツーエンドで自動化されたホストドリブン テストを実施するためのオープンソースのテスト フレームワークです。Mobly を使用すると、複数のデバイスにわたってアクションをオーケストレートし、Wi-Fi や電話などの Android の機能を検証できます。
Mobly の基本
Mobly では、Android の機能を検証する Mobly テストを作成して実行できます。Mobly の基本的な使用方法については、Mobly チュートリアルをご覧ください。
Mobly Snippet Lib を使用して、ホストからデバイス側のコードをトリガーするカスタムテスト APK を開発することもできます。
Mobly の機能
Mobly テスト フレームワークは次の機能を備えています。
Mobly テストの例
Android の機能を対象にした Mobly テストの例を以下に示します。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-04-04 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-04-04 UTC。"],[],[],null,["# Mobly test framework\n\n[Mobly](https://github.com/google/mobly/) is an open-source test framework for\nhost-driven, end-to-end automated testing. You can use Mobly to orchestrate\nactions across multiple devices to validate Android features including Wi-Fi and\ntelephony.\n\nMobly basics\n------------\n\nUsing Mobly, you can write and execute Mobly tests to verify Android features.\nTo learn the basics of using Mobly, see the\n[Mobly tutorial](https://github.com/google/mobly/blob/master/docs/tutorial.md).\n\nYou can also use the\n[Mobly Snippet Lib](https://github.com/google/mobly-snippet-lib)\nto build custom test APKs for triggering device-side code from the host.\n\nMobly features\n--------------\n\nThe Mobly test framework provides the following features:\n\n- Flexible test organization\n\n - Mobly is a standalone library, on which users can build different test\n suites. Mobly users are isolated from other users' changes.\n\n - Users can add dependencies to project-specific test suites without\n impacting other users.\n\n - Mobly snippets lets users create custom test APKs with only the APIs\n relevant to the test. This minimizes the file size overhead of test\n APKs.\n\n- Simple to maintain and debug\n\n - Mobly provides informative test results including test and snippet\n stacktraces, and per-test-iteration results for repeated or retried\n tests.\n\n - The Mobly codebase is covered by presubmit unit tests, and enforces unit\n test coverage for new code contributions, which reduces the risk of code\n errors.\n\n- Mobly snippet APKs can run without privileged access, which allows testing\n on a large number of platforms.\n\nExample Mobly tests\n-------------------\n\nThe following are examples of Mobly tests for Android features:\n\n- Test for [Wi-Fi Direct](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/tests/hostsidetests/multidevices/test/direct/wifi_direct_test.py)\n- Test for [CompanionDeviceManager](https://cs.android.com/android/platform/superproject/+/android-latest-release:frameworks/base/tests/CompanionDeviceMultiDeviceTests/host/cdm_transport_test.py)"]]