摘要:
@b.windows.last.use@b.windows.first.usebe_true 一般用在step文件中 阅读全文
摘要:
引用链接: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 阅读全文
摘要:
解决方法gem install selenium-webdriver -v='2.34.0' 阅读全文
摘要:
1.安装NppExec 插件2.按快捷键F6,在弹出框中输入如下命令:npp_save cd "$(CURRENT_DIRECTORY)" jruby "$(FILE_NAME)" 3.save保存命令后,点击点击ok开始执行 阅读全文
摘要:
引用链接: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 阅读全文
摘要:
引用链接: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... 阅读全文
摘要:
引用链接:https://github.com/cucumber/cucumber/wiki/Scenario-Outlinesscript/cucumber--i18nzh-CN|feature|"功能"||background|"背景"||scenario|"场景"||scenario_outline|"场景大纲"||examples|"例子"||given|"*","假如"||when|"*","当"||the 阅读全文
摘要:
引用链接: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 阅读全文