2011-08-09 58 views
1

本節介紹在任何平臺上運行CTS的過程。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襲擊。(主要是這裏) Ø編輯Android的CTS /工具/ startcts指向SDK_ROOT到Android sdk安裝位置。 Ø運行./tools/startcts o在CTS提示檢查可用的計劃

感謝

回答

0

所有[編輯Android的CTS /工具/ startcts指向SDK_ROOT到Android SDK的安裝位置]要說的是編輯啓動並將SDK_ROOT指向安裝Android SDK的正確文件夾。如果你使用linux,你可以使用vi或pico來編輯文件。只需更改到該目錄,然後鍵入:

vi startcts 
OR 
pico startcts 

查找包含SDK_ROOT文件中的行,並將其值更改,無論你安裝了Android SDK。