0

如何从命令行启动 Android CTS,我尝试了所有我能想到的组合:

~/programs/android-cts/tools$ ./startcts --config ../repository/host_config.xml start -plan CTS

之类的不起作用。任何输入将不胜感激?

4

3 回答 3

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
于 2015-08-19T18:28:39.920 回答
0

显然,只需阅读 CTS 源代码,然后获取正确的参数即可::)

$ ./startcts start --plan CTS
于 2012-02-09T10:07:09.433 回答
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
于 2012-01-03T10:19:47.003 回答