如何从命令行启动了Android CTS CTS开始,我已经试过,我能想到的每一种组合:从命令行
~/programs/android-cts/tools$ ./startcts --config ../repository/host_config.xml start -plan CTS
之类不起作用。任何输入将非常感激?
如何从命令行启动了Android CTS CTS开始,我已经试过,我能想到的每一种组合:从命令行
~/programs/android-cts/tools$ ./startcts --config ../repository/host_config.xml start -plan CTS
之类不起作用。任何输入将非常感激?
计划显然这只是一个阅读材料CTS源代码,然后得到正确的参数::)
$ ./startcts start --plan CTS
运行在工具文件夹中的命令startcts
<install_dir>/tools$./startcts
CTS外壳将显示,选择您要运行如下图所示
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
我们需要编写脚本,因此我需要cts以非交互模式运行,即从命令行运行。 – 2012-01-03 10:28:38
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
虽然这可能回答OP的问题,但解释的几个字会帮助当前和未来的读者更好地理解这个答案。 – Thom 2015-08-31 11:34:26
自ICS发布以来,运行CTS已发生变化。你应该检查我的答案在http://stackoverflow.com/a/10183036/198348 – 2012-04-16 23:24:07