http://blog.csdn.net/zjujoe/article/category/697584 OTA
http://blog.csdn.net/zjujoe/article/details/5673469 CTS
运行特定的测试包
start --plan CTS --package android.bluetooth
运行特定的case
start --plan Android --package android.hardware -t android.hardware.cts.CameraTest#testTakePicture
http://blog.csdn.net/subsist/article/details/6438500 cts 测试步骤
http://hi.baidu.com/jugege/blog/item/dcb6edf3f88e8d43352accb0.html 测试总结
http://hi.baidu.com/jugege/blog/item/dcb6edf3f88e8d43352accb0.html good
http://source.android.com/compatibility/cts-intro.html official
compile:
1.make sdk
2.make cts
1). setting sdk path:eg
SDK_ROOT=/home/userwork/android/yh-gingerbread-pxa9xx/out_sdk/android-sdk_user.android-build.GB-MG18DSP3-1958_linux-x86
2) set maxTestCount to 0. disable reboot running cts
or export SDK_ROOT=$/home/userwork/android/yh-gingerbread-pxa9xx/out_sdk/android-sdk_user.android-build.GB-MG18DSP3-1958_linux-x86
nb:copying sdk and cts dir out of "out" dir is best.
setting:
1.sd card
2.google account
3.screen timeout
4.application ->stat awake,allow mock location ,usb debug checked
uncheck "unknown source"
5.wifi connect ap
6.install CtsPreferenceTestCases.apk and CtsDelegatingAccessibilityService.apk ,
goto settings->accessibility,check accessibility and cts deletegatingAccessibilityService
install -r android-cts/repository/testcases/CtsDeviceAdmin.apk
enable all the android.deviceadmin.cts.* device administrators under Settings > Location & security > Select device administrators
7.calibrate time
8.setprop ro.config.number.minmatch 7 // only for yh device
9.set dataon
case failed or timeout :
http://www.uplook.cn/index-Index-show-view11762.html?treeid=699 Analysis
timeout多数都是由于这个错误造成的:
Exception in thread "Thread-XX" com.android.ddmlib.ShellCommandUnresponsiveException
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408)
at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
at com.android.cts.TestDevice$1.run(TestDevice.java:1718)
解决方案:
这个错误是由于CTS和SDK版本不匹配造成的。倘若用android2.2 SDK 和 android2.2 cts -r6 还是出现了这个问题,那么编译自己工程的sdk (在整体m后,再make sdk),配套官方的cts一起,就可以百分百解决这个问题了。
必须要注意的是,不要用自己的工程代码编译出来的cts(make cts),因为可能编译出来的不是最新的(通常是r1版本)。而google提供的才是最新的,而硬件设备厂商都会信赖最新版本的cts的测试结果。