本节介绍在任何平台上运行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-cts / tools / startcts指向SDK_ROOT到android sdk安装位置。 o运行./tools/startcts o在CTS上提示检查可用的计划
感谢
答案 0 :(得分:0)
所有[编辑android-cts / tools / startcts将SDK_ROOT指向android sdk安装位置]是说编辑启动并将SDK_ROOT指向安装Android SDK的正确文件夹。如果你使用linux,你可以使用vi或pico来编辑文件。只需切换到该目录并输入:
vi startcts
OR
pico startcts
在文件中找到包含SDK_ROOT的行,并将其值更改为安装Android SDK的位置。