GMS测试命令总结—Android13(CTS/GTS/VTS/ITS/STS/GSI)

本文提供了Android系统测试的一系列命令,包括CTS(CompatibilityTestSuite)的整跑和单跑测试,ITS、GTS、VTS、STS的测试命令,以及GSI兼容性测试。在开始测试前,需要开启开发者选项,如保持屏幕常亮、USB调试等,并确保设备连接。这些命令帮助开发者针对性地执行和重试测试用例。
摘要由CSDN通过智能技术生成

常用指令

1.进入cts包的tools目录下打开终端
2. ./cts-tradefed进入cts测试 
3.adb devices 查看电脑连接的所有设备号
4.run cts 整跑一轮

常用命令
 run cts 整跑一轮
 run cts -m module 单跑一个包
 run cts -m module -t classname 单跑一个类
 run cts -m module -t classname&test 单跑一项
 run cts -help 查看CTS更多指令

跑CTS之前的准备
1、打开stay wake(保持屏幕常亮)、OEM unlocking、USB debugging(设置-开发者选项)

手机进入开发者模式

2、连接网络(TINNO-TEST)

3、adb devices   查看设备是否连接上

CTS

run cts测试全部
run retry --retry <session_id>  重试以前会话中失败或未执行的所有测试
run --retry  使用列表结果获取会话id

ITS

run its  //测试全部

GTS

run gts  //测试全部

VTS

run vts  //测试全部

STS

run sts-dynamic-incremental

或者

run sts-dynamic-full

GSI

run cts-on-gsi //全部测试

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 STS测试(单台测试预计7小时)

基础指令

l r查询当前测试已经产生的结果
l c查询队列中当前等待分配给设备的所有运行命令
l d查询当前连接的设备及其状态

其他测试命令

//指定序列号 eg: run cts -s sp7731001 //run -s <sn号>

//–m    运行指定的测试模块    run cts -m CtsBluetoothTestCases

//–m -t    运行指定的测试case    run cts -m CtsBluetoothTestCases -t android.bluetooth.cts.BluetoothLeScanTest#testBatchScan

//–exclude-filter <module_name>    跳过指定的测试模块    run cts --exclude-filter CtsBluetoothTestCases

//–exclude-filter “<module_name> ”    跳过指定的测试case    run cts --exclude-filter “CtsBluetoothTestCases android.bluetooth.cts.BluetoothLeScanTest#testBatchScan”
//–retry-type not_executed    只运行报告中未执行的测试模块    run cts -s sp7731001 --retry-type not_executed

//–skip-preconditions/-o    忽略设备配置的验证和设置,例如推送媒体文件或检查Wi-Fi连接。    run cts --skip-preconditions/-o

  • 4
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值