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

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…
Jim Barrows
0
votes
1 answer

JBehave - how to write idempotent story?

I want to write a "common" story for my acceptance tests in JBehave that adds an user only if he does not exists. The "createUser" story is an acceptance test case itself. I want to refer to it with GivenStories e.g. on "modifyUser", "deleteUser"…
fracz
  • 20,536
  • 18
  • 103
  • 149
0
votes
1 answer

Design issue with automating a Then step in my BDD scenario

I am quite new to BDD, I am trying to use BDD in order to develop a simple signup module for a website. I have the following scenario: Scenario: An anonymous visitor successfully signs up with the website Given the following email address:…
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
1 answer

JBehave Sentance "API" Generator available

I'm trying to provide my QA team a list of available sentences in JBehave based on methods annotated with Given, When, Then, and Alias. As follows: Then $userName is logged in. Then user should be taken to the "$pageTitle" I recently wrote a…
Bob Paulin
  • 1,088
  • 8
  • 13
0
votes
1 answer

How can I convert Jbehave Test into Maven target?

I have written test cases with Jbehave I run it with Junit, Now I need to convert it into Maven target. How to do it? what lines should I add to pom.xml to make it work? EDIT: How to run it as Maven target?what commands should I use? I have a test…
Just_another_developer
  • 5,737
  • 12
  • 50
  • 83
0
votes
1 answer

Using XLS files to store JBehave stories

I have based my new project with JBehave, Selenium, Maven and Spring from the etsy sample here : https://github.com/jbehave/jbehave-tutorial/tree/master/etsy-selenium/java-spring I'm really new to JBehave and I would like to know if there is a way…
Dough
  • 515
  • 1
  • 6
  • 20
0
votes
1 answer

Malformed url Exception while running behavioural test cases

I am trying to access a web page url from my behavioural test case. The following piece of code is used for it: @When("the user opens the sys admin login page of jset application") public void openSysAdminLoginPage() throws Exception { htmlPage…
Chillax
  • 4,418
  • 21
  • 56
  • 91
0
votes
2 answers

another option for selenium & JBehave?

I have been working on ATCs during 2 months and I continue having problems with Chrome, Selenium and JBehave. The Chrome driver for selenium has some bugs. For example: Sometimes it said that the components could not be found or clickable. For this…
0
votes
1 answer

how can I filter tests on multiple criteria

I have a large set of tests that I would like to be able to filter so that I can run specific tests. I am currently using JBehave with JUnit If I have three sets of criteria priority with values from 1 to 5 colours with possible values of red,…
Gazen Ganados
  • 665
  • 1
  • 7
  • 17
0
votes
1 answer

Embedded tomcat won't let my selenium/jbehave stories run

I am trying for the embedded tomcat to start before the integration tests (mine use Selenium + JBehave) and stop just afterwards. Here is how I tried to configure maven: org.apache.tomcat.maven
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
2 answers

How do I make JBehave ignore failed scenarios?

Scenario A: Step A - PENDING Step B - PENDING Scenario B: Step C - Implemented Step D - Implemented When running the story, steps C and D are set as NOT PERFORMED. How do I get those to run even with scenario A failing due to pending steps? I've…
edwardmlyte
  • 15,937
  • 23
  • 58
  • 83
0
votes
1 answer

jbehave click link within

Is there any function similar to click_link_within in jbehave? I want an easy way to click a link which is selected by it's text within a certain area on the page.
rabs
  • 1,807
  • 3
  • 18
  • 29
0
votes
1 answer

jbehave configuration through annotation screenshot on failure

I have my JBehave configuration as follows: @RunWith(SpringAnnotatedPathRunner.class) @UsingPaths(searchIn = "src/test/resources") @Configure(storyReporterBuilder = MyReportBuilder.class, pendingStepStrategy = …
Arek
  • 1,941
  • 4
  • 22
  • 27
0
votes
1 answer

JBehave pattern variants - trying to match alternatives

I have the following in my story that I am trying to match !-- Block 1 When I "action" of document "document" to "status" and nextAction When I "action" for document "document" to "status" and nextAction When I "action" document "document" to…
Gazen Ganados
  • 665
  • 1
  • 7
  • 17
0
votes
2 answers

How to implement the same story text to different page objects in Jbehave

I am just starting out with Jbehave Web with WebDriver and wondered whether it was possible to have the same textual step apply to different step methods. Say for example you have the following two scenarios Scenario 1 Given I am on the properties…
Ben
  • 15
  • 3
1 2 3
36
37