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
19
votes
5 answers

How to run single cucumber feature files through command prompt and through jenkins using Maven?

I am bit new to Cucumber / Maven, so require help on running test cases. I have developed an automation suite in eclipse using Cucumber and Selenium. To run specific feature files / Junit runner class, I right-click on the files in Eclipse and run…
Ronnie
  • 251
  • 1
  • 3
  • 17
19
votes
3 answers

Why Jasmine is called a "BDD" testing framework even if no "Given/When/Then" supported?

In the introduction of Jasmine, it says: Jasmine is a behavior-driven development framework for testing JavaScript code. I read several articles of BDD, and seems we should use 'Given/When/Then' to define "Scenario"s, which is what "cucumber"…
Freewind
  • 193,756
  • 157
  • 432
  • 708
19
votes
2 answers

Net::ReadTimeout (Net::ReadTimeout) Selenium Ruby

I've seen a few posts related to timeout errors within Selenium. This is becoming more and more unbearable as it's rendering my test pack unusable. I'm testing a webpage currently in development. I have a regression suite of around 300 test…
Tom
  • 1,055
  • 1
  • 14
  • 29
19
votes
3 answers

Cleanup steps for Cucumber scenarios

Is there a way to define the cleanup steps for all of the scenarios for a feature in Cucumber? I know that Background is used to define the setup steps for each scenario that follows it, but is there a way to define something like that to happen at…
TheDude
  • 3,796
  • 2
  • 28
  • 51
19
votes
6 answers

Cucumber for PHP application

Is it possible to use Cucumber outside Rails? I'd like to start using it for testing some of my PHP applications, but I really don't know how to start. Probably the easiest way would be creating a Rails project only to run Cucumber features, but…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
18
votes
4 answers

Asserting that a particular exception is thrown in Cucumber

Scenario I'm writing a library (no Ruby on Rails) for which I'd like to have very detailed Cucumber features. This especially includes describing errors/exceptions that should be thrown in various cases. Example The most intuitive way to write the…
JLimperg
  • 181
  • 1
  • 4
18
votes
4 answers

spinach vs cucumber for BDD in rails

I am starting on BDD. Was wondering which would be better to start with Cucumber or Spinach. My impression is that Spinach is new off the block. Look here Which one should I start with. The criteria would be - Support across the board. Flexibility…
Sam Wilder
  • 869
  • 1
  • 9
  • 21
18
votes
5 answers

cucumber test file download

Anybody have idea how to test file download using cucumber?
dimas.priyanto
  • 181
  • 1
  • 1
  • 3
18
votes
2 answers

SpecFlow/Cucumber/Gherkin - Using tables in a scenario outline

Hopefully I can explain my issue clearly enough for others to understand, here we go, imagine I have the two following hypothetical scenarios: Scenario: Filter sweets by king size and nut content Given I am on the "Sweet/List" Page When I filter…
MattStacey
  • 875
  • 4
  • 12
  • 23
18
votes
4 answers

Observed package id 'build-tools;20.0.0' in inconsistent location

./gradlew --parallel :app:assembleDebugTest when i run above command in android studio terminal i got this error. Error Parallel execution is an incubating feature. Observed package id 'build-tools;20.0.0' in inconsistent location…
Jithish P N
  • 1,970
  • 3
  • 26
  • 39
18
votes
3 answers

Cucumber class extending step definitions and hooks

I want to extend from a "AbstractBase_step" class in java. So I want to have a hook like: public abstract class AbstractBase_Steps { protected Scenario scenario; @Before public void background(Scenario scenario) { this.scenario =…
user24502
  • 1,662
  • 4
  • 16
  • 21
18
votes
3 answers

Is there a way to directly generate Step Definitions in Eclipse without Running Cucumber?

Im doing integration testing with cucumber and Gradle in Eclipse. For now my workflow is Write a feature file Run it to generate step skeletons Copy and implement them This works good for new features and so on, but becomes quite bothersome…
Dude
  • 692
  • 1
  • 4
  • 25
18
votes
3 answers

How does Cucumber differ from JUnit?

Can anyone explain the difference to me between Cucumber and Junit From my understanding they are both used to test Java code although I am not sure of the difference? Are they simply difference implementations of the same test suite or aimed at…
RK . N
  • 308
  • 1
  • 2
  • 9
18
votes
2 answers

No signature of method: is applicable for argument types error in Groovy

I am quite new to groovy and getting following error when running the below method. I am trying to pass xml file name and Map RD.groovy Given(~'^input currency "([^"]*)"$') { String baseCurr -> fromCurr = baseCurr } When(~'^insert end…
Shabar
  • 2,617
  • 11
  • 57
  • 98
18
votes
8 answers

@Before doesn't execute in java Cucumber Step

I've got a Cucumber Step class that i'm attempting to initialise a page model for all scenarios. So I added a @Before annotated method : @Before() private void beforeScenario() { LOGGER.info("Running before!"); loginPage =…
Programming Guy
  • 7,259
  • 11
  • 50
  • 59