如何从命令行启动 Android CTS,我尝试了所有我能想到的组合:
~/programs/android-cts/tools$ ./startcts --config ../repository/host_config.xml start -plan CTS
之类的不起作用。任何输入将不胜感激?
如何从命令行启动 Android CTS,我尝试了所有我能想到的组合:
~/programs/android-cts/tools$ ./startcts --config ../repository/host_config.xml start -plan CTS
之类的不起作用。任何输入将不胜感激?
I have been using CTS version CTS4.4R3.
Below is how we can run CTS on KK .
Go to "tools" folder in CTS4.4R3 and enter the below commands :
command to Run CTS :
.../tools$./cts-tradefed
>run cts --plan CTS
Creating a Plan for Failed Cases in the 1st run:
add derivedplan -p "anyName"-s <SessionID> -r fail
Run added Plan : run cts --plan <PlanName>
SessionID can be checked as : list results
Running individual class in CTS :
run cts -c <ClassName>
run cts -c com.android.cts.monkey.android.widget.cts.AutoCompleteTextViewTest
显然,只需阅读 CTS 源代码,然后获取正确的参数即可::)
$ ./startcts start --plan CTS
在工具文件夹中运行命令 startcts
<install_dir>/tools$./startcts
cts shell会出现,选择你要运行的计划如下图
cts_host > ls --plan
List of plans (10 in total):
Android
AppSecurity
CTS-TF
CTS
Java
Performance
RefApp
Signature
VM-TF
VM
cts_host > start --plan Android