本节描述在任何平台上运行CTS的过程。
* Pre-requisites
o Download and extract (untar) the CTS package from http://dl.google.com/dl/android/cts/android-cts-2.2_r4-x86.zip
o Download and extract (untar) Google Android SDK from http://dl.google.com/android/android-sdk_r06-linux_86.tgz
o NOTE: Only the SDK mentioned on the above link will work with CTS.
* Setup an ADB connection between Host and platform as mentioned in ADB section above.
* Setup your platform to run the accessibility tests:
o adb install -r android-cts/repository/testcases/CtsDelegatingAccessibilityService.apk
o On the device enable Settings > Accessibility > Accessibility > Delegating Accessibility Service
* Launch the CTS.
o Edit android-cts/tools/startcts to point SDK_ROOT to android sdk installation location.
o Run ./tools/startcts
o On CTS prompt check the available plans 我遵循上述步骤,但在下面的步骤中,启动cts。(主要在这里)o编辑android /tools/startcts,将SDK_ROOT指向android安装位置。运行./tools/startcts On CTS提示符,检查可用计划
谢谢
发布于 2011-08-09 14:14:40
所有编辑android /tools/ startcts指向SDK_ROOT到Android的安装位置都是在编辑startcts,并将SDK_ROOT指向安装Android的正确文件夹。如果您使用linux,您可以使用vi或pico来编辑文件。只需更改到该目录并键入:
vi startcts
OR
pico startcts在包含SDK_ROOT的文件中找到行,并将其值更改为安装Android的位置。
https://stackoverflow.com/questions/6997449
复制相似问题