摘要: selenium测试框架 阅读全文
posted @ 2015-06-04 23:57 to be crazy 阅读(28856) 评论(21) 推荐(5) 编辑
摘要: testng Jenkins Webdriver 框架 ANT 阅读全文
posted @ 2015-05-25 23:51 to be crazy 阅读(18439) 评论(3) 推荐(2) 编辑
摘要: selenium sikuli 右键下载 webdriver 阅读全文
posted @ 2015-05-22 21:18 to be crazy 阅读(3470) 评论(0) 推荐(0) 编辑
摘要: arrayList 排序 Collections sort 阅读全文
posted @ 2015-05-21 22:34 to be crazy 阅读(2239) 评论(0) 推荐(1) 编辑
摘要: selenium sikuli webdriver 测试 automation gui 阅读全文
posted @ 2015-05-20 23:44 to be crazy 阅读(5078) 评论(2) 推荐(0) 编辑
摘要: String URL="http://www.amap.com/"; WebDriver driver = new FirefoxDriver(profile); driver.get(URL); driver... 阅读全文
posted @ 2015-05-12 20:59 to be crazy 阅读(2164) 评论(1) 推荐(1) 编辑
摘要: 之前在一个项目组,写了两次粗浅的自动化方面的思考关于自动化测试的一些思考(一)http://www.cnblogs.com/tobecrazy/archive/2012/12/18/2824248.html关于自动化测试的一些思考(二)http://www.cnblogs.com/tobecrazy... 阅读全文
posted @ 2015-04-06 14:42 to be crazy 阅读(4255) 评论(3) 推荐(1) 编辑
摘要: 一般的日期控件都是input标签下弹出来的,如果使用webdriver 去设置日期,1. 定位到该input2. 使用sendKeys 方法比如:但是,有的日期控件是readonly的比如12306的这个这个时候,没法调用WebElement的sendKeys()方案一:使用JS remove re... 阅读全文
posted @ 2015-01-07 23:46 to be crazy 阅读(27487) 评论(1) 推荐(0) 编辑
摘要: 爬虫 另类 遍历页面内容 阅读全文
posted @ 2014-11-23 21:40 to be crazy 阅读(9862) 评论(0) 推荐(1) 编辑
摘要: public static void type(WebElement e,String str) throws InterruptedException { String[] singleCharacters = str.split(""); // Interva... 阅读全文
posted @ 2014-11-17 17:16 to be crazy 阅读(1673) 评论(0) 推荐(0) 编辑
摘要: public class ArgsTest { private List args; private ArgsTestCheckPoint checkPoint; public enum ArgsTestCheckPoint { IS_NAME_COR... 阅读全文
posted @ 2014-11-10 22:35 to be crazy 阅读(738) 评论(0) 推荐(0) 编辑
摘要: 首先,html table是由 table 元素以及一个或多个 tr、th 或 td 元素组成。for example:这是一个简单的html table:源码如下:for selenium test table head: ... 阅读全文
posted @ 2014-10-26 15:50 to be crazy 阅读(16590) 评论(1) 推荐(0) 编辑
摘要: FF firebug 阅读全文
posted @ 2014-10-21 13:17 to be crazy 阅读(2685) 评论(1) 推荐(0) 编辑
摘要: 首先这次使用的webDriver for Firefox的由于项目的原因,需要在测试的时候加载Firebug和使用vpn,加载代理Firefox 加载代理,可以从FF菜单上看,代理分为好几种我这里使用的是type 为2 的情况FirefoxProfile profile = new FirefoxP... 阅读全文
posted @ 2014-09-27 22:26 to be crazy 阅读(5336) 评论(0) 推荐(0) 编辑
摘要: selenium webdriver 操作cookie 实现简便登陆 阅读全文
posted @ 2014-09-21 23:13 to be crazy 阅读(40552) 评论(3) 推荐(2) 编辑
摘要: 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 阅读(28600) 评论(3) 推荐(4) 编辑
摘要: //should set firefox path //FirefoxBinary binary=new FirefoxBinary(new File("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe")); ... 阅读全文
posted @ 2014-09-07 01:14 to be crazy 阅读(11994) 评论(1) 推荐(0) 编辑
摘要: testng reportng 阅读全文
posted @ 2014-09-03 23:59 to be crazy 阅读(2567) 评论(0) 推荐(0) 编辑
摘要: WordPress 的 rich text采用js,先让selenium切换到iframe中driver.switchTo().frame("content_ifr");然后执行JSWebElement editor = driver.findElement(By.tagName("body"));... 阅读全文
posted @ 2014-08-30 23:10 to be crazy 阅读(4188) 评论(1) 推荐(0) 编辑
摘要: /* * this function will read from excel * and will return the items of excel */ public static String[][] readExcel(String config) ... 阅读全文
posted @ 2014-08-19 20:06 to be crazy 阅读(1203) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: pexpect是python交互模块,有两种使用方法,一种是函数:run另外一种是spawn类1.pexpect module 安装 pexpect属于第三方的,所以需要安装, 目前的版本是 3.3 下载地址 https://pypi.python.org/pypi/pexpect/ 安装步骤... 阅读全文
posted @ 2014-08-03 16:58 to be crazy 阅读(24437) 评论(0) 推荐(0) 编辑
摘要: 控制语句if/elif/else if语句和一般编程语言一样,条件为true 执行 如: if true : print 'true' 0 and score90): print "your score is A" elif(score>60):... 阅读全文
posted @ 2014-07-11 15:46 to be crazy 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 作者:tobecrazy 出处:http://www.cnblogs.com/tobecrazy 欢迎转载,转载请注明出处。thank you!基本概念 : 常量: 常量名全部大写,如PI 变量: python没有变量类型,也不必声明,直接赋值即可.变量可以是数字,字符串,布尔值(T... 阅读全文
posted @ 2014-06-28 16:21 to be crazy 阅读(2119) 评论(2) 推荐(0) 编辑
摘要: 作者:tobecrazy 出处:http://www.cnblogs.com/tobecrazy 欢迎转载,转载请注明出处。thank you!由于项目需要(并非因为life is short),开始学习python。1.python 是什么 和perl一样,python是一种脚本语言。由于语法简... 阅读全文
posted @ 2014-06-26 15:04 to be crazy 阅读(3668) 评论(5) 推荐(0) 编辑
摘要: 最近工作比较忙,没有时间思考和学习,再加上报了个驾校,准备科目三,落下许多。前一段时间去携程面试,曾经去过一次,不是有意黑携程,对携程的印象越来越差。1.办公环境,感觉比较拥挤,没有个人空间 台式机一大片,没有独立的cube,现在很少有公司开发部门用台式机吧。2.携程面试流程不够正式,不够尊重面试... 阅读全文
posted @ 2014-05-27 22:29 to be crazy 阅读(34419) 评论(3) 推荐(0) 编辑
摘要: Perl 使用Log4perl首先下载log4 module :http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/Log-Log4perl-1.43.tar.gz解压配置:这里只用到lib目录下的文件,可以将其他目录删除。如何使用这个模块:新增... 阅读全文
posted @ 2014-04-22 14:44 to be crazy 阅读(3383) 评论(1) 推荐(1) 编辑
摘要: 今天写脚本遇到Can't use string ("bond2 Link encap:InfiniBand ") as a symbol ref while "strict refs" in use at test.pl line 的错误google了一下,发现stackoverflow有这样的... 阅读全文
posted @ 2014-04-16 15:37 to be crazy 阅读(4912) 评论(0) 推荐(1) 编辑
摘要: 首先为eclipse添加testng插件步骤如下:help->Install New SoftWare...2. 添加testng链接,该链接可以在这里找到For the Eclipse plug-in, we suggest using the update site:SelectHelp / Software updates / Find and Install.Search for new features to install.New remote site.For Eclipse 3.4 and above, enterhttp://beust.com/eclipse.For 阅读全文
posted @ 2014-03-15 23:10 to be crazy 阅读(2037) 评论(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 阅读(36823) 评论(2) 推荐(1) 编辑