Questions tagged [cucumber]

Cucumber is a Behavior Driven Development (BDD) tool that executes functional descriptions written in plain text (structured in the simple Gherkin language) as automated tests.

Cucumber is a Behavior Driven Development (BDD) tool.

It lets software development teams describe how software should behave in plain text structured in the simple Gherkin language. The text is written in a business-readable domain-specific language and serves as documentation, automated tests and development-aid - all rolled into one format.

Cucumber works with Ruby, Java, .NET, Flex or web applications written in any language. It has been translated to over 30 spoken languages.

Cucumber supports over a dozen different software platforms. Every Cucumber implementation provides the same overall functionality, but they also have their own installation procedure and platform-specific functionality.

References:

Related tags:

10965 questions
22
votes
3 answers

Rails: Why do I get "warning: already initialized constant JSON::VERSION" when running rake cucumber?

I've just set up a Linux Mint box for rails development with rvm. I went ahead and generated a Rails 5 app, set up the mysql connection, added the cucumber-rails gem and then tried to run: rake cucumber For some reason, I was met…
Micah Gideon Modell
  • 586
  • 1
  • 9
  • 24
21
votes
4 answers

using webmock with cucumber

I am using webmock and it is not working for cucumber tests In my Gemfile gem 'vcr' gem 'webmock' And in my features/support.env.rb, I have require 'webmock/cucumber' WebMock.allow_net_connect! When I run my cucumber tests I am getting this…
Sadiksha Gautam
  • 5,032
  • 6
  • 40
  • 71
21
votes
1 answer

How to resolve the deprecation of format option in @CucumberOptions?

When i am using the option format in @CucumberOptions for test reports it is showing that the format option has been deprecated how to resolve that. @CucumberOptions( monochrome = true, format = {"html:target/cucumber-html-report",…
Akshay jain
  • 555
  • 1
  • 7
  • 22
21
votes
4 answers

Cucumber JVM undefined step

I can't execute a simple test with cucumber for a project. I am on Intellij 13 Community, with cucumber plugin. I wrote my feature file in my features directory, I have also implemented my steps, creating them with the help of the plugin. And my…
Thibault
  • 568
  • 3
  • 10
  • 21
21
votes
4 answers

Dynamic data in Cucumber tables

I have a Cucumber table, one of the fields is a date which I would like to have populated with todays date. Is there a way of doing this without having to hard code todays date into the table? Basically I would like to enter…
KJF
  • 2,083
  • 4
  • 21
  • 38
20
votes
2 answers

Ruby on Rails - error when running cucumber: You have already activated activesupport 3.2.1, but your Gemfile requires activesupport 3.1.0.

I know this question has been asked in one form or the another before, but I still can't get a working solution for this. I'm taking the saas course offered online and the code is directly cloned from…
James Lin
  • 715
  • 6
  • 18
20
votes
2 answers

Transaction vs Truncation Database Cleaner

Recently I had a problem with one of my cucumber scenarios. Certain entries in my test database were disappearing whilst the feature was running. I solved the problem by changing the line DatabaseCleaner.strategy =…
elliance
  • 571
  • 5
  • 14
20
votes
6 answers

Cucumber; Selenium WebDriver - how to use Google Chrome as the testing browser instead of Firefox

For a Cucumber scenario on my Rails 3.1 app, I used the @javascript tag, so Selenium is activated. I get the following error: Could not find Firefox binary (os=macosx). Make sure Firefox is installed or set the path manually with…
dmonopoly
  • 3,251
  • 5
  • 34
  • 49
20
votes
4 answers

Where can I find a Gherkin language spec/guide?

I'm trying to find out all available syntax/format in Gherkin, such as about multiline argument and everything else I don't know yet. After digging Google search results though, it seems that the comprehensive guide is located in here: I thought…
ryaner
  • 3,927
  • 4
  • 20
  • 23
20
votes
4 answers

How do I test error conditions in HTML5 pages with cucumber?

I am testing web application behavior with Cucumber (using Selenium and Watir under the hood). My web app has HTML5 pages and makes use of the new "required" attribute. If I have a data entry form with a required field, and I submit that form with…
Aaron Brown
  • 249
  • 1
  • 6
19
votes
2 answers

Node.js BDD. Cucumber, gherkin, or cucumis?

I want to start using BDD for one of my Node.js projects. Looking at the Node.js wiki, I find at least 3 modules: Cucumber, gherkin, and cucumis that all support the gherkin language. Which ones do you recommend?
abendigo
  • 954
  • 1
  • 8
  • 31
19
votes
4 answers

Capybara, finding within a css element

I'm working with Ruby on Rails 3, Cucumber, and Capybara I've been searching for quite some time, and I can't figure out how to find a specific page element within a css tag. In my case, I need to make sure that a name is found inside of a table,…
ardavis
  • 9,842
  • 12
  • 58
  • 112
19
votes
7 answers

AssociationTypeMismatch and FactoryGirl

This has been causing some frustration recently... It seems that using Factories in my cucumber tests, in some situations causes AssociationTypeMismatch errors such as: MyModel(#65776650) expected, got MyModel(#28190030)…
Adamski
  • 191
  • 1
  • 4
19
votes
3 answers

What is the Path to Learn BDD on Ruby On Rails?

I want to start BDD on Ruby On Rails what should I learn? I don't know anything about BDD, RSpec or Cucumber. What is the best way to learn? Tutorials? Something that cover things like 'What behavior I should test?' etc. thanks!
Guilherme
  • 1,126
  • 9
  • 17
19
votes
6 answers

How to pass List of strings from Cucumber Scenario

I need to pass the List of strings from cucumber scenario which works fine as below Scenario Outline: Verify some scenario Given something When user do something Then user should have some "" Examples: Some example |data| |Test1, Test2,…
Yogiraj
  • 223
  • 1
  • 4
  • 15