码迷,mamicode.com
首页 > 移动开发 > 详细

test_app.sh

时间:2018-05-01 20:19:05      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:Google   Test   51cto   

Google 为保证 Android Go 基本性能所做的测试脚本. 需要配合 Linux 和 Userdebug 版本使用.
该测项主测 APP 启动时间已经 PSS、GPU Info 等指标.

错误警报 & 错误原因
测试脚本通过 shell am start 启动 Activity 来进行测量. 有些 Activity 组件名字带有 "$" 字符无法被 shell 传递, 导致 Activity 无法正常启动而导致测试中断.

解决方法
修改测试脚本:
adb shell am start -S -W "‘‘‘"$package/$activity"‘‘‘">/dev/null

test_app.sh

标签:Google   Test   51cto   

原文地址:http://blog.51cto.com/13726600/2110203

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!