test.py script content:
import ....
device = MonkeyRunner.waitForConnection(10,sys.argv[1])
device.startActivity(component='package/activity')
'''
some monkeyrunner events
'''
I have two devices: labled device1-id and device2-id
I found that some events in device2 were sent to device1. I do not know why?
I noticed some tutorials, they said that if you run monkeyrunner on other devices, you can write a script as shown below:
device1 = MonkeyRunner.waitForConnection(10,device1-id)
device2 = MonkeyRunner.waitForConnection(10,device2-id)
device1.actions
device2.actions
but that was not what I needed. Does anyone know why a monkey behaves like this?
I need to have one script at the same time run the same script on multiple devices.