از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
تست ها و چارچوب های رابط کاربری
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
این صفحه ابزارهایی را که می توانید برای آزمایش رابط کاربری استفاده کنید توضیح می دهد.
برای آزمایش UI و فریم ورک ها، از این ابزار استفاده کنید:
برای خودکار کردن تست رابط کاربری انتها به انتها، از UI Automator و کمککنندههای خودکار منبع باز ارائه شده با AOSP استفاده کنید.
برای آزمایش خودکار اتصال بلوتوث سرتاسر، از چارچوب متن باز Google Mobly استفاده کنید.
برای نوشتن تستهای مختصر، زیبا و قابل اعتماد رابط کاربری اندروید، از Espresso استفاده کنید.
برای ساخت، نصب و اجرای تست های اندروید به صورت محلی، از ابزار خط فرمان Atest استفاده کنید.
$ atest [optional-arguments] test-to-run
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# User interface tests and frameworks\n\nThis page describes the tools you can use to test the user interface.\n\nTo test the UI and frameworks, use these tools:\n\n- To automate end-to-end user interface testing, use the\n [UI Automator](https://developer.android.com/training/testing/ui-automator) and\n the open source auto-specific [Helpers](https://android.googlesource.com/platform/platform_testing/+/refs/heads/android16-release/libraries/app-helpers/interfaces/auto/src/android/platform/helpers)\n provided with\n AOSP.\n\n- To automate the testing of end-to-end Bluetooth connectivity, use the open source\n [Google Mobly](https://github.com/google/mobly) framework.\n\n- To write concise, beautiful, and reliable Android UI tests, use\n [Espresso](https://developer.android.com/training/testing/espresso).\n\n- To build, install, and run Android tests locally, use the\n [Atest](/compatibility/tests/development/atest) command line\n tool.\n\n ```bash\n $ atest [optional-arguments] test-to-run\n ```"]]