android GTS-- com.google.android.xts.placement.UiPlacementTest fail

本文介绍如何正确配置Google Play Store在默认主屏的位置,包括Google搜索小部件、Google应用集合文件夹及Play Store图标的具体放置要求。不正确的配置会导致GTS测试失败。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    Google要求将GooglePlayStore应用配置在defaul home screen,且default home screen只能配置Gooogle Search Widget,PlayStore,Google Colletion Folder具体如下:

The default home screen features the following placements:

1. Google Search Widget

2. Google Collection folder containing the Core GMS app icons

3. Play Store app icon

com.google.android.xts.placement.UiPlacementTest是检测GooglePlayStore在默认主屏配置正确,否则跑GTS时,该项会fail,如下:

com.google.android.xts.placement.UiPlacementTest
-- testPlayStore
fail
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.test.uiautomator.UiObject2.click()' on a null object reference at com.google.android.xts.placement.UiPlacementTest.tryElement(UiPlacementTest.java:73)


将GooglePlayStore配置在主屏即可pass。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值