Hi, I'm trying to implement some tests using MonkeyRunner.
I run the following code and the start the emulator:
#!/usr/bin/python
import sys
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
print ("waiting for: " + sys.argv[1])
device = MonkeyRunner.waitForConnection(100000,"emulator-5580")
print ("waiting ended")
if (device is not None):
MonkeyRunner.sleep(30)
print ("device closing")
device.shell("stop")
print ("device closed")
else:
print ("device not detected")
But, as soon it connects, it always launch a NullPointerException. Before
that I get the following warning:
[main] [com.android.chimpchat.adb.AdbChimpDevice] Timeout while trying to
create chimp mananger
I've tried using a clean SDK and new virtual devices so I think it must be
something on my system:
gentoo 3.0.35-tuxonice x86_64
If anybody knows what can I do to make it work I'll be very grateful.
Regards
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en