Questions tagged [jbehave-maven-plugin]

JBehave supports accessing the Embedder functionality via Maven goals:

  • map-stories-as-embeddables
  • map-stories-as-paths
  • run-stories-as-embeddables
  • run-stories-as-paths
  • run-stories-with-annotated-embedder
  • report-stepdocs
  • report-stepdocs-as-embeddables
  • generate-stories-view
  • unpack-view-resources

Maven goals support the following properties:

  • sourceDirectory: defaults to src/main/java
  • testSourceDirectory: defaults to src/test/java
  • outputDirectory: defaults to target/classes
  • testOutputDirectory: defaults to target/test-classes
  • scope: [compile|test], defaults to compile
  • includes: list of include patterns
  • excludes: list of exclude patterns
  • metaFilters: list of meta filters
  • systemProperties: list of system properties to set during execution
  • batch: [true|false], defaults to false
  • skip: [true|false], defaults to false
  • ignoreFailureInStories: [true|false], defaults to false
  • ignoreFailureInView: [true|false], defaults to false
  • generateViewAfterStories: [true|false], defaults to true
  • storyTimeoutInSecs: defaults to 300
  • failOnStoryTimeout: [true|false], defaults to false
  • threads: defaults to 1
  • embedderClass: defaults to Embedder.
  • injectableEmbedderClass: defaults to null
  • storyFinderClass: defaults to StoryFinder

Reference :

http://jbehave.org/reference/stable/maven-goals.html

19 questions
3
votes
0 answers

Does jbehave have a way to share variables between keywords?

I have story something like this: Scenario: Go to screen Configuration->Setup->Device Operation Mode , Set Device mode to IP if not matched Given I am on page Configuration->Setup->Device Operation Mode When I choose "IP" if not matched from…
3
votes
1 answer

"In order to run a story file you need to first set a main class in the JBehave settings" in intellij

i'm using intellij for the first time to work with jbehave. i have imported a pre existing maven jbehave project in to my intellij IDE. when i'm trying to run it using "Run Story" command. i'm getting the error "In order to run a story file you need…
3
votes
1 answer

Eclipse Jbehave eclipse error

I get this error when i try to open story file in eclipse kepler "Plug-in "org.jbehave.eclipse" was unable to instantiate class "org.jbehave.eclipse.editor.story.StoryEditor"."?? org.eclipse.core.runtime.CoreException: Plug-in "org.jbehave.eclipse"…
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
2
votes
1 answer

Unable to run stories in Jbehave in Eclipse. Need step by step setting up the use fo Jbehave in Eclipse and required details of Jars

Following Steps: Created new Maven Java Project Downloaded JBehave JAR file version 3.6.8 and added it to Configure build path > Add External jars and also added the JUnit4 Installed Eclipse Plugin from Help > Install new Softwares Created a…
Astha
  • 23
  • 1
  • 5
1
vote
1 answer

JBehave incorrectly identifying two steps that have a similar step text part

sign out as \"$signOutUser\" sign out as \"$signOutUser\" and sign in as \"$signInUser\" Above are the two step definitions that cause this issue. JBehave misreads the below step. When sign out as "userA" and sign in as "userB" Even though the…
Aki T
  • 612
  • 2
  • 7
  • 17
1
vote
1 answer

How to get all the test results in a single html file (index.html) in serenity BDD?

I have a serenity BDD framework which is up and running fine. I am getting the results in a html file (named randomly) separately for each scenario in target>site>serenity. Also I don't find any index.html file inside the folder. I need a single…
Deepak Prabhu
  • 219
  • 1
  • 4
  • 15
1
vote
1 answer

JBehave-Maven-Plugin, wrong cdi-api dependency in classpath

I'm useing the cdi-api-1.2 dependecy, when executing jbehave tests with the maven-jbehave-plugin I noticed that classes are loaded form the cdi-api-1.0 and not from the 1.2 version. After duing some research it turns out, that the cdi-api-1.0…
Sascha
  • 127
  • 7
1
vote
1 answer

JBehave Maven RunningStoriesFailed exception

I'm using JBehave and Maven to test a Spring MVC application. I am running the code below with a single story file. My problem is that I constantly get a StoryExecutionFailed error and I don't know why or how to fix it. There is something suspicious…
user5803074
1
vote
2 answers

How to add JBehave BeforeStory AfterStory in a story file

In JBehave, BeforeStory or AfterStory annotation can be added in Step level. So if there are multiple Steps classes with BeforeStory annotation, all those BeforeStory annotated methods will be executed before the each and every story start (which is…
1
vote
1 answer

Why does jbehave-maven-plugin give me a NoClassDefFoundError?

I get the following error when I run mvn integration-test -e com.example.mymodule: [ERROR] Failed to execute goal org.jbehave:jbehave-maven-plugin:3.9.5:run-stories-as-embeddables (embeddable-stories) on project com.example.mymodule: Failed to run…
Tom Norton
  • 751
  • 1
  • 8
  • 19
1
vote
1 answer

Unable to run JBehave with Maven

I followed one of JBehave tutorial with maven, but unfortunately it seems outdated. So I tried to combine it with new tutorial (from official website). After a few modifications, the story couldn't run as before. However here's my project folder…
Aldo Suwandi
  • 382
  • 1
  • 6
  • 20
1
vote
0 answers

How to make jbehave-maven-plugin report failures in maven verify Phase?

I am trying to integrate jbehave-maven-plugin with cargo-maven2-plugin. jbehave-maven-plugin is configured to run during integration-test phase compile true
0
votes
0 answers

How to execute AfterStory/AfterScenario if story failed by timeout

Currently, I have next issue. I'm running test story thru jbehave-maven plugin and passing custom story timeout to it thru properties and setting it to embedder using useStoryTimeouts Timeout is passed correctly, but when story is failing by timeout…
DiTest
  • 31
  • 4
0
votes
1 answer

Story Not Found error while running a test using Jbehave Junit

I have configured my Jbehave test project and has a .story file in the project. I tried using the configuration settings as I found on the internet but when I run the tests, it gives me an error, the stack trace is shown…
Srivastava
  • 3,500
  • 12
  • 46
  • 74
1
2