اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
كتابة اختبارات Tradefed وتنفيذها
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يستهدف هذا القسم المطوّرين أو كاتبي الاختبارات، ويقدّم إرشادات حول تنفيذ الاختبار، بالإضافة إلى كتابة الاختبارات. تنقسم التعليمات إلى فئتين أساسيتَين من الاختبارَين:
نوضّح بعض الميزات التي تنطبق على كلّ من الاختبارات ضمن الحزمة وغير ضمن الحزمة،
مثل:
نقدّم أيضًا بعض الأمثلة العامة الشاملة حول كيفية إجراء بعض
أنواع الاختبارات الأكثر شيوعًا، مثل:
لا تتطلّب الأمثلة أعلاه للتشفير التام بين الأطراف إجراء عملية دفع على الجهاز فقط في Android. يمكنك
ببساطة
تنزيل Tradefed
واستخدامه مباشرةً.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ 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,["# Write and run Tradefed tests\n\nThis section is aimed at developers, or test writers, providing guidance on test\nexecution, as well as writing tests. The instructions are split into two broad\ncategories of tests:\n\n- Tests executing [directly through Tradefed](/docs/core/tests/tradefed/testing/through-tf).\n- Tests executing in the [context of a suite](/docs/core/tests/tradefed/testing/through-suite), for example the [Android Compatibility Test Suite (CTS)](/docs/compatibility/cts).\n\nWe detail some features that are applicable to both suite and non-suite tests,\nfor example:\n\n- [Automatic Retries](/docs/core/tests/tradefed/testing/through-tf/auto-retry) for tests.\n- [Retry Isolation](/docs/core/tests/tradefed/testing/through-tf/retry-isolation) for tests.\n\nWe also provide some generic end-to-end examples about how to run some of the\nmore common test types, such as:\n\n- Execute the [instrumentation tests from an existing APK](/docs/core/tests/tradefed/testing/through-tf/instrumentation).\n\nThe end-to-end examples above do not require a local checkout of Android. You\ncan simply\n[download Tradefed](/docs/core/tests/tradefed/fundamentals/machine_setup#download-tradefed)\nand use them directly."]]