摘要: 阅读全文
posted @ 2016-10-14 22:58 to be crazy 阅读(1649) 评论(2) 推荐(0) 编辑
摘要: 1.怎么 判断元素是否存在? 判断元素是否存在和是否出现不同, 判断是否存在意味着如果这个元素压根就不存在, 就会抛出NoSuchElementException 这样就可以使用try catch,如果catch到NoSuchElementException 就返回false 2.如何判断元素是否出 阅读全文
posted @ 2016-09-15 18:23 to be crazy 阅读(6839) 评论(2) 推荐(1) 编辑
摘要: 第一周:adb学习,并实现封装一个adb wrapper(包含iOS和Windows 平台),使用maven做项目管理,生成相应的jar 学习时间:2016/1/28~2016/2/4 学习目的: 掌握adb的常见使用方法 实现测试框架的一部分(通过adb获取管理设备,实现录像截图) 阅读全文
posted @ 2016-01-28 22:16 to be crazy 阅读(2753) 评论(5) 推荐(3) 编辑
摘要: 题记:如果支付宝和QQ不兼容,要二选一,你会怎么选择?首先了解一下背景:笔者最近发现,微众银行的app升级到1.7.4, 而患有轻度强迫症的人是迫不及待的点了升级。第一次,居然安装包安装不成功,第二次,卸载1.7.3再次安装,居然依旧不成功。我的钱还在里面呢,不能就这么算了,于是我找到了微众银行的运... 阅读全文
posted @ 2016-01-20 20:16 to be crazy 阅读(4289) 评论(2) 推荐(1) 编辑
摘要: 结合上次研究的selenium webdriver potocol ,自己写http request调用remote driver代替selenium APIselenium web driver Json protocol 相关请看http://www.cnblogs.com/tobecrazy/... 阅读全文
posted @ 2015-12-09 21:58 to be crazy 阅读(10248) 评论(1) 推荐(0) 编辑
摘要: testng执行case failed ,testng Listener会捕获执行失败,如果要实现失败自动截图,需要重写Listener的onTestFailure方法那么首先新建一个Listener 类,继承TestListenerAdapterpackage com.dbyl.libarary.... 阅读全文
posted @ 2015-09-16 22:34 to be crazy 阅读(5753) 评论(1) 推荐(0) 编辑
摘要: 之前已经写过一篇:selenium测试框架篇,页面对象和元素对象的管理上次使用的excel作为Locator对象管理,由于excel处理不够方便,有以下缺点:不能实现分page 加载Locator对象不能够实现Locator对象重名文件比较大,读写速度没有xml快所以,重新写了使用dom4j操作xm... 阅读全文
posted @ 2015-09-10 23:58 to be crazy 阅读(5693) 评论(1) 推荐(1) 编辑
摘要: 前些日子,配置好了appium测试环境,至于环境怎么搭建,参考:http://www.cnblogs.com/tobecrazy/p/4562199.html 知乎Android客户端登陆:http://www.cnblogs.com/tobecrazy/p/45... 阅读全文
posted @ 2015-07-01 23:12 to be crazy 阅读(27598) 评论(7) 推荐(3) 编辑
摘要: 前些日子,配置好了appium测试环境,至于环境怎么搭建,参考:http://www.cnblogs.com/tobecrazy/p/4562199.html 知乎Android客户端登陆:http://www.cnblogs.com/tobecrazy/p/45... 阅读全文
posted @ 2015-06-23 23:43 to be crazy 阅读(17709) 评论(3) 推荐(3) 编辑
摘要: 前些日子,配置好了appium测试环境,至于环境怎么搭建,参考:http://www.cnblogs.com/tobecrazy/p/4562199.html 知乎Android客户端登陆:http://www.cnblogs.com/tobecrazy/p/45... 阅读全文
posted @ 2015-06-21 20:52 to be crazy 阅读(12460) 评论(3) 推荐(0) 编辑
摘要: appium是一个开源框架,相对来说还不算很稳定。转载请注明出处!!!!前些日子,配置好了appium测试环境,至于环境怎么搭建,参考:http://www.cnblogs.com/tobecrazy/p/4562199.html接下来我们研究一下测试知乎Android客户端。自行下载配置目录如下:... 阅读全文
posted @ 2015-06-16 01:07 to be crazy 阅读(34735) 评论(1) 推荐(2) 编辑
摘要: selenium grid 阅读全文
posted @ 2015-06-09 23:32 to be crazy 阅读(15507) 评论(1) 推荐(3) 编辑
摘要: 阅读全文
posted @ 2015-06-08 22:58 to be crazy 阅读(38713) 评论(4) 推荐(2) 编辑
摘要: selenium测试框架 阅读全文
posted @ 2015-06-04 23:57 to be crazy 阅读(28811) 评论(21) 推荐(5) 编辑
摘要: 首先这次使用的webDriver for Firefox的由于项目的原因,需要在测试的时候加载Firebug和使用vpn,加载代理Firefox 加载代理,可以从FF菜单上看,代理分为好几种我这里使用的是type 为2 的情况FirefoxProfile profile = new FirefoxP... 阅读全文
posted @ 2014-09-27 22:26 to be crazy 阅读(5311) 评论(0) 推荐(0) 编辑
摘要: selenium rightclick http://forumsqa.com/question/how-to-click-the-option-of-the-menu-which-the-right-click-pop-up/ 阅读全文
posted @ 2014-09-13 00:41 to be crazy 阅读(28440) 评论(3) 推荐(4) 编辑
摘要: package baidu; import java.io.File;import java.io.IOException; import java.util.List;import org.apache.commons.io.FileUtils; import org.openqa.seleniu... 阅读全文
posted @ 2014-08-19 20:05 to be crazy 阅读(1535) 评论(0) 推荐(0) 编辑
摘要: 在验证某些关键步骤时,需要截个图来记录一下当时的情况Webdriver截图时,需要引入import java.io.File;import java.io.IOException;import org.apache.commons.io.FileUtils;import org.openqa.sel... 阅读全文
posted @ 2014-03-13 23:18 to be crazy 阅读(36733) 评论(2) 推荐(1) 编辑
摘要: selenium获取input时候,发现type=”hidden” 的input无法修改value,经牛人指点,可以使用js修改首先html源文件如下,设置为text 、hidden、submit 1 2 3 this is a test 4 10 11 12 13 Name: 14 Email: 15 16 17 18 19 View Code 在浏览器加载之后如下:这时候email 不能对外显示使用selenium,代码如下 1 import org.openqa.selenium.Alert; 2 import org.openqa.selenium.Javascr... 阅读全文
posted @ 2014-03-12 22:23 to be crazy 阅读(18685) 评论(2) 推荐(0) 编辑
摘要: 1.创建基于测试简单应用程序 (1)启动visual studio(有安装c#的) (2) 选择File|New project (3)创建一个C# project,名字和保存路径自己设定,假设取名test1(4)添加一个text控件和button控件设置属性如下:对象属性valueButton1TestcheckTextBox1Text空白此时窗口如下:(5) 双击设计器中的check按钮(之前添加的Button1)添加如下代码: if (textBox1.Text.Equals("")) //if text is null show messag... 阅读全文
posted @ 2013-08-27 17:42 to be crazy 阅读(2021) 评论(2) 推荐(0) 编辑
摘要: STF简介 简介: STF , smartphone test farm, 是一款能够通过浏览器远程管理智能设备的系统, 能为移动自动化测试提供方便快捷的服务,免去测试工程师的后顾之忧。 功能点: 支持android/ iOS/ wear os 支持使用浏览器远程控制,实时显示设备动态 增删改查ap 阅读全文
posted @ 2017-11-02 15:40 to be crazy 阅读(2743) 评论(1) 推荐(1) 编辑
摘要: Tuesday, March 06, 2007 Tuesday, March 06, 2007 Posted by Allen Hutchison, Engineering Manager and Jay Han, Software Engineer in TestThe testing world 阅读全文
posted @ 2016-11-23 19:13 to be crazy 阅读(635) 评论(0) 推荐(0) 编辑
摘要: 经过漫长的等待,终于迎来了selenium 3.0 从selenium 1.0 至今,差不多有十多年的历史。这个月终于迎来了selenium3.0 那么selenium3.0 为我们带来了什么? 看一下changelog怎么写的: 总结一下主要的change 如下: 1. 支持java最低版本1.8 阅读全文
posted @ 2016-08-04 23:11 to be crazy 阅读(8869) 评论(3) 推荐(1) 编辑
摘要: [ { "type": "123", "value": 123 }, { "type": "234", "value": 234 } ] import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Arrays; import java.util.Lis... 阅读全文
posted @ 2016-06-08 14:52 to be crazy 阅读(45718) 评论(0) 推荐(1) 编辑
摘要: 使用Android默认的Toast Toast简介: Toast是一个简单的消息显示框,能够短暂的出现在屏幕的某个位置,显示提示消息。 默认的位置是屏幕的下方正中,一般Toast的使用如下: Toast是static修饰的静态类,意味着可以直接使用,所以可以不用创建对象直接调用makeText方法, 阅读全文
posted @ 2016-04-26 22:59 to be crazy 阅读(9574) 评论(0) 推荐(0) 编辑
摘要: 1. Android studio 2.0 解决办法:http://stackoverflow.com/questions/35990995/com-android-dx-command-main-unsupported-major-minor-version-52-0 Permission den 阅读全文
posted @ 2016-04-16 15:56 to be crazy 阅读(1504) 评论(0) 推荐(0) 编辑
摘要: var event;if (document.createEvent){event = document.createEvent("HTMLEvents");event.initEvent("change", true, false);document.getElementById("fname") 阅读全文
posted @ 2016-04-09 18:00 to be crazy 阅读(316) 评论(0) 推荐(0) 编辑
摘要: driver.get("https://ibsbjstar.ccb.com.cn/app/V5/CN/STY1/login.jsp"); driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); driver.manage().timeouts().pageLoadTimeout(60, Ti... 阅读全文
posted @ 2016-03-24 23:02 to be crazy 阅读(2499) 评论(1) 推荐(0) 编辑
摘要: 在使用iOS Remote debug需要做以下准备 1. iOS devices 开启java script and web inspector 开启方式如下: 2. mac OS 自带的Safari开启develop 模式 开启方法如下: 如何使用iOS remote debug? 阅读全文
posted @ 2016-03-22 23:29 to be crazy 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 使用 npm安装 appium之后,会发现已经进入1.5 [Appium] Welcome to Appium v1.5.0 [Appium] Appium REST http interface listener started on 0.0.0.0:4723 npm -g install app 阅读全文
posted @ 2016-03-08 22:44 to be crazy 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 在工作过程中发现经常需要对某些字符串进行处理,所以就封装了加一些常用的 package com.dbyl.libarary.utils; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Stri 阅读全文
posted @ 2016-02-21 17:26 to be crazy 阅读(703) 评论(0) 推荐(0) 编辑
摘要: start 阅读全文
posted @ 2016-01-29 17:32 to be crazy 阅读(214) 评论(0) 推荐(0) 编辑
摘要: UI Automator Viewer The uiautomatorviewer tool provides a convenient GUI to scan and analyze the UI components currently displayed on an Android devic 阅读全文
posted @ 2016-01-28 20:30 to be crazy 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: 相信很多人都会遇到这种场景,在进行appium自动化的时候用Windows OS,不好实现后台运行,每次启动Appium server:使用AppiumGUI版手动点击就是在cmd line 启动Appium如果要实现CI,使用Appium GUI是不可行的,因为如果在跑case的过程中Appium... 阅读全文
posted @ 2016-01-10 12:31 to be crazy 阅读(7149) 评论(9) 推荐(0) 编辑
摘要: 2015年是不平凡的一年,这一年发生了很多事,针对我个人而言不仅仅是年龄上的增长,工作经验和技能的提升,还有着对自己职业方向和未来规划更加清晰更加明了.首先回顾一下整个互联网界今年发生的大事:1. 滴滴快的打车合并,美团大众合并,去哪并入携程,再有BAT缩招,各种裁员的传言,部分外企逐步撤离中国,有... 阅读全文
posted @ 2015-12-31 19:54 to be crazy 阅读(4268) 评论(9) 推荐(4) 编辑
摘要: selenium作为一个出色的web automation框架,被越来越多的企业采用究其原因,框架设计的比较remarkable, 作为一个开源的框架,能够开辟出一套协议,以至于针对app测试的appium采取相同的strategy。使用的是webdriver protocol的扩展版。 为什么说这 阅读全文
posted @ 2015-12-05 20:10 to be crazy 阅读(8361) 评论(0) 推荐(2) 编辑
摘要: package demo;import java.util.concurrent.TimeUnit;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebEle... 阅读全文
posted @ 2015-11-30 21:20 to be crazy 阅读(824) 评论(0) 推荐(0) 编辑
摘要: http://examples.javacodegeeks.com/core-java/gradle/gradle-hello-world-tutorial/ 阅读全文
posted @ 2015-11-25 19:23 to be crazy 阅读(222) 评论(0) 推荐(0) 编辑
摘要: appium-doctor:Running iOS Checks✔ Xcode is installed at /Applications/Xcode.app/Contents/Developer✔ Xcode Command Line Tools are installed.✔ DevToolsS... 阅读全文
posted @ 2015-11-22 20:32 to be crazy 阅读(552) 评论(0) 推荐(0) 编辑
摘要: import org.testng.annotations.AfterMethod;import org.testng.annotations.BeforeMethod;import org.testng.annotations.Test;import org.testng.annotations.... 阅读全文
posted @ 2015-11-21 19:11 to be crazy 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 联通营业厅充话费无法在线支付,chrome Python 64位安装包 win7 64 windows 10 右键菜单 Android studio IE11 layout 阅读全文
posted @ 2015-11-17 11:38 to be crazy 阅读(301) 评论(0) 推荐(0) 编辑
摘要: windows下appium设置 之前研究了一段时间的appium for native app 相应的总结如下: appium测试环境搭建 :http://www.cnblogs.com/tobecrazy/p/4562199.html 知乎Android客户端登陆:http://www.cnbl 阅读全文
posted @ 2015-11-16 23:42 to be crazy 阅读(9091) 评论(3) 推荐(1) 编辑
摘要: 最近用到mysql,发现如果想使用最新版本64 bit mysql 需要独特的配置和使用方式结合最近的研究总结一下安装过程。首先下载:http://dev.mysql.com/downloads/mysql/下载完毕,解压出来添加my.ini 配置文件,配置内容如下: [mysqld] # Thes... 阅读全文
posted @ 2015-11-11 22:45 to be crazy 阅读(400) 评论(0) 推荐(0) 编辑
摘要: RobotFramework 是一款基于python 的可以实现关键字驱动和数据驱动并能够生成比较漂亮的测试报告的一款测试框架这里使用的环境是python-2.7.10.amd64.msi RIDE 1.5a2 running on Python 2.7.10. ... 阅读全文
posted @ 2015-11-05 23:55 to be crazy 阅读(8954) 评论(0) 推荐(0) 编辑
摘要: 之前研究了一段时间的appium for native app 相应的总结如下: appium测试环境搭建 :http://www.cnblogs.com/tobecrazy/p/4562199.html 知乎Andr... 阅读全文
posted @ 2015-10-23 22:58 to be crazy 阅读(12280) 评论(4) 推荐(3) 编辑