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

How does JBehave work with Java?

I have a task for work that I can't seem to complete because I don't fully get the toolset at hand. I am supposed to use JBehave along with Selenium Web Driver to be able to add a certain book to a wishlist on an amazon account. I have a given story…
Ralph
  • 2,959
  • 9
  • 26
  • 49
5
votes
1 answer

JBehave - run a single scenario

My situation is this: I have a JBehave story containing multiple Scenarios. Each scenario writes some files, checks that they're as expected. Then the @BeforeScenario for the next scenario causes the framework to delete the output files. When some…
slim
  • 40,215
  • 13
  • 94
  • 127
5
votes
1 answer

Is JBehave a good choice for Web Service Automated Testing?

We have a requirement at my workplace to automate the webservice testing. We have been using QTP scripts to do so. We as a team, Kind of leaning towards Jbehave as a choice. Is JBehave a good choice for web service functional testing automation? We…
5
votes
3 answers

FileNotFoundException running JBehave (Maven Project, IntelliJ)

Firstly, I'd like to say that I'm a .Net developer who's temporarily working on a java project. I'm very familiar with SpecFlow and it seems that JBehave is very similar. I'm trying to get a basic story to run in my project, but everything I try to…
Tom Cook
  • 71
  • 1
  • 3
5
votes
2 answers

Jbehave get Story name inside @BeforeStory

I would like to get the Story name in a method annotated with @BeforeStory. I need this for debugging purposes, cause i'm running a bunch of stories with runStoriesAsPaths and with multiple threads, and I'm trying to log which thread is running…
rafaferry
  • 75
  • 1
  • 5
5
votes
1 answer

How to use different Junit TestRunner in Eclipse and Ant?

I have a couple of JBehave tests that I want to run from Eclipse and Ant. In Eclipse I want to see a tree of all the different stories, scenarios and steps that are performed in the graphical output, so I added a custom runner to the tests that does…
Gandalf
  • 2,350
  • 20
  • 28
5
votes
4 answers

Maven JBehave : encoding stories UTF8

We managed to create and run tests with internationalized stories using JBehave within eclipse. Everything went fine. But when we tried to run them using the maven plug-in, we cannot get rud of the encoding problem (for example, instead of reading…
antoine
  • 618
  • 7
  • 16
4
votes
1 answer

Add custom info to JBehave HTML report

When generating reports, JBehave automatically puts the story contents into the report, along with possible assertion failures. So far, so good. However, I would like to add some more information, especially (but not necessarily limited to) failing…
Daniel Schneller
  • 13,728
  • 5
  • 43
  • 72
4
votes
4 answers

JBehave & Maven - how to skip scenario tests

I'm using jbehave and the jbehave maven plugin to run a set of scenario tests. Have my test class extending JUnitStories, and everything works nicely. Only issue is, I can't stop running the tests... Every time I run the maven install goal, it runs…
john.harvey
  • 49
  • 1
  • 2
4
votes
2 answers

Webdriver not finding elements in remote IE

I'm having a strange issue with webdriver. I have a local environment and a remote environment to perform my tests; they work great in Firefox in both environment, but with Internet Explorer 8, they only work in local. Whenever I run the tests…
jasalguero
  • 4,142
  • 2
  • 31
  • 52
4
votes
1 answer

Unable to run a JBehave story

Can someone help me to run a JBehave story? I've got a Maven project in Eclipse. The story is: Meta: @author Nikolay Vasilev @bdd-talk: BG JUG Scenario: Validating BMI calculator Given a body mass index calculator When a doctor populates health…
shadrik
  • 349
  • 1
  • 4
  • 10
4
votes
0 answers

How to use JBehave tabular parameters from external resource

It's really hard to find a complete solution for JBehave tabular parameter usage from external resource in the internet. So I'm writing this article in a much more descriptive manner with very simple example. This article describes how to use…
4
votes
2 answers

How to skip a particular scenario on Jbehave tests?

I have a particular scenario which is not ready for testing yet. So I need to skip it in order to run the tests on other scenarios. Scenario: Login-success Scenario: Meta: @skip @ignored true //Regular Steps
WarLoCk
  • 53
  • 1
  • 4
4
votes
1 answer

How can I run Cucumber test using explicit Maven goal?

I have an application contains both Cucumber and JBehave test, I want to be able to run one of them optionally every time, I can do that with JBehave by explicit Maven goal, but the problem is that Cucumber run implicitly with each build or test, is…
Fayez Alrafeea
  • 181
  • 1
  • 2
  • 6
4
votes
1 answer

JBehave doesn't seem to execute the tests

So it's my first time with JBehave and I'm trying to create the first JBehave in the project but it currently appears that the test doesn't execute the steps. In the end the test says that all test cases went through without any problems but in fact…
Kamil Janowski
  • 1,872
  • 2
  • 21
  • 43
1 2
3
36 37