It's not a secret anymore!
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Cucumber and JBehave" Watch "Cucumber and JBehave" New topic

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,
Matt Wynne

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 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.


Freelance programmer & coach
I agree. Here's the link:
subject: Cucumber and JBehave
It's not a secret anymore!