如何从命令行启动Android CTS,我尝试过各种我能想到的组合:
~/programs/android-cts/tools$ ./startcts --config ../repository/host_config.xml start -plan CTS
等不起作用。任何意见都会非常感激吗?
答案 0 :(得分:1)
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
答案 1 :(得分:0)
在工具文件夹
中运行命令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
答案 2 :(得分:0)
显然,这只是阅读CTS源代码,然后正确获取参数的问题::)
$ ./startcts start --plan CTS