sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27072
[Question #251710]: Monkeyrunner in sikuli eclips environment
New question #251710 on Sikuli:
https://answers.launchpad.net/sikuli/+question/251710
Hi ,
I would like to know if i can import android monkeyrunner in sikuli in eclips environment .
I have sikuli running in eclips under Jython interpreter .
When i try to
import java.lang.System as JS
JS.setProperty("sikuli.Debug", "3")
import org.sikuli.basics.SikuliXforJython
from sikuli import *
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
print "hello"
MonkeyRunner.sleep(1)
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection( 30, "SH298W501136")
MonkeyRunner.sleep(4)
I am getting error log as Java Null pointer .
hello
Traceback (most recent call last):
File "C:\Users\xxxxx\workspace\Android\SecondTest\Test1.py", line 9, in <module>
device = MonkeyRunner.waitForConnection( 30, "SH298W501136")
at com.android.monkeyrunner.MonkeyRunner.waitForConnection(MonkeyRunner.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.NullPointerException: java.lang.NullPointerException
Could you please let me know how i can resolve this error.
Thanks
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.