1.创建1个.bat文件
2.编辑文件,内容如下(可根据具体需求更改内容)
怎么实现?
start cmd /C (打开cmd窗口,并执行后面的命令)
同时打开多个cmd窗口并执行其后面的命令
3.双击.bat文件执行
@echo off
start cmd /C "adb -s devices1 shell monkey -p 包名 --throttle 1000 -v -v -v 50 2>D:\monkey_log\error日志1.txt 1>D:\monkey_log\操作日志1.txt"
start cmd /C "adb -s devices2 shell monkey -p 包名 --throttle 1000 -v -v -v 50 2>D:\monkey_log\error日志2.txt 1>D:\monkey_log\操作日志2.txt"
pause