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

BDD good for UI automation?

We are about to make a decision of choosing the best approach for UI automation framework. We have 2 options: TestNG with webdriver for UI automation Inhouse tool built with BDD. We are in a critical situation to decide which technology is better…
farheen
  • 1,786
  • 1
  • 15
  • 22
4
votes
1 answer

Loading data dynamically from properties file to jbehave story

How can I load the data dynamically from a .properties file to my jBehave story file? I have been using $ in my story file like: When the stock is traded at price : $ Then the alert status should be $ I am trying to fetch the values…
4
votes
1 answer

JBehave how to fail all stories

I dont know why, but JBehave does not take in consideration failures in the given stories. If there is a failure in a givenstory, it will not perform the rest of the steps of that story, but it will execute the rest of the given stories. Here is a…
mpssantos
  • 931
  • 13
  • 30
4
votes
1 answer

What's causing this Maven/JBehave error?

I have a Maven project that produces a Mule Connector. It's basically a shell, so I started adding some BDD tests using JBehave. The first test I added does very little: public class FakeSteps extends Embedder { @Given("I have something") …
TERACytE
  • 7,553
  • 13
  • 75
  • 111
4
votes
2 answers

How can i load a story file from a different folder in JBehave

I need to have my mystory.story file and MyStory.java in different folders. Below is my configuration, @Override public Configuration configuration() { return new MostUsefulConfiguration() // where to find the stories …
Karthikeyan
  • 2,634
  • 5
  • 30
  • 51
4
votes
1 answer

org.jbehave.core.io.storyresourcenotfound exception when running jbehave test in eclipse

I am getting this exception when I run the IT test written jbehave in eclipse. org.jbehave.core.io.storyresourcenotfound I have path_steps.java and path_story.java in test/java/package and path.story file in the same package in…
user1772643
  • 615
  • 3
  • 11
  • 23
4
votes
3 answers

Jbehave and expecting exceptions

I have a "when" in JBehave which under certain circumstances should throw an exception. I cant find any documentation, however, on how to handle this. Here is my scenario: given a game with 6 existing bets and the game's max bets are 6 when a user…
pondermatic
  • 6,453
  • 10
  • 48
  • 63
4
votes
1 answer

Does JBehave work like Jasmine?

I love the Javascript BDD tool Jasmine, as it is highly flexible to define the stories. The stories in Jasmine can be structured in a way that the prerequisite stories are ran before the stories that depended on the previous ones. This makes the…
Kata
  • 685
  • 1
  • 9
  • 22
4
votes
1 answer

How to make stateful JBehave steps safe for multithreaded execution

Currently, I'm injecting a steps class into a JUnit test using Spring: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration... class MyTest extends JUnitStories { @Autowired private MySteps mySteps; public List
hertzsprung
  • 9,445
  • 4
  • 42
  • 77
3
votes
1 answer

Stylizing JBehave Reports

I am creating a collection of JBehave reports during my build that I would like to enhance. The default html reports that JBehave generates are very bland and could be tweaked for easier readability on my wiki when I post them for my customers. I…
TERACytE
  • 7,553
  • 13
  • 75
  • 111
3
votes
1 answer

JBehave Set mapping between @BeforeStory/BeforeScenario per individual Story/Scenario

Looking at the code of jBehave I noticed that all the @BeforeStory/Scenarios annotations run for all the Stories/Scenarios present in the purview of JBehave. There doesn't seem to be any one to one correspondence between Stories/Scenarios and…
Bhuvnesh Pratap
  • 437
  • 1
  • 5
  • 16
3
votes
1 answer

copy jbehave stories into target directory using IntelliJ Idea

Does anybody know how to configure IntelliJ Idea so that it automatically copies JBehave *.story files into the target directory?
Matej Tymes
  • 1,694
  • 1
  • 16
  • 30
3
votes
0 answers

Does jbehave have a way to share variables between keywords?

I have story something like this: Scenario: Go to screen Configuration->Setup->Device Operation Mode , Set Device mode to IP if not matched Given I am on page Configuration->Setup->Device Operation Mode When I choose "IP" if not matched from…
3
votes
3 answers

Bamboo recognising JBehave tests

I have setup Bamboo to run JBehave tests on a remote agent (with JBehave-web plugin launching test using webdriver), and everything runs fine. Only problem is after the execution is finished Bamboo shows no test executed. I can see the option in…
jasalguero
  • 4,142
  • 2
  • 31
  • 52
3
votes
1 answer

How to escape '|' character in JBehave

I'm using JBehave 4.0.5 I need to escape the pipeline(|) from the JBehave tabular parameter verification. As per this answer from Stack Overflow, In Cucumber we can use '\|' to escape the pipeline on tabular verification, but i couldn't find one…
Aski
  • 31
  • 5