3. 下载CTS package,android-cts for 2.3
4. 下载android SDK for windows,环境变量PATH中添加D:\android\android-sdk-windows\tools路径,用分号”;”隔开两个路径。
5. 打开CTS包中startcts文件,添加蓝色字体SDK ROOT和CTS ROOT,如下:
if [ -z "${CTS_ROOT}" ]; then
# CONFIGURATION
# Set this variable to the root of unzipped CTS directory
# This only needs to be changed if this script has been moved
CTS_ROOT=D:\android\android-cts\tools
fi;
JARS=${CTS_LIB}{DDM_LIB}{JUNIT_LIB}{HOSTTEST_LIB}
SDK_ROOT=D:\android\android-sdk-windows\tools
# Add SDK_ROOT to the PATH for backwards compatibility with prior startcts
# commands that required SDK_ROOT to find adb.
if [ -n "${SDK_ROOT}" ]; then
PATH=${SDK_ROOT}/platform-tools{SDK_ROOT}/tools{PATH}
fi
保存后退出。
6. Windows开始处打开CMD,输入如下命令并回车:
java -Xmx512M -cp D:\android\android-cts\tools\cts.jar;D:\android\android-cts\tools\hosttestlib.jar;D:\android\android-cts\tools\junit.jar;D:\android\android-sdk-windows\tools\lib\ddmlib.jar com.android.cts.TestHost D:\android\android-cts\repository\host_config.xml
7. 命令栏出现,