TestingDocs.com
    Software Testing website
    • Automation
      • Selenium
      • JBehave Framework
    • Tutorials
      • MySQL Tutorials
      • Testlink
      • Maven
      • Git
    • IDEs
      • IntelliJ IDEA
      • Eclipse
    • Flowcharts
      • Flowgorithm
      • Raptor
    • About

    JBehave

    Running Serenity BDD stories with Jenkins

    JBehave, Jenkins

    Overview

    In this tutorial, we will learn how to run Serenity BDD stories with Jenkins. This allows you to run serenity bdd stories automatically with a single button click, or schedule story runs automatically, history of test results to check progress and test result trends etc.

    Serenity BDD stories with Jenkins

    In this tutorial, we will learn to configure a Jenkins job to run the serenity BDD stories. If you are new to Serenity or JBehave or wondering how to create a sample BDD project, then follow this link: sample serenity bdd project

    or

    Setup Serenity BDD project from command line.

    If you are relatively new to Jenkins, then follow this link to learn how to install Jenkins: How to install Jenkins?

    JDK configuration in Jenkins : Configure Jenkins

    Install Plugin

    To install a plugin,

    Manage Jenkins >> Manage Plugins >> Search Thucydides Plugin.

    Select the plugin and click on the install button.

    Note that: Thucydides is the old name for Serenity BDD library.

    Configure the project

    Launch Jenkins >> New Item

    Enter the Jenkins Job name and select >> Maven Project and click OK button.

     

    In the /configure page you set a variety of build and run options for the
    Jenkins Job.

    The most important one is to specify the Root POM for the project.
    Give the path of the pom.xml of your project.

    Under Goals you can specify the maven goals : clean verify.

    Post build action.

    Add a post build action for the serenity report.
    Specify the /target/site/serenity which has the index.html report. Once this is done, the Serenity report will show up in the next Jenkins build.

    Click on the Build Now to run the serenity bdd stories.

    To check the build console output, click on the ‘Console Output’ of the job.

     

     

    You can see that serenity story reports are now configured and with a button click you can view the report in Jenkins.

     

     

    The main advantage of moving your story runs to Jenkins is that , you will get a glimpse of your story run trends build over build.

    Story trends in Jenkins

     

     

    Test result trends displays the graph of story pass/failure/errors from build to build. This would enable you to get more insights of the automation effort.

     

    JBehave Tutorials on this website can be found at:
    https://www.testingdocs.com/jbehave-framework-tutorial/

    For more details on the JBehave framework, visit the official JBehave website at:
    http://jbehave.org

    Related Posts

    Create a New Project Eclipse

    JBehave /

    Cucumber Java BDD Selenium Framework

    JBehave + Serenity Sample Project

    JBehave /

    JBehave + Serenity Sample Project

    Serenity BDD Automation Framework

    JBehave /

    Serenity BDD Automation Framework

    Serenity Maven Artifacts

    JBehave /

    Serenity Maven Artifacts

    Introduction to Serenity BDD

    JBehave /

    Introduction to Serenity BDD

    ‹ Create Serenity JBehave project from command line.› Install JBehave Plugins on Ubuntu

    Recent Posts

    • ChatGPT Plans Free and PlusChatGPT Subscription Plans
    • Stellar Converter for Database ToolStellar Converter for Database
    • Stellar MySQL Log AnalyzerStellar Log Analyzer for MySQL
    • Stellar Repair for MySQLStellar Repair for MySQL
    • ChatGPT IntroductionChatGPT Capabilities
    • How to secure your SQL Database: Tips and Tricks
    • ChatGPT4 Conversational AI FeaturesChatGPT4 Conversational AI Features
    • Trends in Software EngineeringShaping the Future of Development: Exploring Key Trends in Software Engineering
    • Java PerformanceImproving Java Performance with Multithreading
    • QDrant Vector DatabaseOpen-source Vector Databases
    • Difference between PHP and JavaScript?
    • Bing AI Browser Web ContentBing Conversation Styles
    • ChatGPT PreviewChatGPT Introduction
    • Open Source AI Frameworks TensorFlowOpen Source AI Frameworks
    • Artificial Intelligence Tools

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com