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

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

    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。

Caused by: MobileHarnessException: Failed to unzip file /root/xts/mcts_dynamic_download/android/xts/mcts/35/arm64/android-mcts-permission.zip to dir /tmp/olc_server_temp_files/session_6f0a63ff-ea2c-4f5b-9df6-49f000b42fd4/job_tmp_xts-tradefed-test-job_db105dd1-4158-428b-a2e2-7cb7541c73d9/test_5394de8f-68c8-4c07-86cb-9cd56e048be1/android/xts/mcts [MH|UNDETERMINED|LOCAL_FILE_UNZIP_ERROR|30123] [MobileHarnessException],Caused by: com.google.devtools.mobileharness.shared.util.command.CommandFailureException: Failed command with exit_code=9 and success_exit_codes=[0], result=[code=9, out=[ End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. note: /root/xts/mcts_dynamic_download/android/xts/mcts/35/arm64/android-mcts-permission.zip may be a plain executable, not an archive unzip: cannot find zipfile directory in one of /root/xts/mcts_dynamic_download/android/xts/mcts/35/arm64/android-mcts-permission.zip or /root/xts/mcts_dynamic_download/android/xts/mcts/35/arm64/android-mcts-permission.zip.zip, and cannot find /root/xts/mcts_dynamic_download/android/xts/mcts/35/arm64/android-mcts-permission.zip.ZIP, period. Archive: /root/xts/mcts_dynamic_download/android/xts/mcts/35/arm64/android-mcts-permission.zip ], err=[]], command=[unzip -o /root/xts/mcts_dynamic_download/android/xts/mcts/35/arm64/android-mcts-permission.zip] [MH|UNDETERMINED|COMMAND_EXEC_FAIL|39998] [CommandFailureException]
03-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值