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 |
---|
exclude | Contents: |
---|
style | circle |
---|
separator | braces |
---|
|
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.
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 |
---|
|
@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
...