החל מ-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 (שעון 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-07-27 (שעון 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)"]]