jbehave

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 places a bet there's no then, since I want an exception thrown when the user places the b...

How do I tell JBehave META-INF to configure it for JPA using the Maven plugin?

I'm trying to get JBehave, JPA and Maven to play nicely together. I can run the test via eclipse and everything works just fine. I run it via maven, and JPA can't find the persistence.xml file. However a unit test I have finds the persistence.xml file just fine, but JBehave is not involved. Clearly I need to tell JBehave to look in src...

Combine jmockit & jbehave

I found jmockit a great mocking framework and jbehave a great way doing software testing. However, I'm unable to coordinate the two. In order to run jbehave in eclipse, I create a class that extends the JUnitScenario. This class in turn use a Steps class. And I place several mocks inside this Steps class. However, when being executed, J...

Using Tyburn with Maven

Guys, I"m trying to use Tyburn to do some BDD with JBehave and I've got a question about what Tyburn can do. Can Tyburn simulate Menu selections? Like Ive I want to say something like @Then("when I select 'Start' from the Recording Menu) selectMenu(Recording) selectMenuItem(Start) Is there a way to make this happen? Thanks, Joe ...

Is JBehave a good choice for Web Service Automated Testing?

Hi All, 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 do use Soap UI to test manually. But we are planning to automate the functional...

ScenarioNotFoundException when trying to run jBehave scenario

I've been Google-ing around for a while trying to figure out a fix for this with no real luck. I'm getting this when trying to run a jBehave test - org.jbehave.scenario.errors.ScenarioNotFoundException: Path '$Path_to_jBehave_Directory' could not be found by classloader sun.misc.Launcher$AppClassLoader@f4a24a ... My textual scenari...

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 user password equals to "a1b2c3" Next, I create a Java class: public class UserManipul...

Organising JBehave stories

We've just started looking at using JBehave for acceptance tests and I was wondering how people that are using it are organising the writing of stories and the storage of story files. It's just development that are working on them at the moment so we have the story files stored in the resources folder alongside the Java code to implemen...