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

Is it possible to study BDD without prior TDD experience?

I have no experience neither in TDD nor in BDD. Yes I've created unit tests for existing code a lot, but it's not relevant here. Also I cann't use TDD/BDD at my job but want to try in some hobby project. I am not sure if I currently grasped the…
GrayR
  • 1,395
  • 2
  • 19
  • 32
3
votes
3 answers

Problems running JBehave with Maven

I am trying to get a JBehave story to execute in Maven it is completely ignoring the JBehave plugin. I've spent several hours using different configurations but it looks like the plugin isn't being executed at all. Any recommendations/tips would be…
seedhead
  • 3,655
  • 4
  • 32
  • 38
3
votes
3 answers

Integration of jbehave with jenkins

I have to integrate jbehave with jenkins. But I don't have idea how to do this. I saw that I have to create a task in Jenkins, but I don't know where I should wire jbehave with this task. Can somebody help me? Thanks, Sarang
Ignacio Giagante
  • 364
  • 1
  • 5
  • 19
2
votes
1 answer

[Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost

I have a simple java project using Slenium and JBehave for automation testing. My simple "open a page" code still worked last week but today the code run fine but the end of the execution I get this error message: [Parent][PImageBridgeParent] Error:…
BorbelyI
  • 31
  • 2
2
votes
0 answers

java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: 568

I am trying to test some API's using jbehave. While trying to configure my Jbehave stories i am running into the following error (attached below): I even tried using --illegal-access=permit. I used the command java -cp out…
abzd
  • 41
  • 1
  • 10
2
votes
1 answer

JBehave examples table and Date objects

I have a JBehave test which lists some expected results in an ExamplesTable Then result is : |name|value| |foo|2011-05-29| |bar|baz| And the object under test is something like: class A { private Date foo; private String bar; /* ...…
Paul McKenzie
  • 19,646
  • 25
  • 76
  • 120
2
votes
0 answers

Failed to convert Jbehave named parameters without delemeters

We are using Serenity with Jbehave for out automation stories, and we have recently upgraded our version to Serenity(2.2.1) and jbejave(1.46.0). Jbehave-core updated from 4.1.3 to 4.4. After the update i am facing an issue with examples table. it is…
pradeep
  • 21
  • 2
2
votes
1 answer

Always wait for the page to load on PageObjects

So, I was just creating a simple selenium/JBehave code when a question appeared. I'll first post the code simplified and then explain what is my question later. So here we have a simple AbstractClass that will be inherited on my PageObjects. This…
kivul
  • 1,148
  • 13
  • 28
2
votes
0 answers

How can we have time stamp display in BDD story file output

I have BDD story file in which i have "given,when,then,scenarios". I would like to add timestamp in story file output. How can we do that? An example: Given a step that is executed before each story Scope: SCENARIO Given a step that is executed…
eddieB
  • 43
  • 1
  • 6
2
votes
1 answer

Running a single test suite multiple times in parallel with Serenity

I have a single test suite (i.e. feature) written with Java/Appium. I want to run this test suite on several different devices (iPhone, Android phones, etc.). I want to do this in parallel as well - i.e. I want to run the same test suite as several…
Emily
  • 82
  • 1
  • 10
2
votes
0 answers

Running JBehave with Junit 5 Jupiter

I'm trying to get some JUnit 4 based JBehave tests running on JUnit 5. In my project I have a single test class for all stories JBehaveTest. When I run it as a JUnit 5 test JUnit doesn't see any tests. I modified the @Test annotations to their…
M. le Rutte
  • 3,525
  • 3
  • 18
  • 31
2
votes
1 answer

ClassCastException on running tests based on serenity-jbehave

Getting the following error while Run as JUnit Test. java.lang.ClassCastException: java.base/[Ljava.lang.Object; cannot be cast to [Lorg.jbehave.core.reporters.Format; at…
RJM
  • 271
  • 1
  • 5
  • 32
2
votes
1 answer

JBehave RunningStoriesFailed exception ; org.jbehave.core.embedder.Embedder$RunningStoriesFailed

getting this error while executing the project :- java.lang.RuntimeException: org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running stories: sample/test.story: org.jbehave.core.embedder.StoryManager$StoryExecutionFailed:…
2
votes
2 answers

Better way of comparing two JSON data in Automation Script

I am new to JBehave Rest automation script. Below I wrote few lines of code where my requirement is to compare each and every actual JSON field data with the expected data. Here the number of fields in JSON is huge how can i write the script in best…
pravat231
  • 782
  • 1
  • 11
  • 26
2
votes
1 answer

JBehave resources not found in reports

When I run my test project, the reports are genereted in directory target/jbehave/view as expected. My problem is that the stylesheets are not found... In the directory target/jbehave/view/style I have a css jbehave.css but the reports generated…
bryce
  • 842
  • 11
  • 35