Windows下的calabash安装
2015-08-17 18:14
656 查看
calabash简介:Calabash-android是支持android的UI自动化测试框架,PC端使用了cucumber框架,通过http和json与模拟器和真机上安装的测试apk通信,测试apk调用robotium的方法来进行UI自动化测试,支持webview操作。1安装ruby,下载地址:http://rubyinstaller.org/downloads/2安装JDK,下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html安装成功后,设置环境变量http://www.androiddevtools.cn/下载成功后,设置环境变量:4.安装Ant,网址:http://ant.apache.org/bindownload.cgi设置环境变量:
plaincopyC:\Users\asus>gemsources-l***CURRENTSOURCES***
http://rubygems.org/
C:\Users\asus>gemsources--removehttp://rubygems.org/
sourcehttps://rubygems.org/notpresentincacheC:\Users\asus>gemsources-ahttp://ruby.taobao.org/http://ruby.taobao.org/addedtosourcesC:\Users\asus>gemsources-l***CURRENTSOURCES***
http://ruby.taobao.org/
用gem命令安装calabash-android[html]view
plaincopyC:\Users\asus>geminstallcalabash-android...InstallingRDocdocumentationforescape-0.0.4...InstallingRDocdocumentationforcalabash-android-0.5.1...C:\Users\asus>calabash-androidversion0.5.17.下载测试用例:https://github.com/bootstraponline/calabash_android_example8.设置命令行字体:cmd中输入:http://blog.sina.com.cn/s/blog_628e2ab30101ajcg.html9.进入测试用例目录,输入calabash-androidruncom.github.mobile_1.6.1.apk
JAVA_HOME=C:\ProgramFiles\Java\jdk1.
7
.0_653.安装Android-SDK若google的官方网站打不开,可以访问:
6.gem安装android-calabash设置gem的仓库为taobao[html]view
plain
C:\Users\asus>gemsources--remove
source
用gem命令安装calabash-android[html]view
plain
chcp65001,具体可参考:
相关文章推荐
- 杀死Linux Shell进程
- OK335xS U-boot 编译问题&无Linux shell 问题
- 如何在Cygwin中使用Z-shell
- zabbix自动发现结合shell实现自动发现占用内存最大top10进程并监控其资源 推荐
- Linux Shell编程入门
- Linux shell知多少
- shell script入门
- 关于引入pods的iOS项目使用shell脚本编译的问题与探索
- Shell中的变量替换
- Hive Shell常用操作
- PowerShell中match命令使用详解
- Shell的集中输出文件方式
- Shell for&while中的循环
- xargs的一些小感悟
- Linux Shell统计一个目录下每种文件类型数量
- Shell中 1>/dev/null 2>&1 含义
- BASH脚本第六课
- 两个有用的shell工具总结
- Git学习(一)
- linux shell 管道命令(pipe)使用及与shell重定向区别