一、跑测前准备工作
1、cts,gts.sts公用操作
a.打开开发者模式
b.打开开发者模式中stay wake、USB debugging,关闭Verify apps over USB
c.进入Dispaly中将Screen timeout选为never。(可不操作)
d.进入Security中,进入Google Play Protect,右上角设置中确认后续界面中两个控件都打开。将Screen lock选为None.
f.连接上跑测专用的外网wifi
2.vts,gsi准备工作
a.打开开发者模式
b.打开开发者模式中OEM unlocking、USB debugging。
c.adb reboot bootloader
d.fastboot flashing unlock
e.fastboot flash boot boot-debug.img (vts才有)
f.fastboot reboot fastboot
g.fastboot flash system system.img (10.0以下不是system.img。应为aosp开头的system.img)
h.fastboot reboot
3.cts,gts,gsi准备工作二
下载好相应的meida,images,gts压缩包,并解压缩相应文件
1.gts需要先只执行指令
adb push gts test wvmedia /sdcard
2.cts,gts,gsi执行指令
./copy_media.sh、./copy_images.sh
4.执行命令
run cts、run gts、run cts-on-gsi、run sts、run vts
run cts --shard-count num -s session -s session
num:几台跑的机器,session 机器本身的id.连接电脑时会显示
run retry --retry id; id值可用指令 l r 查出需要的
5.注意事项
gts的EEA版本需要登录google账号,cts,gts,gsi等刷了meida的测试,第一次测试时可关闭声音测试(跑测时比较吵),后出现一项音量相关的fail项,后续打开一点声音即可通过。