androidmonkeyrunnermonkeyandroid-monkey

Start monkeyrunner script on multiple devices


I have a script that should be run on two devices at same time, this two devices are connected to one pc.

How can I run the script on both devices at the same time ?

is there some option like -s "SERIAL_NUMBER" , or something l


Solution

  • Adjust your script slightly - add a device-id parameter & use that when creating your MonkeyDevice.

    MonkeyRunner#waitForConnection(float, string) can take a timeout and a device identifier to start the script on an specific device.