下面是关于Android 11 平台GMS GTS测试所遇到的问题在此记录下:
1. 需要向Google提白名单后配置APE_API_KEY测试 1.1 case
arm64-v8a armeabi-v7a GtsAssistIntentTestCases com.google.android.assist.gts.AssistIntentConditionalTest#testSoundTriggerModuleMinimumVersion com.google.android.assist.gts.AssistIntentConditionalTest#testDefaultAssistantComponentNameSetting com.google.android.assist.gts.AssistIntentConditionalTest#testDefaultVoiceInteractionService com.google.android.assist.gts.KeyphraseModelManagerTest#verifyRecoveryOfBadModel com.google.android.assist.gts.KeyphraseModelManagerTest#testDownloadModelMap
arm64-v8a armeabi-v7a GtsAssistantWorkProfileHostTestCases com.google.android.assist.gts.host.workprofile.AssistHostConditionalTest#testDefaultVoiceInteractionService
arm64-v8a armeabi-v7a GtsDialerAudioTestCases com.google.android.dialer.helper.DialerAudioTest#testDialerAudioFeature
arm64-v8a armeabi-v7a GtsDuoReadyTestCases com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecSimulcastBitrateVP8 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecSimulcastBitrateVP9 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecSimulcastEncoderQualityVP8 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecSimulcastEncoderQualityVP9 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDynamicFrameRateVP8 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDynamicFrameRateVP9 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDynamicBitrateH264 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDynamicBitrateHEVC com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecEncoderQualityVP8 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecEncoderQualityVP9 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecSimulcastEncoderQualityH264 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecSimulcastEncoderQualityHEVC com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecRequestSyncFrameH264 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecRequestSyncFrameHEVC com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDynamicFrameRateH264 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDynamicFrameRateHEVC com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDelayVP8 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDelayVP9 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecRequestSyncFrameVP8 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecRequestSyncFrameVP9 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDynamicBitrateVP8 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDynamicBitrateVP9 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecSimulcastBitrateH264 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecSimulcastBitrateHEVC. com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecEncoderQualityH264 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecEncoderQualityHEVC com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDelayH264 com.google.android.duo.gts.DuoReadyTest#testDuoReadyCodecDelayHEVC
arm64-v8a armeabi-v7a GtsJniUncompressHostTestCases com.google.android.gts.jniuncompress.GtsJniUncompressHostTest#testJniLibsUncompresse
arm64-v8a armeabi-v7a GtsMbaPrivilegedPermissionTestCases com.google.android.mbaprivilegedpermission.gts.GtsAccessibilityUiAutomationTest#testMbaPrivilegedPermission com.google.android.mbaprivilegedpermission.gts.GtsAppDownloaderInstallerTest#testMbaPrivilegedPermission com.google.android.mbaprivilegedpermission.gts.GtsAppNetworkUsageStatisticsTest#testMbaPrivilegedPermission com.google.android.mbaprivilegedpermission.gts.GtsDebugCertificateTest#testMbaPrivilegedPermission com.google.android.mbaprivilegedpermission.gts.GtsForcedKeepEnabledAppsTest#testMbaPrivilegedPermission com.google.android.mbaprivilegedpermission.gts.GtsNotificationAccessListenersTest#testMbaPrivilegedPermission
arm64-v8a armeabi-v7a GtsNmgiarcTestCases com.google.android.comms.DialerTests#testDialerInstalledCorrectly. com.google.android.comms.DialerTests#testDialerMinVersion. com.google.android.comms.DialerTests#testDialerPreloadStatus com.google.android.comms.MessagesTests#testMessagesVersionCheck com.google.android.comms.MessagesTests#testMessagesInstalledCorrectly com.google.android.comms.MessagesTests#testAcsaRequirements
arm64-v8a armeabi-v7a GtsPermissionTestCases com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testPreGrantsWithRemoteExceptions com.google.android.permission.gts.RequiredPregrantPermissionsTest#checkRequiredPregrantPermission
arm64-v8a armeabi-v7a GtsPlacementTestCases com.google.android.placement.gts.CoreGmsAppsTest#testGoogleDuoPreloaded com.google.android.placement.gts.CoreGmsAppsVersionTest#testCoreGmsAppsVersions com.google.android.placement.gts.DefaultIntentTest#testDefaultIntentHandlers com.google.android.placement.gts.HomescreenLayoutTest#testShortcutPlacement com.google.android.placement.gts.HomescreenPlacementTest#testAppPlacement com.google.android.placement.gts.InstalledAppsTest#testAppsInstalled com.google.android.placement.gts.InstalledAppsTest#testSystemAppsInstalled com.google.android.placement.gts.UiPlacementTest#testAppPresent com.google.android.placement.gts.UiPlacementTest#testRSACompliance com.google.android.placement.gts.UiPlacementTest#testEEAv2AppPlacement
arm64-v8a armeabi-v7a GtsRegulationComplianceTestCases com.google.android.regulationcompliance.gts.EEAComplianceTest#testEEAv2Compliance. com.google.android.regulationcompliance.gts.RUComplianceTest#testRUCompliance
arm64-v8a armeabi-v7a GtsSettingsTestCases com.google.android.settings.gts.HomepageDisplayTest#launchGoogleSettings_shouldInvokeGmsSettings com.google.android.settings.gts.MADAComplianceTest#testMADACompliance
arm64-v8a armeabi-v7a GtsSmsCallLogTestCases com.google.android.smscalllog.gts.GtsSmsCallLogTest#testSmsCallLogAgainstAllowlist
1.2 fail logs java.lang.RuntimeException: Test failed due to unrecognized service account for this product, please submit an initial GTS report for this product with full EDI (run gts -m GtsEdiHostTestCases) at https://partner.android.com/approvals/upload-report and try again. 2. 需要Google key 2.1 case
arm64-v8a GtsGmscoreHostTestCases com.google.android.gts.security.AttestationRootHostTest#testEcAttestationChain com.google.android.gts.security.AttestationRootHostTest#testRsaAttestationChain
armeabi-v7a GtsGmscoreHostTestCases com.google.android.gts.security.AttestationRootHostTest#testEcAttestationChain com.google.android.gts.security.AttestationRootHostTest#testRsaAttestationChain
2.2 fail logs
junit.framework.AssertionFailedError: com.google.android.gts.security.AttestationRootTest.testRsaAttestationChain failed. junit.framework.AssertionFailedError: com.google.android.gts.security.AttestationRootTest.testEcAttestationChain failed.
3. 需要白卡测试 3.1 case
arm64-v8a GtsSimAppDialogTestCases com.google.android.simappdialog.gts.InstallCarrierAppActivityTest#testNotificationOnlyDuringSetupWizard com.google.android.simappdialog.gts.InstallCarrierAppActivityTest#testActivityAndNotificationShown_notNowPressed com.google.android.simappdialog.gts.InstallCarrierAppActivityTest#testActivityAndNotificationShown_downloadPressed
armeabi-v7a GtsSimAppDialogTestCases com.google.android.simappdialog.gts.InstallCarrierAppActivityTest#testNotificationOnlyDuringSetupWizard com.google.android.simappdialog.gts.InstallCarrierAppActivityTest#testActivityAndNotificationShown_notNowPressed com.google.android.simappdialog.gts.InstallCarrierAppActivityTest#testActivityAndNotificationShown_downloadPressed
3.2 fail logs
java.lang.AssertionError: Carrier install notification failed to show. java.lang.AssertionError: Dialog not shown. Is the test SIM inserted?
4. 需要GPS信号很好的地方测试 4.1 case
arm64-v8a GtsLocationTestCases com.google.android.location.gts.gnss.GnssLocationValuesTest#testAccuracyFields com.google.android.location.gts.gnss.GnssLocationValuesTest#testLocationRegularFields fail com.google.android.location.gts.gnss.GnssMeasurementValuesTest#testListenForGnssMeasurements com.google.android.location.gts.gnss.GnssPseudorangeVerificationTest#testPseudoPosition com.google.android.location.gts.gnss.GnssPseudorangeVerificationTest#testPseudorangeValue
armeabi-v7a GtsLocationTestCases com.google.android.location.gts.gnss.GnssLocationValuesTest#testAccuracyFields com.google.android.location.gts.gnss.GnssLocationValuesTest#testLocationRegularFields com.google.android.location.gts.gnss.GnssMeasurementValuesTest#testListenForGnssMeasurements com.google.android.location.gts.gnss.GnssPseudorangeVerificationTest#testPseudoPosition com.google.android.location.gts.gnss.GnssPseudorangeVerificationTest#testPseudorangeValue
4.2 fail logs
junit.framework.AssertionFailedError: Time elapsed without getting enough location fixes. Possibly, the test has been run deep indoors. Consider retrying test outdoors.
5. 需要再开机向导连接外网登录Google账号 5.1 case
arm64-v8a GtsSetupWizardHostTestCases com.google.android.gts.setupwizard.SetupWizardZeroTouchTest#testZeroTouch_zeroTouchWrapperLaunched
5.2 fail logs
junit.framework.AssertionFailedError: SetupWizard didn’t launch ZeroTouchWrapper.
6. 网络不好一般复测即可通过 6.1 Fail logs 如下基本都可以复测通过
java.lang.Exception: Failed components: < Network Connection Check: Could not ping yt-dash-mse-test.commondatastorage.googleapis.com because failed to connect to /243.185.187.39 (port 80) from /:: (port 44782): connect failed: ETIMEDOUT (Connection timed out) > java.lang.Exception: Failed components: < Audio Reached Seconds: The video only played to 8777 ms instead of 20000 ms > < Continous Video Progress: Playback got stuck at 3666666 us > < No Exceptions: An exception occurred during playback (null) > < Video Reached Seconds: The video only played to 3666 ms instead of 20000 ms > java.lang.Exception: Failed components: < Audio Reached Seconds: The video only played to 8405 ms instead of 80000 ms > < Continous Video Progress: Playback got stuck at 3333000 us > < No Exceptions: An exception occurred during playback (null) > < Video Reached Seconds: The video only played to 3333 ms instead of 80000 ms >