Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Bullet list The JBehaveForJira plugin allows Jira users to write stories directly via the Jira's web interface. Once a story is written you would then want to run it and see the execution result directly in Jira also. For this to happen you need to integrate your testing code with the Jira plugin. To do this you need to first download and install the client library of the JBehaveForJira plugin and then update your testing code to use classes from this client library instead of the default ones provided by the JBehave library. This page describes how to accomplish these two steps. At the bottom of the page there is a link to an example project which you can use as reference. 

...

Table of Contents
excludeContents:
stylecircle
separatorbraces

Example Project

Link to a complete working - example project.

1. Install plugin client library

The plugin client library is distributed in the form of a Jar file. You simply download the file using the link below and add it to the classpath of your tests. 

Jarpom.xml
Uber Jar
CompatibilityVersion Notes

java-client-1.

6.7

7.1.jar

Status
colourGreen
titlelatest

java-client-1.7.1.pomJBehave 5.0 compatibility
  • Aligns Jira HTML reporter implementation to the JBehave API version 5.0

java-client-1.6.8.jar

pom_1.6.
7
8.xmlJira plugin minimum version - 5.0.7
  • support for using JQL filter when searching for Jira issues with stories

java-client-1.6.7

-uber

.jar

pom_1.6.7.xml
  • ability to specify socket timeout period for REST calls

java-client-1.6.6.jar

StatuscolourGreentitle

latest
pom_1.6.6.xml
java-client-1.6.6-uber.jar

  • fix for duplicate reporting of scenarios with examples
  • improved scenario examples reporting

java-client-1.6.5.jar

pom_1.6.5.xml
java-client-1.6.5-uber.jar

  • fix for project keys with numbers

java-client-1.6.4.jar

pom_1.6.4.xml
java-client-1.6.4-uber.jar

  • fix for using issue filter parameters
java-client-1.6.3.jarpom_1.6.3.xml
java-client-1.6.3-uber.jar

  • fix for reporting the underlying error message returned from Jira plugin in case of Rest call issues
  • BUG: not possible to use any issue filter parameters

java-client-1.6.2.jar

pom_1.6.2.xml
  • minor update for compatibility with jbehave-core 4.7 version
pom_1.6.0.xmlJira plugin minimum version - 4.0.0
JBehave core minimum version - 4.7
  • jbehave-core dependency upgraded to version 4.7
java-client-1.1.5.jar pom_1.1.5.xml
  • supports OAuth 1.0a 
java-client-1.1.4.jar  java-client-1.1.3.jar  java-client-1.1.2.jar  java-client-1.1.1.jar  java-client-1.0.1.jar
Integrating with your CI build  


Integrating with your CI build  


Integrating with your CI build  


Integrating with your CI build  


Integrating with your CI build


Maven Users

If you are using maven then you can install the downloaded file into your local repository with the help of maven's install plugin using a command like the one below:

...

Code Block
languagejava
    @Test
    public void run() throws Throwable {

        Embedder embedder = configuredEmbedder();

        try {
            embedder.runStoriesAsPaths(storyPaths());
        } finally {
            // report step docs
            List<CandidateSteps> candidateSteps = embedder.stepsFactory().createCandidateSteps();
            embedder.reportStepdocs(configuration(), candidateSteps);
        }
    }

Example Project

...