如何從命令行啓動了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