2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
Trade Federation 콘솔
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Trade Federation 콘솔은 Trade Federation의 상태, 그리고 Trade Federation에서 확인하는 기기 상태, 현재 진행 중인 테스트 등을 검사할 수 있게 해주는 선택적 구성요소입니다.
이는 병렬 방식으로 실행되고 있는 다수의 테스트를 모니터링하고 각 테스트의 진행 상황을 이해할 수 있게 해주는 유용한 도구입니다.
콘솔에 도달
Tradefed가 빌드되면 경로에서 tradefed.sh
런처 스크립트에 액세스할 수 있으며 사용자가 기본으로 콘솔로 이동합니다.
콘솔은 tf >
프롬프트로 콘솔 자체를 표현합니다.
콘솔의 기능은 무엇인가요?
콘솔의 help
에는 항상 최신 정보가 나열됩니다.
몇 가지 흥미로운 관련 기능은 다음과 같습니다.
- 기기, 그리고 Tradefed가 기기 상태를 확인하는 방식을 나열합니다.
list devices
- 현재 실행 중인 호출과 관련 메타데이터를 나열합니다.
list invocations
- 실행 중인 모든 호출과 Tradefed의 로그를 가져옵니다.
dump logs
콘솔을 사용하면 다른 곳에 함께 표시되지 않은 일부 상태를 쿼리하여 Tradefed와 기기에서 일어나고 있는 상황을 디버그할 수 있습니다.
콘솔을 사용 중지하려면 어떻게 해야 하나요?
일회성 명령어를 실행하는 경우와 같이 콘솔이 필요하지 않은 경우도 있습니다. 스크립트에서 Tradefed를 실행하거나 출력을 직접 파이핑할 때는 콘솔을 사용 중지해야 합니다. 콘솔이 사용 설정된 스크립트에서 Tradefed를 실행하면 예기치 않은 동작이 발생할 수 있습니다.
콘솔이 시작되지 않도록 하려면 commandAndExit
인수와 함께 tradefed.sh
런처 스크립트를 실행합니다.
tradefed.sh run commandAndExit <usual command>
콘솔 자동 완성
콘솔은 기본적인 구성 이름 자동완성 기능을 제공합니다.
tf > run <hit TAB>
result in:
Display all 167 possibilities? (y or n)
run
이후에 탭을 누르면 가용한 구성의 전체 목록을 가져올 수 있습니다. 또한 이름의 일부를 이미 입력한 경우에는 콘솔이 가능한 모든 항목을 출력합니다.
tf >run tf/<HIT TAB>
tf/acceptance tf/fake tf/func
tf/stress tf/uiautomator tf/unit-runner
tf >run tf/
이는 정확한 구성 이름이 기억나지 않을 때 유용합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 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,["# 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."]]