列表 第页
我有一个黄瓜步骤:鉴于我已登录I've got a cucumber step: Given that I'm logged in我不明白我应该如何将它作为一个步骤定义来实现.I don't understand how I should implement it as a step definition.谁能...阅读全文
我目前尝试为我们的 Cucumber + Watir-WebDriver 验收测试实现 parallel_tests.就目前而言,一切都很好.I currently try to implement parallel_tests for our Cucumber + Watir-WebDriver acceptanc...阅读全文
在 Rails 3 中使用 Bundler 和 Cucumber 时遇到问题.当我运行 $ rake cucumber 我得到以下输出:bundle exec/usr/local/bin/ruby -I "/usr/local/lib/ruby/gems/1.9.1/gems/cucumber-0.8.5/lib:li...阅读全文
对于我的 Rails 3.1 应用程序上的 Cucumber 场景,我使用了@javascript 标签,因此 Selenium 被激活.我收到以下错误:For a Cucumber scenario on my Rails 3.1 app, I used the @javascript tag, so Seleni...阅读全文
我正在尝试测试 jquery UI 自动完成功能,我已经使用 selenium 驱动程序通过了测试.我想切换到 poltergiest 进行一些无头测试,但现在我的测试失败了.I'm trying to test an jquery UI autocomplete, I've got the tests passin...阅读全文
我正在尝试在 Cucumber 步骤中获取 cookie 值:I'm trying to get cookie values in the Cucumber step:步骤定义When /^I log in$/ do# code to log inendThen /^cookies should be set$...阅读全文
在我们的构建中,某些场景会由于我们无法控制的原因或需要太长时间才能正确调试而失败.诸如异步javascript之类的东西.In our build there are certain scenarios that fail for reasons which are out of our control or tak...阅读全文
我正在使用 webmock,但它不适用于黄瓜测试I am using webmock and it is not working for cucumber tests在我的 Gemfile 中In my Gemfilegem 'vcr'gem 'webmock'在我的 features/support.env.r...阅读全文
我正在使用 Cucumber 自动测试我的应用中的服务和控制器.另外,我正在使用 Cucumber Junit runner @RunWith(Cucumber.class)在测试步骤中.我需要实例化我的控制器,并且想知道是否可以使用 Spring 来自动装配它.下面的代码显示了我想要做什么.I am using C...阅读全文
自 2 天以来,我一直在与此作斗争.我的测试显示通过,但测试没有在 cucumber+java 中运行 Selenium webdriver 测试.在控制台中,我收到以下消息I have been battling with this since 2 days. My test is shown passed but...阅读全文
如何使用 maven 命令行中的黄瓜功能选项.在充满功能(测试)的树中,我试图只运行单个功能.就我而言 - 所选文件夹中的所有功能文件.How is it possible to use the cucumber feature option from maven command line.Of a tree fu...阅读全文
我刚刚安装了黄瓜,我测试了它.我收到以下错误:I just installed cucumber, and I tested it. I got the following error:teefcomp:cucumber-intro teef$ cucumber features/manage_users.feat...阅读全文
我刚刚将 cucumber 安装到一个新的 rails 项目中(第一次从头开始设置),它在运行所有测试时运行良好(bundle exec cucumber)但找不到任何我运行单个功能文件时的步骤.我该如何开始调试呢?I've just installed cucumber into a new rails proje...阅读全文
我正在尝试在 Amazon EC2 上设置 Jenkins 构建服务器.我计划在无头模式下运行我的黄瓜测试套件.我成功地在 IRB 中无头运行I'm trying to setup a Jenkins build server on Amazon EC2. I'm planning on running my cuc...阅读全文
我无法运行功能文件.每当我尝试运行文件时我得到了下面的堆栈跟踪I am unable to run the feature file. whenever i tried to run the filei am getting the below stack trace Exception in thread "ma...阅读全文
假设我有一个测试用例 -Suppose I have a test case like -*Scenario: Facebook login testGIVEN I am a Facebook userWHEN I enter my user name & passwordTHEN login should...阅读全文
我已经编写了我的耐寒黄瓜功能文件.当我将功能文件作为 Cucumber Feature 运行时,出现以下错误I have written my firsy cucumber feature file. When I run the feature file as Cucumber Feature, I get bel...阅读全文
我正在使用 rails 3 和 cucumber,除了这个小问题,一切都很顺利I am working with rails 3 and cucumber, all is going well except for this little problemGiven I am on the "edit automob...阅读全文
谁能给我推荐黄瓜和 rspec 教程(rails 3)的好资源(简单示例)???Can anyone suggest me good source (Easy examples) for cucumber and rspec tutorials (rails 3)???实际上,我正在寻找带有好例子的免费在线资源.....阅读全文
当我提交单个功能文件时,它可以完美运行.我想将具有多个功能文件的功能文件夹路径传递到运行脚本中.任何人都可以帮助执行多个功能文件吗?When I submit a single feature file it works perfectly. I want to pass features folder path w...阅读全文
我将我的功能组织在子文件夹中,如下所示:I have my features organized in subfolders, like this:app/features/users/feature1.featurefeature2.feature但每次我保存一项功能时,Guard 都会运行我的所有功能(不仅仅是...阅读全文
我正在尝试使用 Cucumber 测试登录功能.我的文件 users_steps.rb 包含I am trying to test the login functionality with Cucumber.My file users_steps.rb containsGiven /^I am a user na...阅读全文
I'm new to cucumber and I'm learning BDDWhen I'm trying to fill a form and create a record this sqlite error is shown, though there's no error when I tried the...阅读全文
使用黄瓜、水豚和硒进行设置,但某些场景只能随机运行.跑步rvm 上的 ruby 1.8.6 导轨 2.3.8selenium pops open firefox 3.6我试图添加这个没有运气:Setup with cucumber, capybara and selenium but some scenarios...阅读全文
我想尝试一个带有黄瓜测试的示例应用程序,黄瓜测试可以只用 ruby 完成还是可以用 java 完成?请帮我举个例子.I want to try a sample application with cucumber testing,cucumber testing can be done with only rub...阅读全文
当我作为一个整体运行我的黄瓜场景时,或者使用以下命令:黄瓜我得到 7 个失败的步骤.当我使用正在进行的标记单独运行它们时,它们可以正常运行.When I run my cucumber scenarios as a whole, or with the command: cucumberI get 7 faili...阅读全文
我们需要为一个功能测试一个漫长的步骤过程.从登录到许多模式对话框、多步骤表单和不同角色的用户都在交互.我们如何将这个过程的各个部分分解为单独的场景?这是一个例子:场景:新手稿鉴于我在手稿页面上当我按下提交新手稿"时然后我应该会看到请注明这份手稿的类型"场景:选择稿件类型鉴于我正在选择一种手稿类型当我点击原稿"时然后我应...阅读全文
When i run my features i get this error:undefined method `visit' for # (NoMethodError)This is the relevant part of my Gemfil...阅读全文
Is there a way to take screenshots in between steps in Java Cucumber ?I have the following scenario :@Scenario_1Given I log into urlAnd I see the home page is...阅读全文
我想问一下 Cucumber 和 JUnit 之间的实际区别是什么.我根本没有和 Cucumber 合作过.找到了一些文档,但我非常感谢曾与这两者合作过的人的一些反馈(对高 lvl 概述感兴趣).I'd like to ask what's the practical difference between Cucum...阅读全文
有没有办法在不使用 Cucumber 的情况下使用 Rspec 进行集成测试?我更喜欢只使用普通的旧 Webrat.谢谢.Is there a way to do integration tests with Rspec without using Cucumber? I prefer using just plai...阅读全文
我们在带有 Selenium WebDriver 的 TestNG 中有一个非常广泛的框架,我希望能够继续使用它,但要使用 Cucumber BDD.我知道 Cucumber 可以与 JUnit 一起使用,但不确定它是否可以与 TestNG 一起使用.We have a very extensive framewor...阅读全文
前几天,我向我公司的一位测试人员展示了我用 Cucumber 编写的一些测试(2 个功能,5 个场景).然后他问了我一个我无法回答的问题:The other day I was showing one of the testers at my company some tests I had written in c...阅读全文
我正在使用 cucumber + capybara 进行一些网络自动化测试.我希望能够连接我自己的标签(类似于场景之前的@all_browsers),并让它针对我设置的网络驱动程序列表(celerity、firefox 上的 selenium、ie 和 chrome)运行.我不想用 4 个不同的标签在 4 个不同的时间...阅读全文
我有一个在黄瓜中运行良好的功能(.feature 文件).I've got a feature (a .feature file) that are working fine in cucumber. 该功能中所有场景的后台只是设置了一个用户,然后以管理员身份登录,例如The background of all...阅读全文
这可能是非常愚蠢的事情,但我无法解决.this is probably something really stupid but I can't work it out.我将我的黄瓜版本升级到 v 0.10.0,现在测试(在 Win 7 上运行)没有使用漂亮"格式化程序显示彩色输出.I upgraded my ve...阅读全文
我正在使用 cucumber 运行 BDD 步骤来实现我的 autlogic 登录行为.I am running BDD steps with cucumber to implement my autlogic login behavior.Scenario: log inGiven a registered us...阅读全文
我想通过一个所有场景的第一步的例子.但是所有场景的第一步都是一样的,只有一个元素不同.所以我想在后台进行所有这一步,并想添加带有背景的示例.简而言之,假设我想导航到 facebook、twitter、google 和 youtube 页面并单击一个元素.我可以用下面的东西吗?I want to pass an exa...阅读全文