Reputation: 57
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!
Upvotes: 1
Views: 586
Reputation: 2781
Instead of using device = MonkeyRunner.waitForConnection()
to connect to devices use device = 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.
Upvotes: 1