Open donglujie opened 5 months ago
文件配置: [ { "activity": "com.tal.xpod.ket.home.index.MainActivity", "xpath": "//[@resource-id='com.tal.xpod.ket.debug:id/tv_logout' and @class='android.widget.TextView' and @text='退出当前账号']" }, { "activity": "com.tal.xpod.ket.home.index.MainActivity", "xpath": "//[@resource-id='com.tal.xpod.ket.debug:id/tv_left_btn' and and @class='android.widget.TextView' and @text='退出']" } ] 命令: adb shell CLASSPATH=/sdcard/monkeyq.jar:/sdcard/framework.jar:/sdcard/fastbot-thirdpart.jar exec app_process /system/bin com.android.commands.monkey.Monkey -p xx --agent reuseq --running-minutes 60 -v -v -v -v >log.txt 2>err.txt
求帮忙看看原因。
第二个xpath 有两个and
文件配置: [ { "activity": "com.tal.xpod.ket.home.index.MainActivity", "xpath": "//[@resource-id='com.tal.xpod.ket.debug:id/tv_logout' and @class='android.widget.TextView' and @text='退出当前账号']" }, { "activity": "com.tal.xpod.ket.home.index.MainActivity", "xpath": "//[@resource-id='com.tal.xpod.ket.debug:id/tv_left_btn' and and @class='android.widget.TextView' and @text='退出']" } ] 命令: adb shell CLASSPATH=/sdcard/monkeyq.jar:/sdcard/framework.jar:/sdcard/fastbot-thirdpart.jar exec app_process /system/bin com.android.commands.monkey.Monkey -p xx --agent reuseq --running-minutes 60 -v -v -v -v >log.txt 2>err.txt
求帮忙看看原因。