xts运行命令
1.google原生命令,依赖jdk环境和xts测试套件环境
run cts -m CtsVideoTestCases -t android.video.cts.VideoEncoderDecoderTest#testAvcGoog0Perf1920x1080 -s c1b05
run cts-on-gsi -m CtsMediaTestCases -t android.media.cts.VideoEncoderTest#testOtherH264FlexArbitraryH -s 4868
-a armeabi-v7a
-a arm64-v8a
使用plan跑失败用例
放到androdi-cts/subplans目录,然后执行
run cts-on-gsi --subplan cts_fail
GSI前面就换成GSI的命令
run cts-on-gsi --subplan cts_fail_400
2.只需要xts的apk
a.获取instrumentation
adb shell pm list instrumentation
android.media.cts/androidx.test.runner.AndroidJUnitRunner
b.构造命令
单个模块: -e class android.media.cts.MediaCodecPlayerTest
单个用例:**#**testPlaybackSwitchViews
单个包: -w android.media.cts/androidx.test.runner.AndroidJUnitRunner
单个用例:testCodecCharacterizations
adb shell am instrument -e class android.media.cts.MediaCodecPlayerTest#testPlaybackSwitchViews -w android.media.cts/androidx.test.runner.AndroidJUnitRunner
单个module:MediaCodecListTest
adb shell am instrument -e class android.media.cts.MediaCodecListTest -w android.media.cts/androidx.test.runner.AndroidJUnitRunner
单个cts包
adb shell am instrument -w android.media.cts/androidx.test.runner.AndroidJUnitRunner
本文地址:https://blog.csdn.net/o343196469/article/details/107921612
下一篇: 封装axios并创建请求函数