Select Page
Automation Testing

How to integrate Jira with Serenity BDD

Updating executed automation BDD scenarios status in Jira story is an essential feature. We will see how to integrate Jira with with Serenity BDD.

JIRA is a popular issue tracking system that is also often used for Agile project and requirements management. Many teams using JIRA store their requirements electronically in the form of story cards and epics in JIRA. Updating executed automation BDD scenarios status in Jira story is an essential feature. We will see how to integrate Jira with with Serenity BDD.

Step-1: Add Maven Dependency

Add the below Maven dependencies in POM.XML

<dependency>
  <groupId>net.serenity-bdd</groupId>
  <artifactId>serenity-jira-requirements-provider</artifactId>
  <version>1.1.3-rc.5</version>
</dependency>

<dependency>
  <groupId>net.serenity-bdd</groupId>
  <artifactId>serenity-jira-plugin</artifactId>
  <version>1.1.2-rc.1</version>
</dependency>

Step-2: Add jira Credentials in serenity.properties

jira.url=jira.company.com
jira.project=JP
jira.username=USERNAME
jira.password=PASSWORD
serenity.requirement.types=epic,story
serenity.public.url=http://buildserver.myorg.com/latest/serenity/report

Please note that the above mentioned jira.project value is Jira Project Key.

Step-3: Add Issue Tag in Feature file

@issue:#102
Scenario: Sample Scenario for Jira reporting
Given I login into the application
When I add a product in the cart
Then I should see the added product in the cart

Note: In the feature file, you need to tag the scenarios to be reported in Jira in the following format @issue:#<Jira Ticket Number>. You have already mentioned your Jira project key in Serenity properties file. Just provide the ticket number as shown in the above BDD scenario and don’t prefix the project key.

Comments(0)

Submit a Comment

Your email address will not be published. Required fields are marked *

Talk to our Experts

Amazing clients who
trust us


poloatto
ABB
polaris
ooredo
stryker
mobility