非常夫妻2016全集:android的测试工具CTS
来源:百度文库 编辑:九乡新闻网 时间:2024/10/06 01:11:15
1.什么是CTS兼容性测试,手机设备需要通过Android的兼容性测试(CTS),以确保在android上开发的程序在手机设备上都能运行,才能使用android market2.载及安装git下载的源码里包含cts,位置在$ANDROID/cts目录下(android2.1以后版本)如果没有也可以从此处下载git://android.git.kernel.org/platform/cts.git(源码70M左右)编译$ build/envsetup.sh$ make cts此时生成测试计划,测试包,测试用例,和测试报告生成的目录3.使用a)方法1:一般使用的方法$ cts 注意如果用手机设备调试,用root权限执行cts_host > ls --plan 列出所有planout/host/linux-x86/cts/android-cts/repository/plans中有plan的具体内容cts_host > start --plan VM 运行某个plan测试结果在out/host/linux-x86/cts/android-cts/repository/results目录下,用浏览器看时间目录下的xml文件即可注意在改动cts后,还要make cts重新编译,若只在cts目录中编译不能生效cts_host > ls -p 看当前可用的用例包cts_host > start --plan Android -p android.app 只运行某个用例包,节约时间cts_host > start --plan Android -p android.app -t android.app.cts.AlertDialogTest#testAlertDialog只运行某个用例包中的某个用例b)方法2:遇到问题时方便调试的方法$ adb install out/target/product/xxxx/data/app/SginatureTest.apk 安装某个用例包$ adb shell pm list instrumentation pm用于管理package,看当前机器安装了什么用例$ adb shell am instrument -w android.tests.sigtest/.InstrumentationRunner am用于管理activity 运行某一用例$ adb shell am instrument -e class android.app.cts.AlertDialogTest#testAlertDialog -w com.android.cts.app/android.test/InstrumentationCtsTestRunner 单独运行一个小case如果在一个时间很长的plan(如Android)中,某处错了,而错误信息又不全,需要单独跑一个小case,用-e指明class明就可以节约很多时间4.说明a)bin/cts是一个脚本,它使用adb来测试,测试程序及测试用例由java语言编写b)cts主函数为cts/tools/host/src/com/android/cts/TestHost.java5. 参考http://www.kandroid.org/android_pdk/instrumentation_testing.html
android的测试工具CTS
how to build android cts
Android API_DEMO 及JUNIT测试工具使用
不要伤害深爱你的人CTS
CLR,CTS,CLS与BCL的含义
软件测试工具都有啥?常用的
adb工具的使用 - Android开发进阶交流 - eoe·Android开发社区 |最棒Android开发|最好Andriod社区|Android论坛 - Powered by Discuz!
网站性能测试工具
凯迪拉克CTS
[系統工具] Android系統十大必備軟體 - Android - 香港全城討論區 ??...
Google为Android应用开发者推出类似Google分析的统计工具 ? @36氪
31款免费测试网站性能的在线工具
为对参加NCLEX护士检讨最重要的测试工具
开发高性能网站的web性能测试工具
实用Android开发工具和资源精选
MIPS智能手机通过Android兼容性测试
android ASE开发 - lijun198456的个人空间 - 51Testing软件测试网 51Testing软件测试网-中国软件测试人的精神家园 - Powered by X-Space
未来函数测试工具 (附工具)
组播配置/工具 组播测试工具 我公司为大家专门开发了界面友好的组播测试工具, 其中1.1版用于开通组播协议时进行测试 ,2.0版用于测试多组播流的情
解析StressMark压力测试工具
WEB 开发常用测试工具
WEB性能测试工具介绍
Android模拟器上实现Sensor测试(1)——环境的配置 - henry000的专栏 - CSDN博客
Root Tools工具发布:Android软件随意改