如何让多个设备同时执行MonkeyRunner(Jython脚本)?
我写了一个 MonkeyRunner(Jython) 脚本,我想同时在多个设备上运行这个脚本,请帮助我如何做到这一点,非常感谢!
I have wrote a MonkeyRunner(Jython) script and I want running this script in several devices at the same time, please help me how to do it, thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要使用
device = MonkeyRunner.waitForConnection()
连接到设备,而是使用device = MonkeyRunner.waitForConnection(deviceId=DEVICE_ID)
,其中 DEVICE_ID 是设备 ID(如 adb 所见) )您尝试连接的设备。Instead of using
device = MonkeyRunner.waitForConnection()
to connect to devices usedevice = MonkeyRunner.waitForConnection(deviceId=DEVICE_ID)
where DEVICE_ID is the device id (as seen by adb) of the device that you are trying to connect to.