UiAutomator uiautomator2 使用命令 am instrument 无法运行脚本

ilovetest · 2020年03月23日 · 最后由 ilovetest 回复于 2020年03月23日 · 2547 次阅读

1、在 android studio 直接 run as 可以运行,执行脚本,运行日志打印如下执行命令
adb shell am instrument -w -r -e debug false -e class 'com.testdemo.Test#testLoan' com.haofenqi.myapplication04.test/androidx.test.runner.AndroidJUnitRunner

2、直接 cmd 运行 adb shell am instrument -w -r -e debug false -e class 'com.testdemo.Test#testLoan' com.haofenqi.myapplication04.test/androidx.test.runner.AndroidJUnitRunner 则不会执行脚本,如截图

3.使用命令 adb shell pm list instrumentation

求大神帮忙看下,是什么原因导致直接使用命令无法执行脚本?

共收到 1 条回复 时间 点赞

已解决

ilovetest 关闭了讨论 03月23日 18:35
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册