Image CAPTCHA
Enter the characters shown in the image.

You are here

Integrate Cucumber with Jenkins

Why do we need BDD, Highest advantage that it improves communication between Developers, Testers and the product owners and over a period of time we end up having a large suite of tests that need to be run very often.

To have tests running regularly, it is key that we integrate test suite execution with our CI tool chain.

Constantly challenging test suites is an important part of our job here at Modus Create; our current favorite CI tools include Jenkins, Bamboo, and CircleCI.

This article is all about Integrating Jenkins with our BDD system (cucumber)

 

Step 1: Install Dependencies

Install these there plugins that are required to build a bare minimum test suite

Rake plugin – A make-like build utility for Ruby

Rvm – Helps you manage multiple versions of Ruby

Xvfb Plugin (for headless linux OS) (Optional) if you want to run tests on a headless linux machine.

 

Step 2: Create a new freestyle project and configure the Job

Navigate to the configuration page and setup the project to checkout a copy of the source code. If you are setting this up on a Linux/Mac machine use RVM. 

Jenkins

Begin by making sure you have installed the required version of ruby and set it up on the configurations page as below. Make sure you have installed the bundler gem by running

> gem install bundler

Jenkins

If you are using a linux headless machine you might want to select the Start Xvfb checkbox. Xvfb is not required on a Windows or Mac machine.

Setup subversion or git to checkout code. We will be using https://github.com/bkone/cukeit in this post.

 

Step 3: Add a build step to install your dependencies:

Depending on your operating system select the appropriate task to execute shell or execute windows batch and enter the following command. That will install all the required dependencies.

> bundle install

Now set up the rake task that you would want to run. In our case it would be “rake regression” which will run all the scenarios tagged @regression in the feature file. See the Rakefile for all the available rake tasks.

Jenkins

Setup a build trigger that suits your workflow. You can also set the job up to run on demand.

 

Test Reports

The built-in reporting feature in cucumber is great, there are also some useful plugins which can enhance cucumber reports. Some of the plugins you can try are

Cucumber Reports Plugin

Cucumber Test Result Plugin

Conclusion

This setup should get you going but real success depends on analyzing test results after every run. After result analysis take the necessary action to resolve any failures. If you are using a similar Ruby/cucumber setup please give this a try and share your results in the comments below.

About The Author: 

Bharath Khambadkone

Bharath Khambadkone is a Sr. QA/DevOps Engineer at Modus Create who loves to automate and break systems by writing automated functional and performance tests. His favourite test frameworks/tools are cucumber, watir-webdriver, selenium, and JMeter. When Bharath is away from the keyboard he loves to spend time with family, hit the links, and aspires to be a Champions Tour Player.

 


 

.

Behavior Driven Development

List mode
Table mode
Icons mode

Displaying 1 - 24 of 24

Title Testing Objectives Since Price Quotes Ping
Cucumber 2,008 2015: Free use, 2015:Paid support plans - Basic: $5000/year (4 requests/month), 2015:Paid support plans - Standard: $7500/year (6 requests/month), 2015:Paid support plans - Enterprise: $20000/year (10 requests/month) Active
Hiptest 2,014 Active
Karate SOA testing, Web Services, Payload Validation, Web testing 2,016 Not Published Active
Robot Framework Desktop testing, Java testing, Web testing 2,008 Free to use Active
JBehave Test Design 2,003 Free use Active
Chakram Web testing, API testing 2,014 Free use Active
Jasmine 2,010 Free Use Active
FitNesse DataBase testing, Desktop testing, Web testing 2,009 Free Use Active
Concordion Web testing 2,006 Free use Active
Squish Desktop testing, Embedded Software, Java testing, Mobile Testing, Web testing, Cross-Browser testing 2,003 April 2015 - Group license : Up-front license fee 7440 €; includes first 12 months of support & updates subscription., April 2015 - Named User License : Up-front license fee 6900 €; includes first 12 months of support & updates subscription. Active
SpecFlow 2,011 Free to use, 2015: Professional support: Pay/minute: € 35 / 15 minutes, 2015: Professional support: Pay/incident: € 300 / incident Active
Behat 2,011 Free Use Active
NBehave 2,007 Free use, BSD License 2014
Frank Mobile Testing, Desktop testing 2,011 Free use Active
Galen Framework Web testing, Cross-Browser testing 2,013 Free Use Active
JWebUnit Web testing 2,012 Free Use Active
Codeception API testing, SOA testing, Web testing 2,012 Free Use Active
PHPUnit Code Analysis, Code Coverage testing, Coding Standards verfication, Static Code Analysis, DataBase testing 2,006 Free use Active
UISpec Desktop testing, Mobile Testing 2,010 Free Use Active
Freshen Web testing 2,009 Free Use 2015
RSpec Test Cases Statistics 2,009 Free Use Active
Testenium Framework Web testing 2,015 Active
Athena 2,016 Free Use Active
MiniTest Code Review 2,012 Free Use Active

