[android-developers] Re: Using Eclipse write monkeyrunner
I followed Diego's instructions and they worked perfectly until I had to configure the pythonpath for monkeyrunner. I had to first install the interpreter with no python library (i.e tools/lib/Lib does *not* exist), wait for the window asking for the python library to pop up, and then execute ln -s /System/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/ /opt/android-sdk-mac_x86/tools/lib/Lib Only *then* did I click next and finish the monkeyrunner interpreter setup. And I'd recommend you close Eclipse and restart it once you're done -- mine crashed and I had to do it all over again. I can't thank Diego enough for his instructions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse write monkeyrunner
I have the exact same problem. Has anyone come up with a solution? On Mar 17, 6:00 am, c j techandroid@gmail.com wrote: I think post img is better :) eclipse settings pythonhttp://goo.gl/WTjDz jythonhttp://goo.gl/cKj7P tracebackhttp://goo.gl/Ywsm8 thank you On 3月17日, 上午7時42分, Bill Napier nap...@google.com wrote: Can you provide the full stack trace from your first mail? It looks like part of it got cut off. @diego - I've filed a bug to look at fixing the unbuffered input issue that you had to work around. It would be nice ifmonkeyrunnercould just do this without resorting to a wrapper script. On Tue, Mar 15, 2011 at 1:46 AM, c j techandroid@gmail.com wrote: in command line usedmonkeyrunneris ok but i need used eclipse can Instantly watch result thank you On 3月15日, 上午10時23分, A. Elk lancaster.dambust...@gmail.com wrote: Although I don't think thatmonkeyrunnerwas designed to be used fromEclipse. Whenever you run into a problem withmonkeyrunner, try it from the command line first. On Mar 13, 9:11 pm, Diego Torres Milano dtmil...@gmail.com wrote: Some hints to usemonkeyrunnerfromeclipsecan be found athttp:// dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-... On Mar 11, 6:06 am, c j techandroid@gmail.com wrote: I needusingmonkeyrunner do some easy auto test but have some problem. EclipseSDK 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 themonkeyrunnermodules used by this program from com.android.monkeyrunnerimportMonkeyRunner, 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse write monkeyrunner
On 3月17日, 上午7時42分, Bill Napier nap...@google.com wrote: Can you provide the full stack trace from your first mail? It looks like part of it got cut off. @diego - I've filed a bug to look at fixing the unbuffered input issue that you had to work around. It would be nice if monkeyrunner could just do this without resorting to a wrapper script. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse write monkeyrunner
first thank you :) i think post img is better. eclipse python setting: http://goo.gl/b6R3T eclipse jython setting: http://goo.gl/xTGmI compile issue: http://goo.gl/JiBs3 On 3月17日, 上午7時42分, Bill Napier nap...@google.com wrote: Can you provide the full stack trace from your first mail? It looks like part of it got cut off. @diego - I've filed a bug to look at fixing the unbuffered input issue that you had to work around. It would be nice if monkeyrunner could just do this without resorting to a wrapper script. On Tue, Mar 15, 2011 at 1:46 AM, c j techandroid@gmail.com wrote: in command line used monkeyrunner is ok but i need used eclipse can Instantly watch result thank you On 3月15日, 上午10時23分, A. Elk lancaster.dambust...@gmail.com wrote: Although I don't think that monkeyrunner was designed to be used fromEclipse. Whenever you run into a problem with monkeyrunner, try it from the command line first. On Mar 13, 9:11 pm, Diego Torres Milano dtmil...@gmail.com wrote: Some hints to use monkeyrunner fromeclipsecan be found athttp:// dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-... On Mar 11, 6:06 am, c j techandroid@gmail.com wrote: I needusingmonkeyrunner do some easy auto test but have some problem. EclipseSDK 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse write monkeyrunner
I think post img is better :) eclipse settings python http://goo.gl/WTjDz jython http://goo.gl/cKj7P traceback http://goo.gl/Ywsm8 thank you On 3月17日, 上午7時42分, Bill Napier nap...@google.com wrote: Can you provide the full stack trace from your first mail? It looks like part of it got cut off. @diego - I've filed a bug to look at fixing the unbuffered input issue that you had to work around. It would be nice if monkeyrunner could just do this without resorting to a wrapper script. On Tue, Mar 15, 2011 at 1:46 AM, c j techandroid@gmail.com wrote: in command line used monkeyrunner is ok but i need used eclipse can Instantly watch result thank you On 3月15日, 上午10時23分, A. Elk lancaster.dambust...@gmail.com wrote: Although I don't think that monkeyrunner was designed to be used fromEclipse. Whenever you run into a problem with monkeyrunner, try it from the command line first. On Mar 13, 9:11 pm, Diego Torres Milano dtmil...@gmail.com wrote: Some hints to use monkeyrunner fromeclipsecan be found athttp:// dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-... On Mar 11, 6:06 am, c j techandroid@gmail.com wrote: I needusingmonkeyrunner do some easy auto test but have some problem. EclipseSDK 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse write monkeyrunner
first thank you :) i think post img is better On 3月17日, 上午7時42分, Bill Napier nap...@google.com wrote: Can you provide the full stack trace from your first mail? It looks like part of it got cut off. @diego - I've filed a bug to look at fixing the unbuffered input issue that you had to work around. It would be nice if monkeyrunner could just do this without resorting to a wrapper script. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Using Eclipse write monkeyrunner
Can you provide the full stack trace from your first mail? It looks like part of it got cut off. @diego - I've filed a bug to look at fixing the unbuffered input issue that you had to work around. It would be nice if monkeyrunner could just do this without resorting to a wrapper script. On Tue, Mar 15, 2011 at 1:46 AM, c j techandroid@gmail.com wrote: in command line used monkeyrunner is ok but i need used eclipse can Instantly watch result thank you On 3月15日, 上午10時23分, A. Elk lancaster.dambust...@gmail.com wrote: Although I don't think that monkeyrunner was designed to be used fromEclipse. Whenever you run into a problem with monkeyrunner, try it from the command line first. On Mar 13, 9:11 pm, Diego Torres Milano dtmil...@gmail.com wrote: Some hints to use monkeyrunner fromeclipsecan be found athttp:// dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-... On Mar 11, 6:06 am, c j techandroid@gmail.com wrote: I needusingmonkeyrunner do some easy auto test but have some problem. EclipseSDK 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse write monkeyrunner
in command line used monkeyrunner is ok but i need used eclipse can Instantly watch result thank you On 3月15日, 上午10時23分, A. Elk lancaster.dambust...@gmail.com wrote: Although I don't think that monkeyrunner was designed to be used fromEclipse. Whenever you run into a problem with monkeyrunner, try it from the command line first. On Mar 13, 9:11 pm, Diego Torres Milano dtmil...@gmail.com wrote: Some hints to use monkeyrunner fromeclipsecan be found athttp://dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-... On Mar 11, 6:06 am, c j techandroid@gmail.com wrote: I needusingmonkeyrunner do some easy auto test but have some problem. EclipseSDK 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse write monkeyrunner
very thank you. but my os is windows 7 not ubuntu i will try another setting On 3月14日, 下午12時11分, Diego Torres Milano dtmil...@gmail.com wrote: Some hints to use monkeyrunner fromeclipsecan be found athttp://dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-... On Mar 11, 6:06 am, c j techandroid@gmail.com wrote: I needusingmonkeyrunner do some easy auto test but have some problem. EclipseSDK 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse write monkeyrunner
Although I don't think that monkeyrunner was designed to be used from Eclipse. Whenever you run into a problem with monkeyrunner, try it from the command line first. On Mar 13, 9:11 pm, Diego Torres Milano dtmil...@gmail.com wrote: Some hints to use monkeyrunner from eclipse can be found athttp://dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-... On Mar 11, 6:06 am, c j techandroid@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using Eclipse write monkeyrunner
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 techandroid@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en