Eclipse上配置MonkeyRunner(Windows)
来源:互联网 发布:js windows调用firefox 编辑:程序博客网 时间:2024/05/16 03:15
一.配置
1.配置好ADT
2.安装Pydev插件
(1) Help→Install New Software
(2) 点击Work with输入框后面的Add按钮,输入Name,Location:http://pydev.org/updates.
(3)点击OK按钮
(4) 然后一路Next下去,知道finish.
3.配置Python解释器 windows→Preferences→pydev→Interpreter-python
4.配置Jython解释器 windows→Preferences→pydev→Interpreter-Jython
这一步会出现一个错误:"Python stdlib not found or stdlib found without .py files"。
折腾了好久才在http://blog.csdn.net/zhubaitian/article/details/39803205找到解决方案。
a.在SDK\tools\lib下找到jython的jar包,并解压,解压后copy解压文件夹下的Lib文件夹
b.粘贴到SDK\tools\lib下
另外:还要添加一些有用的jar包到jython的libraries里,如monkeyrunner.jar
二.创建项目
1.新建PyDev Project项目:File→New→Project
2.在src下新建文件夹test
3.在test文件夹下新建PyDev Module
4.写代码到test.py文件中。
from com.android.monkeyrunner import MonkeyRunner
device = MonkeyRunner.waitForConnection()device.installPackage('D:\\MonkeyRunner\\install\\XXX.apk')
5.运行
这一步骤也折腾了好久,不知道如何运行,还是用原始的命令行。
后来看到http://blog.csdn.net/hello0370/article/details/41285041?utm_source=tuicool文章中的方法:
步骤:在Run→External Tools→External Tools Configurations
点击Apply,然后点击Run就可以运行了。
参考资料:http://blog.csdn.net/zhubaitian/article/details/39803205
和http://blog.csdn.net/hello0370/article/details/41285041?utm_source=tuicool
- Eclipse上配置MonkeyRunner(Windows)
- windows上配置eclipse
- Using Android monkeyrunner from Eclipse in Windows
- Eclipse中使用MonkeyRunner(Windows环境)
- Monkeyrunner+eclipse
- Eclipse上安装配置goclipse on windows
- MonkeyRunner在Windows下的Eclipse开发环境搭建步骤(兼解决网上Jython配置出错的问题)
- MonkeyRunner在Windows下的Eclipse开发环境搭建步骤(兼解决网上Jython配置出错的问题)
- Android自动化工具Monkeyrunner使用(六) —— Eclipse + Jython 环境配置
- Using Android monkeyrunner from Eclipse, both in Windows and Linux!
- Using Android monkeyrunner from Eclipse, both in Windows and Linux!
- MonkeyRunner_在eclipse中配置jython 运行MonkeyRunner
- Ubuntu下,Eclipse中Python-interpreter配置MonkeyRunner
- Android自动化工具Monkeyrunner使用(七) ——在linux环境ubuntu平台上使用Eclipse运行monkeyrunne
- 在Windows上使用Eclipse配置Hadoop MapReduce开发环境
- 在Windows上面安装NDK,Eclipse上配置NDK
- monkeyrunner on eclipse
- windows上安装eclipse
- ser2net安装使用说明
- Mongod 芒果数据库初学.
- Ldom can't boot from vdisk ( Can't open disk label package )
- int 类型的自增长ID生成类,支持多线程。
- MySQL- SHOW TABLE STATUS命令
- Eclipse上配置MonkeyRunner(Windows)
- 解读ASP.NET 5 & MVC6系列(2):初识项目
- session 注册简单验证码的实现
- ibatis resultMap使用的问题
- iOS 获取Wi-Fi的SSID
- 算法:两种对拼音进行智能切分的方法
- cxf发布webservice
- Linux基础(七)内核线程和用户线程
- iOS开发——TTS文本发音——(附)单词、中文发音示例和工具类