gpt4 book ai didi

Android CTS 测试可以在多个设备上并行运行

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:38:40 60 4
gpt4 key购买 nike

Android CTS 文档如下所述。

“要对在多个设备上运行的计划测试进行 fragment :-

run cts -plan CTS --shards <number of shards> 

那我就这么干。但我做不到。PC肯定能识别多台设备,但不能在上面运行。

如果你知道怎么做,请帮助我!!!


对不起。上面的注释没有详细画出来。

我给你看我做了什么。

首先我下载了​​Android 4.0.3 R3 Compatibility Test Suite (CTS)来自以下谷歌网站。 http://source.android.com/compatibility/downloads.html

然后我在我的PC上构建了CTS和SDK并将 2 台设备连接到我的电脑。

我执行了如下命令。

  1. ./android-cts/tool/cts-tradefed
  2. 运行计划 CTS --shards 2

因此,显示了以下消息。

cts-tf>10-23 18:xx:xx I/未知设备: 创建结果目录 2012.10.xx._xx.xx.xx Android CTS 4.0.3_r3 I/设备管理器:检测到新设备 a61xxxxx I/设备管理器:检测到新设备 de0xxxxx

但在那之后,没有显示任何消息。

最佳答案

fragment 时,您不会在控制台上看到测试状态输出。您可以使用“-l debug”选项来“运行 cts”以查看调试信息。

例如:

run cts --plan CTS --shards 2 -l debug

如果您在控制台中输入上述命令,您可以看到您的 2 台设备上正在进行的所有 Activity 。就像安装测试运行器 apk、运行测试和在测试后卸载 apk。

关于Android CTS 测试可以在多个设备上并行运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12988983/

60 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com