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
3
votes
1 answer

Best Java BDD framework with Data Driven-Development?

I am looking for Java Behaviour-driven development test frameworks that integrates well with Data-driven development (parametrized values). I started using easyb, but it seems not really data-driven friendly. Looking at the documentation JBehave…
sebarmeli
  • 17,949
  • 7
  • 35
  • 40
3
votes
1 answer

How to make Serenity enclose a parameter value within a
 tag?

Is there a way to make Serenity enclose a parameter value within a
 tag?
I need the posted data =(When step) to be correctly displayed in the report (spaces and new lines)
Given that API is up
When the following data is posted:
xxxx            …
Nix
  • 176
  • 1
  • 10
3
votes
3 answers

Selenium getDriver() is empty for @AfterScenario (after AssertionError)

I have a PageObject startPage where I have a login and a logout method. The login method works fine and is executed in the @BeforeScenario: @BeforeScenario public void login() { // {..} Declaration of baseUrl,user,password... …
spcial
  • 1,529
  • 18
  • 40
3
votes
1 answer

how to use Example table (Parametrised Scenarios) with normal "Given" statement

when I am trying to run below story file, statement "a stock of" executing two time but I want that this execution should happen only once and statement "reference data databasetable record with sds id = and swift bic = " should execute…
Rajeev
  • 519
  • 3
  • 13
  • 29
3
votes
1 answer

"In order to run a story file you need to first set a main class in the JBehave settings" in intellij

i'm using intellij for the first time to work with jbehave. i have imported a pre existing maven jbehave project in to my intellij IDE. when i'm trying to run it using "Run Story" command. i'm getting the error "In order to run a story file you need…
3
votes
0 answers

Make JBehave stories not being started if @BeforeStories is failed

I need to implement JBehave test running with next requirements: 1. If @BeforeStories method is failed - test stories should not be started. For this I use Configuration MostUsefulConfiguration().doSkipScenariosAfterFailure(false) 2. If one…
Sergii Tanchenko
  • 702
  • 6
  • 18
3
votes
1 answer

Get a scenario-by-scenario pass/fail report with JBehave

I want to generate a report from JBehave that just lists the name of each scenario and a PASS/FAIL status. Bonus points if it gives a PASS/FAIL status for a story based on the the scenario results (if all scenarios pass the story passes). …
M. Krajnak
  • 97
  • 1
  • 9
3
votes
1 answer

Can you use TestNG's dataprovider with JBehave?

I'm looking for a BDD library that will work with TestNG (this is important because we already have a configured CI server that is integrated with TestNG). I found JBehave but want to know if it is possible to use features such as TestNG's data…
Jack Allan
  • 14,554
  • 11
  • 45
  • 57
3
votes
1 answer

Unable to run jbehave feature/story with JUnitReportingRunner

I am using JUnitReportingRunner as below in jbehave .feature file in eclipse. But only BeforeStories and AfterStories are run and the .feature file is not getting executed. Here is the code and error. Please help. What could be the issue? Any help…
3
votes
2 answers

Access JBehave Examples table data in step

I would like to know if there is a way I can access examples table row data within a step method without passing it in as an argument? Story file: Given I am logged in When I create a trade Then a trade should be…
Olivia
  • 31
  • 1
  • 3
3
votes
2 answers

jbehave run only specific story

I have jbehave integrated with Selenium. I am running my tests through command line as below C:\eclipse_workspace\MySeleniumTests>mvn clean test -Dwebdriver.firefox.bin="C:\Program Files\Mozilla\Firefox\firefox.exe" I have used jbehave-maven-plugin.…
Kaizar Laxmidhar
  • 859
  • 1
  • 17
  • 38
3
votes
2 answers

jbehave + thucydides: how to override 300s timeout

I'm using thucydides jbehave plugin to run Selenium tests. However, I can't run tests longer than 5 min in total due to jbehave timeout. I can't figure out how can thucydides/jbehave should be configured to override this limitation. Selenium tests…
Eljah
  • 4,188
  • 4
  • 41
  • 85
3
votes
1 answer

ClassLoader finds Resource only in specific Threads

I am struggling with a situation in which a ClassLoader is trying to resolve a resource, which only works under certain conditions. The use-case is as follows: I am using IBM Rational Functional Tester in combination with JBehave for automated…
AndreasEK
  • 363
  • 1
  • 10
3
votes
2 answers

JUnit reporter does not show detailed report for each step in JBehave

I'm trying to set up JBehave for testing web services. Template story is running well, but I can see in JUnit Panel only Acceptance suite class execution result. What I want is to see execution result for each story in suite and for each step in…
3
votes
1 answer

Jbeahve - convert enum parameters

I'm using jbehave in my project. the story: Scenario: Basic new document creation Given a user Micky Mouse When new document created Then document should named new document And document status should be NEW my code: /snip @Then("document status…
Adi Mor
  • 2,145
  • 5
  • 25
  • 44