top of page

Welcome
to NumpyNinja Blogs

NumpyNinja: Blogs. Demystifying Tech,

One Blog at a Time.
Millions of views. 

Step by Step Implementation Cucumber BDD Framework using Java, Selenium, Jenkins, GIT, Allure Part 3

By Gayathri Vimalan

Hi Everyone! Click here for the previous part of the article where we covered how to integrate our project in GitHub Repository. In this part 3 section where we will cover how to run our test in Jenkins.


ree

First let’s try to understand Jenkins.

Jenkins is a continuous integration and continuous delivery (CI/CD) tool and an open source automation server. It helps us to improve the development lifecycle by automating software building, testing, and deployment. It also supports version control tool like Git and build automation tool like Maven.

What is CI and CD?

CI is a continuous integration that ensures each new proposed change does not break existing functionality.

CD is continuous deployment that reduces the work required to deploy new code.

Installing Jenkins

Go to Download Jenkins 2.361.4 LTS for: and click on Windows.


ree

Once the download is complete. Please run the file. You will able to see Setup Wizard. Click Next.


ree

Click Next



ree

Select the Run service as LocalSystem and click Next.


ree

Select the Port Number and click Next.


ree

Then select the default path and click Next.


ree

Click Next


ree

Click Install


ree

Click Finish


ree

Now we will be redirected to a local Jenkins page by default. If page is not loaded by default, paste the URL http://localhost:8080 with the chosen port in the browser.


ree

Next step is to Unlock the Jenkins. For Unlocking Jenkins, copy the password from the file as shown below and open the initialAdminPasswordfile using a text editor. Copy the password and paste in Administrator password field. Click Continue.


ree

Now click on the Install suggested plugins.


ree

Once the plugins are installed then we need to enter the information for creating an admin user account.


ree

Once the admin user account is created, please check if the URL is correct and then click Save and Finish.


ree

ree

Finally we entered into the Jenkins Dashboard page as shown below


ree

Once we login as Admin, we can create multiple users for our team by selecting Manage Jenkins >Manage User >Create User and complete the required fields.


ree

ree

Install Plugins

For installing plugins, we can directly download from the Available section of the Manage Plugin.

Navigate to the left side menu > choose Manage Jenkins > click Manage Plugins.


ree

Now under the Available section, enter the name of the plugin in the search bar and click on ‘Install without Restart’. Here I have installed all Maven, Git, Cucumber, Allure related plugins.


ree

Then we have to set up our Global Tool Configuration. For that go to Manage Jenkins > click Global Tool Configuration.


ree

Go to JDK and give name for JDK and and JDK path.


ree

Go to Maven> Add Maven > provide Name and path and click Save.


ree

Now we are going to see how to run test cases using Jenkins.


Go to Dashboard > click New item


ree

Enter the name of the item and select maven project and click ok. Here I have mentioned as “Cucumber Project Demo”


ree

Then we will directed to configure page in General type the description.


ree

In the source Code Management, select Git and mention the URL. We can easily get the URL from Github. The snapshot shown below for better understanding.


ree

Login into Github account and we can see our project click on the project then go to Code and copy the URL.

ree

Then under Pre Steps in Goals and options mention “clean test”


ree

In Post Steps > Post-build Actions >select Allure reports


ree

Copy the allure report path from Eclipse and paste it in Jenkins Post-build Actions and Click Save.


ree


ree

Now to go to Dashboard click on the project and select Build now.


ree

Once we click on the Build Now the build will start and the progress will be displayed as shown below.


ree

And we can able to see the Console Output like this


ree

ree

Go back to the project and we can see Allure reports. Click on the Allure report to see complete report.


ree

ree

That's all !!!

We have successfully ran the test cases through Jenkins and generated Allure report .

Happy Learning.

 
 

+1 (302) 200-8320

NumPy_Ninja_Logo (1).png

Numpy Ninja Inc. 8 The Grn Ste A Dover, DE 19901

© Copyright 2025 by Numpy Ninja Inc.

  • Twitter
  • LinkedIn
bottom of page