Android cts测试命令
来源:互联网 发布:国家网络应急中心 编辑:程序博客网 时间:2024/06/13 04:18
>adb shell pm list instrumentation(该命令会列出所有已经安装的apk)
instrumentation:com.android.cts.stub/android.content.pm.cts.TestPmInstrumentation (target=android)
instrumentation:com.android.cts.animation/android.test.InstrumentationTestRunner (target=com.android.cts.anima
tion)
instrumentation:com.android.cts.app/android.test.InstrumentationCtsTestRunner (target=com.android.cts.stub)
instrumentation:com.android.cts.os/android.test.InstrumentationCtsTestRunner (target=com.android.cts.stub)
用该命令列出之后,测试单个函数或测试包时要与这里的相对应,如下面的例子所示:
1.cts测试单个函数:
eg:
a.测试testCurrentPlayTime方法
>adb shell am instrument -e class android.animation.cts.ValueAnimatorTest#te
stCurrentPlayTime -w -r com.android.cts.animation/android.test.InstrumentationTestRunner
b.测试testGetMemoryClass方法
>adb shell am instrument -e class android.app.cts.ActivityManagerMemoryClass
Test#testGetMemoryClass -w -r com.android.cts.app/android.test.InstrumentationCtsTestRunner
2.测试整个包
eg:
a.测试Android.animation这个包:
>adb shell am instrument -w -r com.android.cts.animation/android.test.InstrumentationTestRunner
b.测试Android.app这个包:
>adb shell am instrument -w -r com.android.cts.app/android.test.InstrumentationCtsTestRunner
- Android cts测试命令
- android CTS/GTS---常用测试命令
- 自动化测试CTS命令
- CTS测试命令
- Android CTS 测试研究
- Android的CTS测试
- Android的CTS测试
- Android CTS 测试 过程
- Android CTS 测试总结
- Android CTS 测试
- Android CTS 测试总结
- Android CTS 测试研究
- Android CTS 兼容性测试
- android兼容性测试CTS
- Android CTS 测试总结
- Android的CTS测试
- Android CTS 测试常见问题
- Android CTS 测试总结
- 数据库的持久化(durability)
- @Html.DropdownList用法
- .NET C#获取当前网页地址
- 递归算法先序遍历二叉树
- ST测试
- Android cts测试命令
- LTE中的SRB--承载
- C#实现100万条数据导入SQL SERVER数据库仅用4秒 (附源码)
- Lambda表达式
- Codeforces Round #110 (Div. 2)——B
- 利用liunx的 crontab 和 php 的 pcntl_fork() 实现定时启动的多线程php程序
- TDD原则
- Silverlight与WCF之间的通信(2)利用WCF的双工通信“推送”给SL数据 (自己参考)
- Win7安装Oracle10g经验分享