2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
인스턴트 앱용 CTS 인증 도구
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
인스턴트 앱용 CTS 인증 도구는 시스템 UI와 같은 OEM별 UI로 인해 완전히 자동화할 수 없는 기능을 CTS 인증 도구를 사용하여 테스트할 수 있도록 인스턴트 앱의 Android 호환성 테스트 적용 범위를 넓힙니다.
요구사항
인스턴트 앱용 CTS 인증 도구를 실행하기 전에 다음과 같은 장비가 있는지 확인합니다.
- CTS를 성공적으로 통과하여 Android API 호환성이 확인된 Android 기기 이 기기가 테스트 대상 기기(DUT)입니다.
- USB 2.0 호환 포트가 있는 Linux 컴퓨터 DUT로의 모든 연결은 이 포트를 통해 이루어집니다.
DUT에 인스턴트 앱 설치
CtsVerifierInstantApp.apk
및 CTS 검증 도구는 android-cts-verifier.zip
에 포함되어 있으며, Q-EAP 대시보드에 로그인하여 확인할 수 있습니다.
그림 1. DUT에 인스턴트 앱 설치
파트너는 CTS 인증 도구를 수동으로 빌드하여 CTS를 빌드하고 새로운 수정 사항을 통합하거나 테스트할 수 있습니다. CtsVerifierInstantApp.apk
의 수동 빌드 방법 호스트에서 다음 명령을 실행합니다.
make CtsVerifierInstantApp
CtsVerifierInstantApp.apk
설치를 위해 호스트에서 다음 명령어를 실행합니다.
adb install -r --instant CtsVerifierInstantApp.apk
adb install -r --instant /path/to/CtsVerifierInstantApp.apk
테스트 실행
인스턴트 앱 테스트 카테고리의 홈 화면에 3가지 시스템 UI 테스트가 표시됩니다.
그림 2. 홈 화면
인스턴트 앱 테스트 카테고리에서 테스트를 탭하면 테스트 화면이 열립니다.
테스트 화면에는 다음이 포함됩니다.
- 안내
- 테스트 시작 버튼
- 3개의 표준 CTS 인증 도구 버튼
테스트 시작 버튼을 탭하면 샘플 인스턴트 앱이 실행됩니다.
그림 3. 테스트 화면
Start Test를 처음 탭하면 샘플 인스턴트 앱 설치 안내가 표시된 알림 대화상자가 열립니다(그림 4).
샘플 인스턴트 앱이 이미 설치된 경우 이 대화상자는 다른 인스턴트 앱 테스트에 표시되지 않습니다.
그림 4. 설치 안내 대화상자
도움말 버튼을 탭하면 테스트 설명이 포함된 팝업 대화상자가 열립니다.
그림 5. 도움말 팝업 대화상자
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 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,["# CTS Verifier for Instant Apps increases Android Compatibility test coverage for Instant\nApps by using CTS Verifier to test features that can't be fully automated due to OEM-\nspecific UIs, such as system UIs.\n\n### Requirements\n\n\nBefore running CTS Verifier for Instant Apps, ensure that you have the following equipment:\n\n- Android device that has verified Android API compatibility by successfully passing the CTS. This is the device-under-test (DUT).\n- Linux computer with USB 2.0 compatible port. All connections to the DUT are through this port.\n\n### Install Instant Apps on DUT\n\n\n`CtsVerifierInstantApp.apk` and the CTS verifier are included in\n`android-cts-verifier.zip`, which can be found by logging in to the [Q-EAP dashboard](https://partner.android.com/build/builds;branch=git_qt-release;product=aosp_arm?a=1016313942).\n\n\n**Figure 1.** Installing Instant App on DUT\n\n\nThe partners can manually build the CTS Verifier to\n[build CTS](/docs/compatibility/cts/development) to incorporate or test out\nnew fixes. To manually build `CtsVerifierInstantApp.apk`. issue the following command on\nthe host: \n\n```\nmake CtsVerifierInstantApp\n```\n\n\nTo install `CtsVerifierInstantApp.apk`, issue the following commands on host. \n\n```\nadb install -r --instant CtsVerifierInstantApp.apk\n``` \n\n```\nadb install -r --instant /path/to/CtsVerifierInstantApp.apk\n```\n\n### Run tests\n\n\nThe three system UI tests are displayed in the home screen under the Instant Apps test category.\n\n\n**Figure 2.** Home screen\n\n\nWhen you tap a test under the Instant Apps test category, a test screen opens for the test.\nThe test screen contains the following:\n\n- Instructions\n- **Start Test** button\n- Three standard CTS Verifier buttons\n - Pass\n - Help\n - Fail\n\n\nTapping the **Start Test** button launches the sample Instant App.\n\n\n**Figure 3.** Test screen\n\n\nThe first time you tap the **Start Test**, an alert\ndialog opens with instructions for installing the sample Instant App (Figure 4).\nIf the sample Instant App is already installed, this dialog isn't shown\nfor other instant app tests.\n\n\n**Figure 4.** Install instruction dialog\n\n\nTapping the **Help** button opens a pop-up dialog with description of the test.\n\n\n**Figure 5.** Help pop-up dialog"]]