I am wondering how I can test some functionality on my android application that requires 2 devices. At this level of testing I don't want to mock anything, but I definitely want to keep these tests completely automated. I also want to run these in a cont. integration server.
So for example, given let's say a chat application, I would like to start up 2 emulators, send messages from one to the other and confirm the messages have been sent/received. So how does one start the 2 instrumentation tests at the same time and synchronize them so that the first emulator sends the message and the second one asserts that the message is the expected one?