MANUFACTURERS Wallboard

View MANUFACTURERS Wallboard

Total Manufacturers in our archive: 280
Testing tool manufacturers world-wide list
10Levels ABID CONSULTING AccelQ Accord Software ActiMind AdaCore
AdaLog AgileLoad AgileWay Agitar Algorismi ALL4TEC
Andreas Kleffel Android Apache Apica Apollo Systems AppAssist.mobi
Applitools AppPerfect Appsee ApTest Assertible Assure
Atlassian AutoIt Consulti .. Automation Anyw .. Automation Cons .. Axosoft Aztaz Software
Backtrace I/O Badboy BlazeMeter Borvid BrowserStack BSQUARE
BStriker Intern .. CA Technologies Canonical Canoo Engineeri .. Catch Software CelestialTeapot
Chris Mallett Cleanscape ClicTest CloudQA Codeborne CodeCentrix
CodePlex projec .. Codoid Cogitek Compuware Configure IT Conflair
ConSol Core Services Coronys Ltd Countersoft CresTech Softwa .. CrossBrowserTes ..
Crosscheck Netw .. Crowdsourced Te .. Cucumber Ltd Cyara Cygnet Infotech DareBoost
Databene Datamatics Glob .. DevExpress DTM soft Dynatrace LLC EasyQA
Eclipse EkaTechserv Elvior Emmanuel Jorge Empirix EPAM Systems
Equafy Esterel Technol .. eXept Software .. Experitest Finaris Froglogic
FrontEndART Ltd GeneXus GitHub project gnoso Google Code Pro .. GrammaTech
Gurock Software HelpSystems HENIX Hewlett Packard .. Hexawise High-Tech Bridg ..
Hiptest Hitex IBM Rational imbus Shanghai Impetus Inflectra
informUp InTENSO - IT Ex .. Ipswitch Jamo Solutions Janova JAR Technologie ..
JBoss Developer jClarity Jellly.io JetBrains Jively jQuery foundati ..
JS Foundation Jspresso Kanoah KMS Technology Kualitee LDRA Limited
Litmus LoadFocus Loadster Perfor .. MarathonITE Marketcircle Marketcircle
Maveryx Meliora Ltd Micro Focus Sof .. Microsoft Mobile Labs Mobile1st
Mockaroo, LLC Monkop Mozila MSys Technologi .. Navicat NeoTys
Neowise Softwar .. NetCart NORIZZK.COM Novosync Mobili .. NRG Global NTT Resonant
OC Systems Odin Technology OpCord Oracle Orcanos Original Softwa ..
OW2 PANAYA Parasoft PassMark Patterson Consu .. Perfecto Mobile
Pivotal, Inc. Plutora Postman (API To .. PractiTest PrimaTest Process One
Programming Res .. Psoda PureLoad PushToTest Python Q-Assurance
QA Systems QACube QASymphony QAWorks QMetry Quali
Qualitia Softwa .. Quality First S .. Quotium RadView Softwar .. Ranorex RedLine13
Reflective Solu .. ReQtest RevDeBug Robotium Tech Rogue Wave Soft .. Rommana Softwar ..
RTTS ruby-doc.org Runscope Sandklef GNU La .. Sauce Labs Seapine Softwar ..
SeleniumHQ Sencha Sensiple Siemens PLM Sof .. SmartBear Softw .. SmarteSoft
SOASTA SoftLogica Softomotive Softsmith Solution-Soft SonarSource
Sourceforge Spirent Technol .. SQS Software Qu .. Square Stimulus Techno .. Swifting AB
Synopsys T-komp T-Plan TechExcel TechTalk Telerik By Prog ..
Tellurium Test Collab Test Goat Test Recon TestCaseLab testCloud.de Gm ..
TestCraft Techn .. Testenium Testim.io TestingBot TestLodge Testmunk
Testomato TestOptimal TestPlant TestPro Testsigma Techn .. Testuff
The Core Bankin .. The MathWorks The Open Group thePHP.cc Thoughtbot Thoughtworks
Tigris.org Time Simulator Top-Q Trace Technolog .. TrendIC TRICENTIS
Tritusa Pty Ltd TWD Solutions P .. TypeMock Tyto Software Ubertesters UniTESK
Universal Test .. Usetrace Ltd Utrecht Univers .. Validata Group Vanamco AG Vector Software
Veracode Verifaya Corpor .. Verit VersionOne Viewlike.us Vornex Inc.
Watir.com WcfStorm Soluti .. We Are Mammoth Web Performance .. Wintask Wireshark Found ..
Worksoft Xceptance XK72 Xpand IT XQual ZAPTEST
Zeenyx Software .. Zephyr Zeta Software zutubi pty

Theme by Danetsoft and Danang Probo Sayekti