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
3
votes
2 answers

How to reset the state of the browser without closing it?

I am automating using Cucumber and Watir Webdriver and I want to know if there is a way to clear the state of the browser instead of closing it after every run so that I can use Scenario Outline and I open just one instance of the browser and clear…
Vamsi
  • 78
  • 9
3
votes
2 answers

How to use parallel_tests with specific tags

I'm using Ruby + Cucumber + Watir WebDriver to create functional tests for my web project. I've divided my scenarios by priorities using simple tags: @critical, @major, etc. I'm using Rake to run my features. I've created several tasks in my…
3
votes
2 answers

Cannot insert white spaces in string in the examples table

Feature:player @all Scenario Outline:Where is the player Given I navigate to Google When I enter < player> in the search field Then the text < keyword1> should be present @current @football Examples: | player |…
user1304665
  • 31
  • 1
  • 2
3
votes
2 answers

Auto-detection of locales from WWW browser and testing with Cucumber

I test my application with Cucumber and it worked before I've added auto-detection of locales from WWW browser in application_controller.rb: before_filter :set_locale private def set_locale xxx =…
Voldy
  • 12,829
  • 8
  • 51
  • 67
3
votes
2 answers

Running cucumber tests in vim or macvim

I have just recently started using VIM as my main editor. Im having great fun so far discovering all the nice little features that it offers. I have been looking for a couple of days now for someway to run my cucumber tests from within the editor (a…
alexjfno1
  • 337
  • 1
  • 3
  • 14
3
votes
2 answers

How to output Cucumber background steps before each scenario?

Normally, Cucumber will output background steps to look the same as you defined them in your feature file (once at the top). $ bundle exec cucumber --color --format pretty Feature: Something Background: Given step 1 And step 2 …
Andrew
  • 227,796
  • 193
  • 515
  • 708
3
votes
2 answers

How to clean up state between scenarios in Capybara/Cucumber?

I have been reading Capybara docs and while it is a great tool for BDD, I could not figure out how to reset state between Scenarios. I have seen some references to Before/After steps, but they seem to apply between each individual step and not…
Vasily
  • 461
  • 1
  • 6
  • 16
3
votes
0 answers

How to visit localhost from zombie during grunt-cucumber test?

Task We're using an angular app generated by yeoman and we want to use cucumberjs to test our app. I have replaced the default grunt test task's karma with grunt-cucumber (it is otherwise the same). We have a support file that adds zombiejs to the…
Dave
  • 1,031
  • 1
  • 8
  • 23
3
votes
1 answer

Why can't my Rails app find the gems that are packaged with it?

I've got a Rails app making use of Cucumber and RSpec. We are storing the gems under vendor/gems and trying to get the app building (running tests) in a CI server. When I try to run our tests I'm getting the following error: Missing these required…
Brian Kelly
  • 5,564
  • 4
  • 27
  • 31
3
votes
2 answers

Testing jquery-file-upload with capybara/cucumber

I'm trying to test jquery-file-upload plugin with the autoUpload option enabled using capybara/cucumber. The issue appears to be related to the autoUpload options, since uploading in the test environment works when there is no autoUpload option set.…
3
votes
1 answer

Capybara: Unable to find xpath "/html" (Capybara::ElementNotFound)

I have read a lot of articles online and have yet to find a resolution to my problem. I am using Selenium webdriver: Capybara.default_driver = :selenium Capybara.javascript_driver = :selenium class FirefoxBrowser …
tSebastian
  • 79
  • 2
  • 8
3
votes
0 answers

trouble setting up cucumber to test without actually changing the file system

I have been struggling for a while with this problem. I'm trying to test a ruby CLI that uses a lot of fileutils operations like making directories and copying files, etc. But when I'm writing tests, I need some way to test the functionality without…
fontno
  • 6,642
  • 6
  • 36
  • 43
3
votes
2 answers

rspec redirect_to with multiple parameters

I wrote a small test to check redirecting and URL parameters. Strangely the test fails, even though the error message seems to indicate the result is actually correct: Failure/Error: response.should redirect_to(movies_path(:sort =>…
jcoppens
  • 5,306
  • 6
  • 27
  • 47
3
votes
3 answers

When to switch from cucumber to rspec in the BDD cycle for a login procedure

I'm still trying to understand the combination of cucumber and rspec in the BDD cycle. I have defined the following scenarios for a very simple login system: Feature: Log in In order to get access to the application As a user I want to log…
gabrielhilal
  • 10,660
  • 6
  • 54
  • 81
3
votes
2 answers

Clicking element after an animated popup closes

Our website has multiple javascript popups throughout the site. When you click to open a popup, the screen slightly grays and an animated image shows then once loaded the actual popup. When the popup is closed it fades away along with the slightly…
Josh Lesch
  • 395
  • 1
  • 5
  • 23
1 2 3
99
100