Some hints to use monkeyrunner from eclipse can be found at
http://dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-eclipse.html

On Mar 11, 6:06 am, c j <[email protected]> wrote:
> I need using monkeyrunner do some easy auto test but have some
> problem.
>
> Eclipse SDK 3.6.2 (Pydev 1.6.5 + Jython 2.5.2 + Python 2.7.1 +
> monkeyrunner.jar + google-collect-1.0-rc1.jar)
> jdk1.6.0_24
> android-sdk-windows
>
> i try this example in second line have wrong
>
> http://developer.android.com/guide/developing/tools/MonkeyRunner.html
>
> # Imports the monkeyrunner modules used by this program
> from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
>
> # Connects to the current device, returning a MonkeyDevice object
> device = MonkeyRunner.waitForConnection()
>
> error msg
>
>  device = MonkeyRunner.waitForConnection()
>         at
> com.android.monkeyrunner.MonkeyRunner.waitForConnection(MonkeyRunner.java:
> 74)
>         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
>
> Please tell know where setting wrong.
> thanks!

-- 
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

Reply via email to