AVAILABLE NOW - AssertThat Jenkins plugin

By Nick Iles on May 27, 2019

INTEGRATION BETWEEN ASSERTTHAT'S BDD TEST AUTOMATION PLUGIN FOR JIRA AND YOUR TEST AUTOMATED FRAMEWORK COULDN'T BE EASIER

AssertThat have released our plugin for Jenkins the go-to dev-ops tool.

The Jenkins plugin provides integration between AssertThat’s BDD Test Automation plugin for Jira and your Test Automation Framework.

What Does the plugin do?

The plugin provides seamless integration for:

  • Downloading feature files from AssertThat’s BDD plugin in Jira into your Test Automation framework before test run
  • Filtering features to download based on mode (automated/manual/both), or/and Jira JQL
  • Uploading cucumber json after the run to AssertThat BDD Jira plugin. Enabling you to view your test automated results alongside your user stories in Jira.

1. Installing the plugin

From Jenkins plugin manager, the plugin can be found at: https://plugins.jenkins.io/assertthat-bdd-jira

2. Create credentials

The Jenkins plugin requires the following credentials for authentication:

  • Project ID
  • AssertThat BDD Access Key
  • AssertThat BDD Secret Key

All this information can be found from the AssertThat Integration in Jira. Details of how to access the AssertThat Integration page can be found at: https://assertthat.atlassian.net/wiki/spaces/ABTM/pages/725385217/AssertThat+Configuration

3. Usage in Job

The plugin performs 2 functions:

Download features:

  • Jira project ID (mandatory)
  • Credentials as defined above
  • Feature output folder (optional)
  • JIRA JQL (optional) - JQL filters can be developed using the JIRA’s advanced searching functionality e.g. “Sprint = 5”
  • Mode - defines whether to download automated, manual or both types of scenarios from AssertThat.

Upload reports:

  • Jira project id (mandatory)
  • Credentials (mandatory)
  • Json output folder (optional)
  • Json pattern (optional) - can be used to filter json files
  • Run name (optional) - Update this field to overwrite Test Run name when uploaded to AssertThat. Default will be Test run + timestamp

Usage in pipeline Job

pipeline {
    agent any 
    stages {
        stage('Features') { 
            steps {
                //Download feature files
                assertthatBddFeatures(credentialsId: '10005-creds', jql: 'project=DEMO', mode: 'automated', outputFolder: 'features', projectId: '10005')
            }
        }
        stage('Run tests') { 
            steps {
                //Run tests here
            }
        }

    }
    post{
        always{
                //Upload test results
                assertthatBddReport(credentialsId: '10005-creds', jsonReportFolder: 'report', jsonReportIncludePattern: '**/*.json', projectId: '10005', runName: 'Smoke test run') 
        }
    }

Try for free AssertThat - BDD Test Automation in Jira has been built with the tools and features designed to support your organisation successfully adopt BDD in Jira. For a free 30 day trial please install the plugin at AssertThat Atlassian Marketplace or please contact us at [email protected] to arrange a demo where we can show how AssertThat can help your organisation.

Try if for Free - AssertThat BDD Test Automation for Jira