اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
إطار عمل اختبار Mobly
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
Mobly هو إطار عمل اختبار مفتوح المصدر لاختبار مُبرمَج شامل وتلقائي يستند إلى المضيف. يمكنك استخدام Mobly لتنسيق
الإجراءات على أجهزة متعددة للتحقّق من ميزات Android، بما في ذلك Wi-Fi و
الهاتف.
أساسيات Mobly
باستخدام Mobly، يمكنك كتابة اختبارات Mobly وتنفيذها للتحقّق من ميزات Android.
للتعرّف على أساسيات استخدام Mobly، اطّلِع على الدليل التعليمي حول Mobly.
يمكنك أيضًا استخدام مكتبة
Mobly Snippet Lib
لإنشاء حِزم APK اختبارية مخصّصة لتشغيل الرمز على الجهاز من المضيف.
ميزات Mobly
يوفّر إطار عمل اختبار Mobly الميزات التالية:
أمثلة على اختبارات Mobly
في ما يلي أمثلة على اختبارات Mobly لميزات Android:
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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)"]]