This post is part of a series about Serenity BDD and JBehave.
Serenity BDD, formerly known as Thucydides, is an open source library designed to make practicing Behaviour Driven Development easier.
My current experience is in creating automated regression and acceptance tests using a combination of Serenity with JBehave.
In this post we will look at the one-way integration Serenity offers with Jira.
Integrating Serenity and Jira one-way
Although Serenity and Jira support two-way integration, in this post we are looking at a first simple attempt of one-way integration. Linking Jira issues from within your stories.
For this step we assume you already have Jira installed and some issues ready to link.
The first step is to create or update your serenity.properties file in your project root directory.
jira.url=http://myjiraserver jira.project=PRJ jira.username=jirauser jira.password=t0pSecret
You can also set these properties up in your Mavenfile or pass them in as system properties.
To link an issue to one of your stories, open or create a story and add the Meta tag @issue to that story
Meta: @issue PRJ-38 Login Narrative: As a user I would like to login on the portal Scenario: Login succesfully
It is also possible to link an issue to a specific scenario in your story
Meta: Login Narrative: As a user I would like to login on the portal Scenario: Login succesfully Meta: @issue PRJ-2