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

Fail To Run JBehave in JBoss

When I run my first JBehave code in JBoss I got the following error: java.lang.NoClassDefFoundError: org/apache/commons/collections/Transformer at org.jbehave.core.configuration.Configuration.(Configuration.java:113) at…
0
votes
1 answer

JBehave story if condition

I want to execute a step only if it mets certain condition. For instance, Given a lists of days and MonthYear If list contains a 30 days month then When the user enters 31 for 30 days month Then the error message shown is 'Invalid date' Is it…
Kaizar Laxmidhar
  • 859
  • 1
  • 17
  • 38
0
votes
1 answer

Skip a scenario when running my test cases through junit

I need to skip a scenario while executing my story via Junit, I tried adding a Meta tag like, Scenario : avoid this scenario Meta:@skip When I want to avoid this scenario Then the scenario will be avoided I configured my Junit…
Anand B
  • 2,997
  • 11
  • 34
  • 55
0
votes
1 answer

JBehave Stories will not run as Embeddables

I have been attempting to run concurrent, multi-threaded stories using JBehave. They run correctly when using the embedder, but when running them as embeddables, they don't execute. When I change the source directories or the scope, I get a…
PaulC
  • 1
  • 1
  • 2
0
votes
1 answer

JBehave Tabular Parameter Issue

I have a step with a tabular parameter "flightDate". The thing is that the placeholder isn't replaced by a real value when it occurrs in string mapped to "flight" which happens to be in JSON. Any suggestions on how I could get ALL occurences of…
aandeers
  • 431
  • 1
  • 6
  • 19
0
votes
2 answers

Running multiple stories in sequence

I have multiple stories under a package. Can someone give me the runner code for executing all the jbehave story files in a sequence. I have been using the storyPaths method but it is not working
Rishi Khanna
  • 409
  • 1
  • 5
  • 16
0
votes
1 answer

Running multiple test cases in jbehave

I am new to jbehave. I need to call jbehave from junit. How can I run multiple test cases in jbehave.
Anand B
  • 2,997
  • 11
  • 34
  • 55
0
votes
2 answers

where I should place log4j.properties file to enable debug logging in smslib,when it is added through maven dependencies?

I'm doing some java maven project based on thucydides-jbehave-archetype. Smslib dependency is added through maven: org.smslib smslib
Eljah
  • 4,188
  • 4
  • 41
  • 85
0
votes
1 answer

Integrating jBehave + Junit + Springs + Selenium

I have one integration-test written in JUNIT 4.8.2 (Selenium and Spring annotations are used in it). Now i have to integrate these with JBehave. How this can be achieved? My TestClass looks something like below @ContextConfiguration(locations = {…
user2649233
  • 912
  • 4
  • 14
  • 28
0
votes
1 answer

Ho to obtain random parameters for jbehave steps right from another steps

I'm newbie to jbehave, and I plan to use it with thucydides+selenium. Among the tests I'd like to design, there is a step, that will have no input parameter, but will return some value, to be used in further parameterized steps. However, i don't see…
Eljah
  • 4,188
  • 4
  • 41
  • 85
0
votes
1 answer

Is it possible to run a specific java method after all of the @Given statements have completed for a specific scenario?

Currently I have a story written like: Given I login as a user And that user likes computers And that user has a car When that user goes to school Then he will be happy I want to be able to execute a java login method after I have collected all of…
bbarke
  • 309
  • 1
  • 14
0
votes
0 answers

Conflicts between Derby and JUnit 4?

In order to add some new ATDD testing features to our project(Using JBehave). I have updated my JUnit jar (4.4 -> 4.10) so that I can make use of the SpringAnnotatedEmbedderRunner class. Since doing so, many of our unit tests are failing. All of…
Michael W
  • 3,515
  • 8
  • 39
  • 62
0
votes
1 answer

How to avoid Google Chrome try access my contacts when executing tests with Jbehave and Selenium Webdriver?

I'm developing and executing some tests with Jbehave and Selenium WebDriver. When one of the tests try to write into a login field, then Chrome WebDriver try to access the address book and due lack of permissions shows this message: Google…
Dr. No
  • 1,306
  • 5
  • 28
  • 57
0
votes
1 answer

BeanCreationException during acceptance tests

I use Spring Security to authentication. I modified my annotation @Page which define which type of user is able to access page. After that in my acceptance tests i started to get errors in: public void login(@Named("email") String email,…
akuzma
  • 1,592
  • 6
  • 22
  • 49
0
votes
1 answer

Get specific tag value for a scenario in JBehave

If there any way to get value for @dataset tag for the following scenario in JBehave? Scenario: Open/close chat and send messages @dataset set2 Given user is logged into the system When user opens chat ... I've tried…
Alexander Sirobaba
  • 4,149
  • 2
  • 15
  • 13