Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

  • Download feature files before test run

  • Filter features to download based on mode (automated/manual/both), or/and JQL

  • Upload cucumber/karate json after the run to AssertThat - BDD & Cucumber for Jira plugin

Create credentials

Usage in Job

Download feature files:

Upload reports:

Usage in pipeline Job

pipeline {
    agent any 
    stages {
        stage('Features') { 
            steps {
                //Download feature files
                assertthatBddFeatures(credentialsId: '10005',  jiraServerUrl: '', jql: "project = XX AND key in ('XXX-1')", mode: 'automated', tags:'(@smoke or @ui) and (not @slow)', outputFolder: 'features', projectId: '10005')
            }
        }
        stage('Run tests') { 
            steps {
                //Run tests here
            }
        }

    }
    post{
        always{
                //Upload test results
                assertthatBddReport(credentialsId: '10005',  jiraServerUrl: '', jsonReportFolder: 'report', jsonReportIncludePattern: '**/*.json', projectId: '10005', runName: 'Smoke test run', type: 'karate')
        }
    }
  • No labels