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
7
votes
3 answers

JBehave marks steps as "pending" after second "and"

So, I am having a strange behaviour with JBehave. I have a Scenario where I need a StepDef structure like the following: Given some precondition When something happens And something else happens And yet something else happens And still one more…
Martin
  • 3,018
  • 1
  • 26
  • 45
7
votes
2 answers

How to execute multiple tests at the same time with jBehave?

I have some tests created with jBehave and WebDriver. When I execute them via Maven, the execution is secuencially: TEST 1 Open navigator Execute all the steps of the first story Close navigator TEST 2 Open navigator Execute all the steps of the…
Dr. No
  • 1,306
  • 5
  • 28
  • 57
7
votes
3 answers

JBehave ambiguous step

Say I have: @Given("first name is $firstName") @Given("first name is $firstName and last name is $lastName") The following step would be marked as ambiguous: Given first name is John and last name is Smith Without using quotes to surround the…
7
votes
3 answers

All the tests passed, but bamboo build fails with a statement "No failed tests found, a possible compilation error occurred."

I'm supposed to run some jbehave(automated) tests in bamboo. Once the tests run I'll generate some junit compatible xml files so that bamboo could understand the same. All the jbehave tests are ran as part of a script, because I need to run the…
Kishore Yekkanti
  • 961
  • 2
  • 7
  • 16
7
votes
1 answer

Additional logging JBehave

The scenario is this: We are using JBehave and Selenium for system, integration and end to end testing. I am checking the results of a calculation on a page with in excess of 20 values to validate. Using Junit Assert the entire test will fail on the…
Gazen Ganados
  • 665
  • 1
  • 7
  • 17
6
votes
1 answer

JBehave maintain data across steps Given/When/Then during a Scenario

I have been trying JBehave for sometime and I need to figure out if there exists a way to maintain data across steps during the run of one particular scenario ? I mean is it possible to maintain the state/data during a scenario across the…
Bhuvnesh Pratap
  • 437
  • 1
  • 5
  • 16
6
votes
2 answers

auto generate candidate-step method stubs from stext scenarios in JBehave

I am using Jbehave as my BDD framework. I am looking for a way to auto generate candidate step method stubs from the text scenarios like Given there is a flight And there is a customer When the customer books the flight Then the customer is shown…
Bhuvnesh Pratap
  • 437
  • 1
  • 5
  • 16
6
votes
2 answers

How do i run JBehave tests with Maven?

How do i run JBehave tests from Maven? I have a class that extends JUnitStories which runs from my IDE. I cant get JBehave Maven plugin to run my tests. Can anyone point to a simple way to run tests with Maven?
Sathish
  • 20,660
  • 24
  • 63
  • 71
6
votes
3 answers

Cucumber ordering of Given, When, Then (Given, When, Then, When, Then)

As an End-to-end Automation Tester I have always assumed that Given, When, Then statements (incorporated in the Gherkin Language when using Cucumber) should only ever appear in the order of 1. Given, 2. When, 3. Then. i.e. A test should not follow,…
Charlie S
  • 4,366
  • 6
  • 59
  • 97
6
votes
1 answer

Is it possible to integrate Jbehave with testNG?

Currently We're using TDD and planing to migrate into BDD using Jbehave. I just done some google search and not able to find any site for testNG with Jbehave. I just went through the Jbehave official site where I understood that possible to…
SKumar
  • 257
  • 2
  • 7
  • 19
6
votes
5 answers

IntelliJ IDEA, jbehave support plugin cannot find declaration to go to

I've faced with the next problem: after installing jbehave support plugin I can't jump to step declaration in Java. I've already tried: to uninstall and again install this plugin; to use jbehave plugin, but this functionality also didn't work; to…
Alex Kulinkovich
  • 4,408
  • 15
  • 46
  • 50
6
votes
1 answer

How to run jbehave scenario multiple times sequentially

There is a JBehave scenario. For example, Given something some record in DB (inserts some record in DB) When service perform some action (call some service) Is there any way to run this scenario many times in single story run?
long
  • 414
  • 4
  • 15
6
votes
6 answers

How to change the size of the browser window when running the FirefoxWebDriverProvider in JBehave Web

We're using JBehave Web to drive our selenium test suite for a new project and really like the Etsy.com example available on JBehave, especially the Java/Spring maven archetype as this fits in with our architecture. The biggest problem so far has…
Gino Filicetti
  • 81
  • 1
  • 1
  • 4
5
votes
7 answers

BDD Android UI testing framework?

I'm looking at using Frank for UI testing our iOS application(s). Is there a similar library with support for Android? I'm currently using Robotium, but thought it would be nice to be able to specify tests in the same format across both…
Valdis R
  • 2,095
  • 1
  • 18
  • 36
5
votes
2 answers

@BeforeScenario / @AfterScenario to Specific Scenario in Test Story by using Given

I am a newbie to JBheave and Hive frameworks. While exploring Q&A repositories, I happen to see the following phrase from one of right Answer to a Question,- writing a JBehave story That's what I've seen - and the data object should be…
Dev Anand Sadasivam
  • 699
  • 7
  • 21
  • 49
1
2
3
36 37