區別:
1.燒錄img版本不同
CTS,GSI,GTS,VTS 燒錄user版本img
STS 燒錄user-debug版本img
2.是否需要額外燒錄谷歌img
VTS 需額外推送 谷歌img 和 boot-debug.img
GSI 需額外推送谷歌img
其它測試不需要
3.測試前是否需要推送媒體包
CTS , GSI ,GTS 需要推媒體包
其余測試不需要
//推送媒體包的方式:在Media執行腳本+設備SN號
4.測試指令有細微差別,僅需修改對應測試名稱
//注意事項: CTS 測試和 GSI 測試共用一個測試腳本,因此GSI測試可在CTS測試下進行,但不可同時進行(即這個兩個測試不可以同時共用一個測試工具)
4.1.CTS測試(單台測試預計170小時)
全測命令:run cts --shard-count 3 -s CTS00000001 -s CTS00000002 -s CTS00000003 // -s 【SN號】
重測命令:run retry -r 1 --shard-count 3 -s CTS00000001 -s CTS00000002 -s CTS00000003 / -r 【第幾個測試報告】
單側模塊:run cts -m CtsPermission2TestCases -s CTS00000001 // -m 【測試模塊】
單側case:run cts -m CtsPermission2TestCases -t android.permission2.cts.PermissionPolicyTest#platformPermissionPolicyIsUnaltered -s CTS00000001 // -t 【測試項】
4.2.GTS測試(單台測試預計20小時)
全測命令:run gts --shard-count 3 -s GTS00000001 -s GTS00000002 -s GTS00000003
重測命令:run retry -r 1 --shard-count 3 -s GTS00000001 -s GTS00000002 -s GTS00000003
4.3.VTS測試(單台測試預計45小時)
注:需要燒錄Google System.img
全測命令:run vts --shard-count 3 -s VTS00000001 -s VTS00000002 -s VTS00000003
重測命令:run retry -r 1 --shard-count 3 -s VTS00000001 -s VTS00000002 -s VTS00000003
4.4.GSI測試(單台測試預計35小時)-->與CTS共用Tool
注:需要燒錄Google System.img
全測命令:run cts-on-gsi --shard-count 3 -s GSI00000001 -s GSI00000002 -s GSI00000003
重測命令:run retry -r 1 --shard-count 3 -s GSI00000001 -s GSI00000002 -s GSI00000003
4.5.STS測試(單台測試預計7小時)
注:需要燒錄Userdebug版本測試
全測命令:run sts-dynamic-full --shard-count 3 -s STS00000001 -s STS00000002 -s STS00000003
重測命令:run retry -r 1 --shard-count 3 -s GSI00000001 -s GSI00000002 -s GSI00000003
4.6.CTS_V測試 -->DQA 負責測
#其它測試指令
l i
l d
l r
l c