使用Android CTS工具执行所有测试需要多少时间?
我正在开发自定义 Android 设备,需要使用 Android CTS 工具
执行兼容性测试用例。
所以我只想知道使用android-cts-2.3_r3-x86工具在android设备(Android模拟器)
上执行所有测试用例需要多长时间。
I am developing custom android device and need to execute compatibility test cases using android CTS tool
.
So i just want to know how much time it will take to execute all the test cases on the android device(Android Emulator)
using android-cts-2.3_r3-x86 tool.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
CTS的执行时间取决于测试用例的总数和测试用例结果的每个状态。为了通过测试,大多数测试用例的结果必须在 5 秒内得出,否则测试用例就会超时。每次超时后,CTS 都会有 5 分钟的间隔来执行下一个测试用例。所以它与超时测试用例的数量成正比。设备多次重启,因此重启时间也被计算在内。现在您可以计算CTS执行的预计时间。
The time for execution of CTS depends upon the total number of test cases and each status of the test case result. To pass a test the result must come in 5 seconds for most of test cases, otherwise the test cases is timed out. After each time out there is a gap of 5 minutes to execute next test case by CTS. So it is directly proportional to the number of timed out test cases. Many time the devices restarts, so the restart time is also counted. Now you can calculate the estimated time of CTS execution.
通常,它会在测试开始时显示估计值,如上面的示例所示:
如果您丢失了,这不是问题,您可以随时使用
cts-tf >
光标中的命令检查日志:转储日志
的快捷方式将输出:然后在日志中 grep 查找唯一的和 2 行:
Usually it is displayed an estimation at the beginning of the tests, like in the above example:
if you lost that is not a problem you can always check the logs with the command in
cts-tf >
cursor:shortcut for
dump logs
will output:and then grep in the logs for unique and 2 lines:
我几乎花了 2 个小时在 SHIELD 上运行完整的测试集。测试结果:
- 通过:9805
- 失败:7
- 未执行:8977
This took me almost exactly 2 hours to run the full test set on a SHIELD. The results of tests:
- PASSED: 9805
- FAILED: 7
- NOT EXECUTED: 8977