Android Developers_MonkeyRunner

   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! 

 

 

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 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值