اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
Trade Federation Console
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
Trade Federation Console هو مكوّن اختياري يتيح لك فحص
حالة Trade Federation والبيانات التي يعرضها، بدءًا من حالات الجهاز وحتى
الاختبارات الحالية الجارية.
وهي أداة رائعة لمراقبة عدد كبير من الاختبارات التي يتم إجراؤها بشكل متزامن
ومعرفة مستوى تقدّم كل اختبار.
الوصول إلى وحدة التحكّم
بعد إنشاء Tradefed، يمكن الوصول إلى نص التشغيل tradefed.sh
من
المسار الذي حدّدته، وسينقلك تلقائيًا إلى وحدة التحكّم.
تعرض وحدة التحكّم نفسها من خلال الطلب tf >
.
ما هي الإجراءات التي يمكن لوحدة التحكّم تنفيذها؟
ستعرض help
وحدة التحكّم دائمًا أحدث المعلومات.
في ما يلي بعض الميزات المثيرة للاهتمام:
- يجب إدراج الأجهزة وحالة كل جهاز وفقًا لنظام Tradefed:
list devices
- يمكنك إدراج عمليات الاستدعاء التي يتم تنفيذها حاليًا وبياناتها الوصفية:
list invocations
- الحصول على سجلّات جميع عمليات الاستدعاء الجارية وTradefed:
dump logs
تتيح لك وحدة التحكّم تصحيح الأخطاء في ما يحدث في Tradefed والأجهزة من خلال
الاستعلام عن بعض الحالات التي لا تظهر معًا في أي مكان آخر.
كيف يمكنني إيقاف وحدة التحكّم؟
في بعض الأحيان، لا تكون وحدة التحكّم مطلوبة، مثل عند تنفيذ أمر لمرة واحدة. يجب إيقاف
وحدة التحكّم عند تشغيل Tradefed من نص برمجي أو عند
توجيه مخرجاته مباشرةً. يمكن أن يؤدي تشغيل Tradefed من نص برمجي مع تفعيل وحدة التحكّم
إلى حدوث سلوك غير متوقّع.
لمنع بدء وحدة التحكّم، يمكنك تشغيل نص التشغيل tradefed.sh
باستخدام الوسيطة commandAndExit
.
tradefed.sh run commandAndExit <usual command>
الإكمال التلقائي في وحدة التحكّم
توفّر وحدة التحكّم ميزة الإكمال التلقائي الأساسية لأسماء الإعدادات.
tf > run <hit TAB>
result in:
Display all 167 possibilities? (y or n)
من خلال الضغط على مفتاح التبويب (Tab) بعد الرمز run
، يمكنك الحصول على القائمة الكاملة للإعدادات
المتوفّرة. وإذا سبق لك كتابة اسم جزئي، ستتم معالجة كل الاحتمالات في وحدة التحكّم.
tf >run tf/<HIT TAB>
tf/acceptance tf/fake tf/func
tf/stress tf/uiautomator tf/unit-runner
tf >run tf/
ويُفيد ذلك عندما لا تتذكر اسم الضبط الدقيق.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ 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,["# Trade Federation Console\n\nThe Trade Federation Console is an optional component that allows you to inspect\nthe state of Trade Federation and what it sees, from the device states to the\ncurrent tests in progress.\n\nIt is a great tool for monitoring a large number of tests running in parallel\nand understanding the progress of each test.\n\nReach the console\n-----------------\n\nOnce Tradefed is built, the `tradefed.sh` launcher script is accessible from\nyour path and by default will take you to the console.\n\nThe console presents itself with the `tf \u003e` prompt.\n\nWhat can the console do?\n------------------------\n\nThe `help` of the console will always list the most up-to-date information.\nA few interesting features of it are:\n\n- List the devices and how Tradefed sees their state: `list devices`\n- List the currently running invocations and their metadata: `list invocations`\n- Get the logs of all running invocations and Tradefed: `dump logs`\n\nThe console allows you to debug what is happening in Tradefed and the devices by\nquerying some states that are not shown together anywhere else.\n\nHow do I disable the console?\n-----------------------------\n\nSometimes the console isn't needed, such as when running a one-time command. The\nconsole must be disabled when running Tradefed from a script or when\npiping its output directly. Running Tradefed from a script with the console\nenabled can cause unexpected behavior.\n\nTo prevent the console from starting, run the `tradefed.sh` launcher script with\nthe `commandAndExit` argument. \n\n tradefed.sh run commandAndExit \u003cusual command\u003e\n\nConsole autocompletion\n----------------------\n\nThe console provides basic autocompletion of configuration names. \n\n tf \u003e run \u003chit TAB\u003e\n result in:\n Display all 167 possibilities? (y or n)\n\nBy hitting TAB after the `run` you can get the full list of configurations\navailable. And if you have a partial name already typed in, the console will\nprint all the possibilities. \n\n tf \u003erun tf/\u003cHIT TAB\u003e\n\n tf/acceptance tf/fake tf/func\n tf/stress tf/uiautomator tf/unit-runner\n tf \u003erun tf/\n\nThis is a useful when you don't remember an exact configuration name."]]