Questions tagged [jbehave]

JBehave is a Java-based framework supporting Behavior-Driven Development (BDD), an evolution of Test-Driven Development (TDD) and Acceptance Test–Driven Development (ATDD).

JBehave is a Java framework for Behavior-Driven Development (BDD).

BDD is an evolution of test-driven development (TDD) and acceptance-test driven design, and is intended to make these practices more accessible and intuitive to newcomers and experts alike.

It shifts the vocabulary from being test-based to behavior-based, and positions itself as a design philosophy.

References:

549 questions
71
votes
4 answers

What are the differences between JBehave and Cucumber?

I have read somewhere that JBehave is actually the Java equivalent of Cucumber, whereas Cucumber is based on Ruby. Can someone describe the differences between them provide links that do?
Manoj
  • 913
  • 1
  • 7
  • 9
33
votes
4 answers

how to comment a story line in JBehave Story

I have a story line as follows Scenario: Given user is on Login page When user types login details with xxx as user xxx as passwd and submits Then dashboard is shown please advise, how to comment or not to make run for a line(example: 2 line…
Vijay
  • 1,026
  • 3
  • 11
  • 28
31
votes
6 answers

Behavior Driven Development for java - what framework to use?

For the ongoing projects and for improving our development process we considered adopting TDD as development philosophy. While researching for best practices and how to "sell" the new approach to my colleagues/ developers I came across BDD and found…
Olimpiu POP
  • 5,001
  • 4
  • 34
  • 49
20
votes
1 answer

How to get Eclipse to jump to failed JUnit test when test is not a Java method

I've got a nive bridge that allows me to run JBehave tests through JUnit with deeper integration than out of the box from JBehave - my JUnit hierarchy now shows each story file and the scenarios under it so you can see which scenarios have failed. …
t0rx
  • 363
  • 2
  • 8
18
votes
4 answers

How to see exactly what went wrong in Behave

We recently started using Behave (github link) for BDD of a new python web service. Question Is there any way we can get detailed info about the failure cause as tests fails? They throw AssertionError, but they never show what exactly went wrong.…
JOG
  • 5,590
  • 7
  • 34
  • 54
16
votes
4 answers

Selenium WebDriver to select combo-box item?

We are using Selenium WebDriver and JBehave to run "integration" tests on our web-app. I have a method that will enter a value into a form input. @When("I enter $elementId value $value") public void enterElementText(final String elementId, final…
Paul McKenzie
  • 19,646
  • 25
  • 76
  • 120
16
votes
4 answers

Very simple step by step JBehave setup tutorial?

Though I have read many, but many articles on how to use JBehave, I can't get it to work. Here are the steps I went through so far: Created new Java Project Downloaded JBehave JAR file version 3.6.8 and added it to my build path libraries Created a…
Will Marcouiller
  • 23,773
  • 22
  • 96
  • 162
12
votes
5 answers

Maven can't see jBehave

I'm just getting started learning jBehave and Maven (in Eclipse). I've installed JBehave Eclipse 1.0.0.20140605-071 and added it to my Maven dependencies - the relevant bit of pom.xml looks like (edited after reply):
digitig
  • 1,989
  • 3
  • 25
  • 45
11
votes
9 answers

Which BDD framework allows a simplistic approach to "story writing"?

I'm trying to use BDD in a very simple way, in order to minimize the amount of Java code. I want to create exactly two files, one is my story: Given user is named "John Doe" And user is authenticated When user changes his password to "a1b2c3" Then…
yegor256
  • 102,010
  • 123
  • 446
  • 597
10
votes
1 answer

Cucumber-jvm Hooks when Scenario is passed or failed

In Jbehave we can execute method upon outcome of scenario success/failure. One of the below mentioned methods will execute after failure and success. @AfterScenario(uponOutcome=AfterScenario.Outcome.SUCCESS) public void afterSuccessfulScenario()…
vkrams
  • 7,267
  • 17
  • 79
  • 129
9
votes
3 answers

Combining JBehave with SpringJUnit4ClassRunner to enable transaction rollback

Essence: How can I auto-rollback my hibernate transaction in a JUnit Test run with JBehave? The problem seems to be that JBehave wants the SpringAnnotatedEmbedderRunner but annotating a test as @Transactional requires the SpringJUnit4ClassRunner.…
Pete
  • 10,720
  • 25
  • 94
  • 139
8
votes
5 answers

Getting "java.lang.NoClassDefFoundError: org/junit/platform/engine/DiscoverySelector" trying to run Serenity JBheave

Created a new generic Serenity BDD JBehave framework with Maven ( via command line). Imported the project into Intelli J but when i try to run the "AcceptanceTestSuite" I get an error saying "No Tests are Found" and the following errorException in…
Timhua
  • 119
  • 1
  • 1
  • 4
7
votes
4 answers

JBehave - all steps marked pending?

I'm trying to create and run a simple JUnitStory to run a .story file. I have this: class Scenario1 extends JUnitStory { @Delegate MySteps steps = new MySteps() @Override public Configuration configuration() { return new…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
7
votes
2 answers

How to get JBehave to include test dependency jars when running in Maven?

I've got a simple-enough project that I'm trying to test with JBehave core, and doing things in a maven-kosher fashion (that is production under src/main, test under src/test, integration testing stuff under an added path of src/it/{java,resources},…
Dave LeBlanc
  • 346
  • 4
  • 12
7
votes
5 answers

missing pie chart and other elements when display serenity report from jenkins

Need your help! I've been working on integrating my automation test to Jenkins. I use Serenity BDD and JBehave. My Serenity report displayed OK when I run my test manually. But, when I integrate the test to Jenkins and try to display the report…
1
2 3
36 37