jQuery in Action, 2nd edition*
The moose likes Testing and the fly likes Cucumber and JBehave Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Cucumber and JBehave" Watch "Cucumber and JBehave" New topic
Author

Cucumber and JBehave

Sujoy Choudhury
Ranch Hand

Joined: Sep 17, 2008
Posts: 136

Hi Authors,

Got curious and have few questions for you:
1. Would like to know that why do we need Cucumber over JBehave?
2. What are the things that JBehave can't do and Cucumber can?
3. Does your "Why Cucumber" section talk about other frameworks?


Thanks and Regards,
~Sujoy
Matt Wynne
author
Greenhorn

Joined: Feb 17, 2012
Posts: 14
Hi Sujoy,

Cucumber and JBehave are designed to solve the same problem: writing automated tests in a way that they feel approachable to non-technical project stakeholders.

I've never used JBehave, but my understanding is that where Cucumber differs from JBehave is in how specifications are written. They both use plain-text files, but Cucumber uses the Gherkin syntax for its feature files, which is getting quite wide adoption, with tools like http://www.relishapp.com being written to publish feature files, for example. There are also tools to run Gherkin tests in various different languages such as SpecFlow for C#.

I don't know about the relative merits of the two tools, so I can't comment on that I'm afraid.

To be honest, I'd say that the main thing is not which tool you use, but how you use it:
- are you having regular sessions with the non-technical team members to review the scenarios you're working on?
- does everyone on the team have easy access to the scenarios?
- does everyone on the team feel a sense of shared ownership over the scenarios?

If you've achieved that with JBehave, I'd say you're doing just fine.


cheers,
Matt

--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cucumber and JBehave
 
Similar Threads
BDD with JUnit
BDD framework
jbehave Implementation
how do you integrate Jbehave with selenium code for a simple login page?
The cucumber book and Ruby