随笔分类 - Watir&ruby自动化测试开发
Watir&ruby自动化测试开发的相关文章
摘要:网上查找了Ruby对MS Access数据库的操作,大都提到了引入DBI库进行数据库的操作。实际上并没有那么复杂,直接通过ADO就可以很好的解决。以下为查询的测试代码(需要预先有db1.mdb):require 'win32ole'connection = WIN32OLE.new('ADODB.Connection')recordset = WIN32OLE.new('ADODB.Records...
阅读全文
摘要:1.安装Eclipse2.下载RDT包3.解压的plugins与features分别存放到eclipse的相应目录下4.eclipse安装目录下的eclipse.ini,增加-clean,删除缓存.如:-showsplash-cleanorg.eclipse.platform--launcher.XXMaxPermSize256m-vmargs-Xms40m-Xmx256m5.重启eclipse,...
阅读全文
摘要:这两天由于一直在寻找Ruby对于串口的控制方法,仅仅是希望能够通过com口对网络设备进行配置,但花费了两天才实验成功!以下为一个简单实例(串口通过文件的方式进行操作)目的:通过串口登陆到交换机,设置交换机名为S3760_3f = File.open("com1:", "w+")f.write("\n") f.write("en") f.write("\n") f.write("con")f.wri...
阅读全文
摘要:发现用if进行多重嵌套时,总是报错,"syntax error, unexpected $end, expecting kEND",但使用case后,正常通过,匪夷所思!原编码如下: while i <2 userSheet.Cells(i,2).Value="111"; userSheet.Cells(i,3).Value="aaa"; userSheet.Cells(i,4).Value...
阅读全文
摘要:Running Tests With the Browser Not Visible Run the tests with a -b option if you don't want the browser to be visible. Example: my_test.rb -b You can also hide the browser window without using the...
阅读全文
摘要:Ruby转Exe -- Exerb研究 关键字: ruby exe 1. Exerb简介 Exerb是一个将ruby脚本程序(.rb)转换成Windows应用程序(.exe)的软件。目前最新版本4.1.0,下载地址:http://download...
阅读全文
摘要:http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/modcore/html/deovrunderstandingworksheetobject.asp 使用 Excel 对象模型实现 Excel 自动化 http://msdn.microsoft.com/library/chs/default.asp?url...
阅读全文
摘要:1.使用命令行ri 函数名; 2.用在线文档 http://rubycn.ce-lab.net/man/index.html http://www.ruby-doc.org/ 3.安装时附带的Rdoc文档
阅读全文
摘要:http://bbs.51testing.com/thread-82157-1-6.html
阅读全文
摘要:这几天开始针对Watir进行WEB自动化的调研.在切换支持中文,花费了竟半天时间,实在郁闷. 在网上查找了别人曾经进行支持中文的修改,由于我安装的为Watir 1.5.2,存在着些许不同,讲述一下大致的方法: 1.打开watir.rb 2.在class TextField中加入一个新的method: def characters_in(value) index =...
阅读全文


浙公网安备 33010602011771号