Questions tagged [cucumber]

Cucumber is a tool for running automated acceptance tests written in a behavior-driven development (BDD) style. From Wikipedia: http://en.wikipedia.org/wiki/Cucumber_%28software%29

Filter by
Sorted by
Tagged with
-3 votes
1 answer
214 views

Springboot (Java) - Is mandatory for BDD the use of Cucumber?

I was wondering if its a requirement to consider BDD the use of Cucumber framework or other framework of test abstraction. Because I was playing around with @SpringbootTest and TestContainers(both ...
user avatar
-2 votes
1 answer
173 views

How can I unit test this code [closed]

How can I unit test a codebase which contains classes that includes two or three methods. In general these methods are too long. The methods contain lots of tasks like filtering datasets and a ...
user avatar
10 votes
4 answers
5k views

What levels to test on with BDD/Cucumber?

I'm currently getting into BDD/Cucumber and I ask myself: On which levels is it good to use? There are the test levels (from the testing pyramid): User Interface Integration Unit You can apply ...
user avatar
  • 238
5 votes
1 answer
197 views

Is Cucumber appropriate for expansive corner case specification?

Question So, is using Cucumber to (near)exhaustively define complex interactions of requirements by example an abuse of the tool? Question Setup Is it appropriate use of Cucumber (or any other ...
user avatar
  • 1,828
2 votes
1 answer
277 views

Should I unit test my Cucumber helper functions/classes?

I'm very new at writing Cucumber tests. I'm writing Ruby helper functions to assist Cucumber step definitions. Should there be a separate set of tests to test my helper functions i.e. unit tests? The ...
user avatar
  • 31
9 votes
3 answers
637 views

How does Behavior Driven Development improves clarity when natural languages are ambiguous?

I'm currently exploring BDD test frameworks like cucumber and I find it curious when people say since the feature files are in simple natural language it improves clarity and gives a clear ...
user avatar
5 votes
0 answers
129 views

Can integration tests be run asynchronously with Maven?

Because I work at a company with lots and lots of computers, I find it to be a little ironic that it takes half an hour to cut a release of the latest version of our software. The bottleneck seems ...
user avatar
  • 6,867
5 votes
1 answer
264 views

BDD - how to measure value / ROI of collaboration

When considering the value or ROI that we reap from our efforts in implementing and using BDD it is realitively straight forward to measure your savings for the test automation element. You can ...
user avatar
11 votes
1 answer
512 views

Migrate legacy requirements to BDD

Q: What is the best way to move a large company to Cucumber with at least 15 years of legacy software requirements maintained in a requirements database? Currently considering: 1) Migrate Everything ...
user avatar
2 votes
2 answers
172 views

Which style to use for features that are not directly driven by humans when using BDD Gherkin language?

Should they be written same way as human workflows, first person "I have entered..." style language etc.? Is the user effectively a gender-less "AI"?
user avatar
  • 4,769
4 votes
2 answers
5k views

BDD, Cucumber best practices

I'm trying to understand some best practices when it comes to BDD and Cucumber. I've only recently started to use it, and the first feature I have written a test for is testing a search feature, more ...
user avatar
  • 763
6 votes
2 answers
3k views

Gherkin: What is a reasonable number of scenarios per feature?

I'm keen to get thoughts on a reasonable number of scenarios per feature in Gherkin. At what point do you start to thing about re-organising the feature to keep the number of scenarios at a ...
user avatar
3 votes
3 answers
358 views

Should selenium tests be written in imperative style?

Is an automation tester supposed to know concepts of OOPS and design patterns to write Tests in a way where changes & code re-use are possible? For example, I pick up Java to write cucumber step ...
user avatar
2 votes
3 answers
6k views

Should cucumber step definitions in Java be static methods or instance methods?

We are new to using cucumber with selenium to write automated test suites. Our initial approach was to have one java class per feature file. Now we added instance methods in each class for ...
user avatar
6 votes
2 answers
2k views

How to organize unit/integration test in BDD

So finally after reading a lot, I have understood that the difference between BDD and TDD is between T & B. But coming from basic TDD background, what I used to was, first write unittest for ...
user avatar
  • 221
7 votes
1 answer
303 views

How to edit existing user stories

I'm quite new to working in Agile and with user stories and scenarios in the BDD tool Cucumber and ideally I'll need to go on a course of all of this. I have a set of user stories that need to be ...
user avatar
  • 71
2 votes
3 answers
388 views

What is a legitimate reason to use Cucumber?

I've worked in several contracts where the client used Cucumber and I've often felt that the testing suite didn't really have a place in our stack. From what I understand, business analysts/non-...
user avatar
5 votes
2 answers
695 views

How abstract should you get with BDD

I was writing some tests in Gherkin (using Cucumber/Specflow). I was wondering how abstract should I get with my tests. In order to not make this open-ended, which of the following statements is ...
user avatar
  • 151
4 votes
5 answers
1k views

Interesting questions about Behaviour-Driven Development

For my master thesis at Software Engineering, I want to investigate in the new development technique BDD (Behaviour-Driven Development). In my opinion this technique could really improve on customer ...
user avatar
5 votes
1 answer
2k views

Using Cucumber with Page objects

We are using Cucumber in our application after we previously used Selenium. Cucumber is far better than Selenium, but it may seem to be complicated since has to write gherkin, step definitions may be ...
user avatar
  • 51
12 votes
5 answers
6k views

Are RSpec and Cucumber really worth it?

I know most RoR programmers are testing addicts and I understand the advantages of a large testing suite but when I start testing, I never get such a large suite and I always wonder "Am I testing the ...
user avatar
  • 389
0 votes
1 answer
681 views

Cucumber Web Interface for business

I am trying to find a way to make the projects I work on more transparent to the business size, even though backend programming is not quite visible all the time. So in order to this I want to try ...
user avatar
  • 193
4 votes
2 answers
1k views

At which architecture level are you running BDD tests (e.g. Cucumber)

I have in the last year gotten quite fond of using SpecFlow (which is a .NET port of Cucumber) I have used it both to test a ASP.NET MVC application at the web layer, i.e. using browser automation, ...
user avatar
  • 8,566