1 2 3 4 5 ··· 8 下一页
摘要: @b.windows.last.use@b.windows.first.usebe_true 一般用在step文件中 阅读全文
posted @ 2013-08-20 15:28 dami.van 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 引用链接:http://reverocean.iteye.com/blog/14899571. describe和context describe和context方法用来组织相关的行为example。使用一个字符串作为他们的参数,以及使用一个block来定义其上下文的范围。写model的spec或者其他的unit test时,可以传一个Ruby类作为describe的第一个参数。Doing so also creates an implicit subject for the examples.describe Timesheet do ……enddescribe可以嵌套一般使用:descri 阅读全文
posted @ 2013-08-16 14:23 dami.van 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: 解决方法gem install selenium-webdriver -v='2.34.0' 阅读全文
posted @ 2013-08-16 13:27 dami.van 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 1.安装NppExec 插件2.按快捷键F6,在弹出框中输入如下命令:npp_save cd "$(CURRENT_DIRECTORY)" jruby "$(FILE_NAME)" 3.save保存命令后,点击点击ok开始执行 阅读全文
posted @ 2013-08-14 18:23 dami.van 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 引用链接:https://github.com/cucumber/cucumber/wiki/HooksHooksCucumber provides a number of hooks which allow us to run blocks at various points in the Cucumber test cycle. You can put them in your support/env.rb file or any other file under the support directory, for example in a file called support/hoo 阅读全文
posted @ 2013-08-08 18:05 dami.van 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 引用链接:http://cukes.info/step-definitions.htmlData TablesData Tables are handy for specifying a larger piece of data:Given the following users exist: | name | email | phone | | Aslak | aslak@email.com | 123 | | Matt | matt@email.com | 234 | | Joe | joe@email.org | 456 | Just... 阅读全文
posted @ 2013-08-07 17:08 dami.van 阅读(4082) 评论(0) 推荐(0) 编辑
摘要: 引用链接:https://github.com/cucumber/cucumber/wiki/Scenario-Outlinesscript/cucumber--i18nzh-CN|feature|"功能"||background|"背景"||scenario|"场景"||scenario_outline|"场景大纲"||examples|"例子"||given|"*","假如"||when|"*","当"||the 阅读全文
posted @ 2013-08-07 17:07 dami.van 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: 引用链接:http://watirmelon.com/2011/01/24/composition-or-inheritance-for-delegating-page-methods/Composition or inheritance for delegating pagemethods?Posted on January 24, 2011The thing I like to do when creating a page object pattern for automated web testing is delegating any methods that don’t belon 阅读全文
posted @ 2013-08-06 16:02 dami.van 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 在cucumber的自动化测试框架下面,在一个steps文件中定义的@page对象,可以在其他的不同的steps文件中调用,在整个的场景生命周期中都是有效的原因:cucumber开始执行时,一次性把所有的steps文件都加入到了内存中,所以...会出现这种现象 阅读全文
posted @ 2013-08-05 16:06 dami.van 阅读(251) 评论(2) 推荐(0) 编辑
摘要: 1.@b.a(:text=>"点击查看").click 阅读全文
posted @ 2013-08-05 15:08 dami.van 阅读(181) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 8 下一页