CTS测试
http://source.android.com/compatibility/overview.html
android-cts-4.1_r3-linux_x86-arm.zip
android-cts-verifier-4.1_r6-linux_x86-arm.zip
1.DownloadtheCTSandCTSmediafiles.
2.Attachatleastonedevice(oremulator)toyourmachine.
3.ForCTS2.1R2andbeyond,setupyourdevice(oremulator)toruntheaccessibilitytests:
1.adbinstall-randroid-cts/repository/testcases/CtsDelegatingAccessibilityService.apk
2.Onthedevice,enableSettings>Accessibility>Accessibility>DelegatingAccessibilityService
4.ForCTS2.3R4andbeyond,setupyourdevicetorunthedeviceadministrationtests:
1.adbinstall-randroid-cts/repository/testcases/CtsDeviceAdmin.apk
2.Onthedevice,enablealltheandroid.deviceadmin.cts.*deviceadministratorsunderSettings>Location&security>Selectdeviceadministrators
5.ForCTS2.3R12andbeyond,theCTSmediafilesmustbecopiedtothedevice'sexternalstorage.Checksection4.2ofthelatestCTSmanualforfurtherdetailsoncopyingthesefiles:
1.UnziptheCTSMediazipfile.
2.Runcopy_media.sh[720x480|1280x720|1920x1080|all][-sserial].Ifnoresolutionisspecified,thedefaultmaximumresolutionof480x360isassumed.
6.LaunchtheCTS.TheCTStestharnessloadsthetestplanontotheattacheddevices.Foreachtestinthetestharness:
◦Thetestharnesspushesa.apkfiletoeachdevice,executesthetestthroughinstrumentation,andrecordstestresults.
◦Thetestharnessremovesthe.apkfilefromeachdevice.
7.Onceallthetestsareexecuted,youcanviewthetestresultsinyourbrowserandusetheresultstoadjustyourdesign.YoucancontinuetoruntheCTSthroughoutyourdevelopmentprocess.