【GTS_6.0R3】GtsSimAppDialogTestCases三条case fail

问题描述


 com.google.android.simappdialog.gts.InstallCarrierAppActivityTest#testActivityAndNotificationShown_downloadPressed
fail java.lang.AssertionError: Dialog not shown. Is the test SIM inserted?
com.google.android.simappdialog.gts.InstallCarrierAppActivityTest#testActivityAndNotificationShown_notNowPressed
fail java.lang.AssertionError: Dialog not shown. Is the test SIM inserted?
com.google.android.simappdialog.gts.InstallCarrierAppActivityTest#testNotificationOnlyDuringSetupWizard
fail java.lang.AssertionError: Carrier install notification failed to show.

 

解决方案

【GTS_6.0R3】com.google.android.gts.cast.RemoteSubmixHostTest#testRecordFromRemoteSubmix

问题描述


 GtsGmscoreHostTestCases
com.google.android.gts.cast.RemoteSubmixHostTest#testRecordFromRemoteSubmix
fail junit.framework.AssertionFailedError:
com.google.android.gts.cast.RemoteSubmixTest.testRecordFromRemoteSubmix failed.

 

解决方案


继续阅读“【GTS_6.0R3】com.google.android.gts.cast.RemoteSubmixHostTest#testRecordFromRemoteSubmix”

CTS/GTS 问题分析11 | weiinter105

gts case是不放出源码的,这很不方便我们进行问题的分析,如果测试是apk,我们可以通过修改smali重新编译的方式赋值我们分析,那么,如果测试文件是一个jar包,那么应该如何处理呢?以本文为例记录分析方法

问题初探

测试命令:

run gts -m GtsUnofficialApisUsageTestCases -t com.android.gts.api.UnofficialApisUsageTest#testNonApiReferences

继续阅读“CTS/GTS 问题分析11 | weiinter105”

CTS/GTS问题分析6 | weiinter105

遇到一个Android P相关的问题,和原来CTS/GTS 问题分析1的表现是一样的,但是将http://gerrit.pt.miui.com/#/c/387000/这个修复cp过来,发现不生效,仍然报错,因此记录一下

问题初探

测试命令: run gts -m GtsGmscoreHostTestCases -t com.google.android.gts.devicepolicy.managedprovisioning.DeviceOwnerProvisioningHostsideTest#testRequiredAppsInManagedDevice

报错堆栈:

继续阅读“CTS/GTS问题分析6 | weiinter105”

CTS/GTS问题分析5 | weiinter105

问题初探

测试命令:

run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTestApi25#testResetPasswordFbe

错误有两种情况,一种是直接进入系统桌面,一种是起一个测试case中的空白activity,经过分析,两者都是同一个原因造成的。因此以任一种情况举例。报错堆栈如下:

继续阅读“CTS/GTS问题分析5 | weiinter105”

CTS/GTS问题分析4 | weiinter105

问题初探

测试命令:
run cts -m CtsOsTestCases -t android.os.cts.SeccompTest#testIsolatedServicePolicy

报错堆栈:
07-24 00:50:08.627 2633 4112 I ActivityManager: Process android.os.cts (pid 13402) has died: vis SF
07-24 00:50:08.627 2022 2022 I Zygote : Process 13402 exited due to signal (31)
07-24 00:50:08.627 13379 13399 I TestRunner: failed: testIsolatedServicePolicy(android.os.cts.SeccompTest)

继续阅读“CTS/GTS问题分析4 | weiinter105”

CTS/GTS问题分析3 | weiinter105

android.security.cts.ListeningPortsTest#testNoListeningLoopbackTcp6Ports
android.security.cts.ListeningPortsTest#testNoListeningLoopbackUdp6Ports
android.security.cts.ListeningPortsTest#testNoRemotelyAccessibleListeningUdp6Ports

问题分析

本地测了一下,前两条没问题,那么下面重点先说下第三条的分析流程:

测试命令: run sts-userbuild -m CtsSecurityTestCases -t android.security.cts.ListeningPortsTest#testNoRemotelyAccessibleListeningUdp6Ports

测试结果:

继续阅读“CTS/GTS问题分析3 | weiinter105”

CTS/GTS问题分析2 | weiinter105

问题初探

测试命令: run gts-suite -s ID -o -m GtsGmscoreHostTestCases -t com.google.android.gts.devicepolicy.managedprovisioning.DeviceOwnerProvisioningHostsideTest#testRequiredAppsInManagedProfileForManagedDevice

报错堆栈:
07-27 06:59:30.611 32075 32125 I SilentProvisioningTest: managedProfileProvisionedReceiver.awaitForBroadcast(): failed
07-27 06:59:30.612 2091 2129 D ContactsDatabaseHelper: insertMimeType: vnd.android.cursor.item/website

继续阅读“CTS/GTS问题分析2 | weiinter105”

CTS/GTS问题分析1 | weiinter105

问题初探

测试命令: run gts -m GtsGmscoreHostTestCases -t com.google.android.gts.devicepolicy.managedprovisioning.DeviceOwnerProvisioningHostsideTest#testRequiredAppsInManagedDevice

报错堆栈
07-18 16:53:12 I/XtsHostTestBase: Test com.google.android.gts.playstore.ResetPreferredAppsTest#testPersistDefaultBrowser: PASSED
07-18 16:53:19 I/XtsHostTestBase: Test com.google.android.gts.managedprovisioning.AfwRequiredAppsTest#testRequiredApps_DeviceOwner_withGms: FAILURE
07-18 16:53:19 W/XtsHostTestBase: junit.framework.AssertionFailedError: com.google.android.gms is not installed

继续阅读“CTS/GTS问题分析1 | weiinter105”

[GTS_6.0.R1]GtsPlacementTestCases 下6条CaseFail

问题描述


GtsPlacementTestCases  下6条CaseFail
 com.google.android.placement.gts.DefaultIntentTest#testDefaultIntentHandlers
com.google.android.placement.gts.HomescreenLayoutTest#testFolderPlacement
com.google.android.placement.gts.HomescreenLayoutTest#testShortcutPlacement
com.google.android.placement.gts.HomescreenLayoutTest#testWidgetPlacement
com.google.android.placement.gts.InstalledAppsTest#testAppsInstalled
com.google.android.placement.gts.InstalledAppsTest#testSystemAppsInstalled
第一种报错信息:
java.lang.AssertionError: Unable to execute because authorization failed, please ensure the service account key is properly installed..

 

解决方案

继续阅读“[GTS_6.0.R1]GtsPlacementTestCases 下6条CaseFail”

【GTS 6.0 R2】 com.google.android.pm.gts.PackageManagerHostTest#testMediaProjection

问题描述


gts 6.0 R2 com.google.android.pm.gts.PackageManagerHostTest#testMediaProjection
11-03 16:04:48 I/ModuleListener: [1/1] com.google.android.pm.gts.PackageManagerHostTest#testMediaProjection fail:
junit.framework.AssertionFailedError: Instant App should be able to access Media Projection APIs.
Please apply patch r.android.com/732269
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.assertTrue(Assert.java:22)
at junit.framework.TestCase.assertTrue(TestCase.java:192)
at com.google.android.pm.gts.PackageManagerHostTest.testMediaProjection(PackageManagerHostTest.java:286)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

继续阅读“【GTS 6.0 R2】 com.google.android.pm.gts.PackageManagerHostTest#testMediaProjection”