12 2011 档案

摘要:1.Gherkin简介:Cucumber是一个解释程序,就像ruby命令执行解释 .rb文件里的Ruby代码一样,Cucumber用来执行解释 .feature文件里的Gehrkin代码。2.关键字:当你编写一个feature文件的时候,会用到很多Gherkin语言里特定的关键字,主要包括下这面些: • Feature • Background • Scenario • Scenario outline • Scenarios (or examples) • Given • When • Then • And (or but) • | (用来定义表格) • """ 阅读全文
posted @ 2011-12-28 17:13 贺满 阅读(10619) 评论(0) 推荐(1) 编辑
摘要:今天任务不多,有空看了些watir的资料,于是手痒痒的想做个例子练练,网上有个google搜索的示例,本人也就照猫画虎,写了一个baidu搜索的小例子。大牛就直接跳过吧。。。欢迎有兴起的朋友一起交流学习,共进步。代码如下:require 'watir'context = "hello"@broswer = Watir::IE.new@broswer.goto("http://www.baidu.com/")@broswer.text_field(:name,"wd").set(context)sleep 1@brosw 阅读全文
posted @ 2011-12-06 17:44 贺满 阅读(394) 评论(0) 推荐(0) 编辑
摘要:ruby官方网站:http://www.ruby-lang.org/zh_CN/ruby参考手册:http://www.kuqin.com/rubycndocument/man/index.htmlwatir官方网站:http://wtr.rubyforge.org/watir API:http://wtr.rubyforge.org/rdoc/selenium官方网站:http://selenium.openqa.org/RUBY DBI API:http://ruby-dbi.rubyforge.org/rdoc/index.html其他语言API:http://www.gotapi.co 阅读全文
posted @ 2011-12-06 16:56 贺满 阅读(362) 评论(0) 推荐(2) 编辑
摘要:文本框:<INPUT id="email" name="_fmu.u._0.e" value="" /> 方法1: ie.text_field(:id,'email').set("文本内容") 方法2: ie.text_field(:name, 'email').set("文本内容") 方法3: ie.text_field(:name,"email").clear下拉框:<SELECT name="cert_no&q 阅读全文
posted @ 2011-12-06 16:46 贺满 阅读(637) 评论(0) 推荐(0) 编辑
摘要:这几天本人在Window server 2003(工作机)中搭建Cucumber环境时(可以看我的另一篇文章:http://www.cnblogs.com/puresoul/archive/2011/11/18/2254407.html),当运行gem install cucumber时,报错:ERROR: Failed to build gem native extension.到处搜寻未果,最后在这里找到了答案:https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting,特此转来。本人就不做翻译了,有需要的朋友尽管拿去,.. 阅读全文
posted @ 2011-12-01 17:02 贺满 阅读(27104) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示