Appium Demo 录制图片,环境搭建完毕后根据视频基本能利用模拟器完成简单测试用例 ...
分类:
移动开发 时间:
2017-03-27 17:11:29
阅读次数:
154
创建AVD -c --sdcard : 指向一个共享的SD存储卡的路径,或者是新的SD储存卡容量大小。 -n --name : AVD的名字(该项是必须的) -a --snapshot : 在AVD中设置一个快照文件 -p --path : 新创建的AVD的路径 -f --force : 强制创建A ...
分类:
移动开发 时间:
2017-03-26 10:50:01
阅读次数:
190
Android常用的自动化测试工具框架: Monkey,MonkeyRunner,UIAutomator,Robotium,Appium,Monkey Talk 但是这些工具框架都有什么关系呢,先通过一张图来了解一下吧.(图是某博客上借过来的) 是不是一脸懵逼,不知道这是什么鬼。下面详细了解一下。 ...
分类:
移动开发 时间:
2017-03-25 23:38:00
阅读次数:
316
安卓自动化测试:环境的准备: 在做安卓自动化测试之前,需要在你的电脑上做如下环境的准备, 我用的是 Appium做的自动化测试。 1,2 安装好以后,可以打开 Appium,然后 start 它,如下图: 安装完后,需要配置环境变量 JAVA_HOME C:\Program Files\Java\j ...
分类:
移动开发 时间:
2017-03-24 17:23:07
阅读次数:
250
方法1; 下载指定版本的GUI版appium,下载链接https://bitbucket.org/appium/appium.app/downloads/,下载后安装。 在环境变量PATH后追加D:\Appium\node_modules\.bin;D:\Appium; 红色文字(D:\Appium ...
分类:
移动开发 时间:
2017-03-23 13:44:18
阅读次数:
336
在使用appium测试app的时候并没有selenium那么好用,为什么呢? 个人觉得是因为定位方式太少,selenium中的xpath已经强大到基本可以找到任何一个元素。 但是在appium中xpath并不好用,而且经常是很长一串的,效果不好。基本都用resource_id来定位,那么问题来了,没 ...
分类:
移动开发 时间:
2017-03-22 16:27:40
阅读次数:
271
Appium处理滑动方法是swipe 滑动API:Swipe(int start x,int start y,int end x,int y,duration) 解释: int start x-开始滑动的x坐标;int start y -开始滑动的y坐标 ;int end x -结束点x坐标;int ...
分类:
移动开发 时间:
2017-03-21 16:51:42
阅读次数:
1258
1.6起放弃uiautomation;改用xcuiteest机制;环境基础:xcode8,ios9.3以上1.安装最新版1.6.3安装cnpm:npminstall-gcnpm--registry=https://registry.npm.taobao.org安装appium1.6.3:cnpminstall-gappium@1.6.32.安装appium-xcuitest-driver依赖进入WebDriverAgent安装目录:..
分类:
移动开发 时间:
2017-03-20 19:46:41
阅读次数:
4809
项目代码:https://github.com/ellisa11/ynoteios-appium-test项目结构:jenkins配置:mac配置jenkins步骤:1.下载tomcat安装wgetbrewinstallwget下载tomcatwgethttp://apache.mirrors.ionfish.org/tomcat/tomcat-9/v9.0.0.M10/bin/apache-tomcat-9.0.0.M10.zip解压unaipapache..
分类:
移动开发 时间:
2017-03-20 19:44:32
阅读次数:
210
1.contexts contexts(self): Returns the contexts within the current session. 返回当前会话中的上下文,使用后可以识别H5页面的控件 :Usage: driver.contexts 用法 driver.contexts 2. c ...
分类:
移动开发 时间:
2017-03-19 22:14:28
阅读次数:
231