---
description: What is Jenkins? Jenkins is the leading open-source continuous integration tool developed by Hudson lab. It is cross-platform and can be used on Windows, Linux, Mac OS and Solaris environments. Jenkin
title: Selenium Integration with Maven and Jenkins
image: https://www.guru99.com/images/selenium-integration-with-maven-and-jenkins.png
---

 

[Skip to content](#main) 

**⚡ Smart Summary**

Maven Jenkins Selenium integration creates an automated continuous testing pipeline where Maven manages project dependencies and lifecycle, Jenkins schedules and triggers builds, and Selenium executes browser tests, producing repeatable, reliable, and scalable end-to-end web automation.

* 📦 **Maven Role:** Maven 3.x manages dependencies, build lifecycle, and plugins through pom.xml, removing manual JAR handling for Selenium projects.
* 🔁 **Jenkins Role:** Jenkins LTS schedules Selenium suites, monitors SCM changes, and triggers automated regression runs on every commit or nightly cron.
* 🚀 **Pipeline Power:** Combining Maven, Jenkins, Selenium, and TestNG forms a complete CI/CD loop that catches defects within minutes of code change.
* ✅ **Reporting:** Surefire reports plus Jenkins build history give traceable, sharable test results with console output and HTML dashboards.
* 🧪 **AI Enhancement:** Modern AI plugins prioritize impacted tests, predict flaky cases, and shrink Jenkins feedback cycles inside Selenium pipelines.

[ Read More ](javascript:void%280%29;) 

![Maven & Jenkins Integration with Selenium](https://www.guru99.com/images/selenium-integration-with-maven-and-jenkins.png)

## What is Jenkins in Selenium?

Jenkins is the leading open-source continuous integration tool originally developed by the Hudson lab. It is cross-platform and runs on Windows, Linux, macOS, and Solaris environments. Jenkins is written in Java and is now distributed as Jenkins LTS for stable production use. Its chief usage is to monitor any job, which can be an SCM checkout, a cron schedule, or any application state. Jenkins fires pre-configured actions when a specific step occurs in jobs.

## Important Features of Jenkins

* **Change Support:** Jenkins generates the list of all changes done in repositories such as Git or SVN.
* **Permanent Links:** Jenkins provides direct links to the latest build or the last failed build, which simplifies team communication.
* **Installation:** Jenkins is easy to install using a native installer, a WAR file deployed on an application server, or a Docker image.
* **Email Integration:** Jenkins can be configured to email the content and status of every build.
* **Easy Configuration:** Configuring various tasks on Jenkins is straightforward through the web dashboard.
* **TestNG Test:** Jenkins can be configured to run the automation test build on[ TestNG ](https://www.guru99.com/all-about-testng-and-selenium.html)after each commit to the repository.
* **Multiple VMs:** Jenkins can distribute builds across multiple agent machines.
* **Project Build:** Jenkins documents the details of JARs, JAR versions, and the mapping of build numbers to artifacts.
* **Plugins:** 3rd party plugins can be added in Jenkins to extend features and additional functionality.

## Why Jenkins and Selenium?

* Running Selenium tests in Jenkins lets you execute your tests every time the software changes and deploy the software to a new environment when the tests pass.
* Jenkins can schedule your Selenium tests to run at a specific time.
* You can save the execution history and Test Reports for traceability.
* Jenkins supports Maven for building and[ Testing ](https://www.guru99.com/software-testing.html)a project in continuous integration.

## What is Maven in Selenium?

Maven is a powerful project and build management tool based on the concept of a POM (Project Object Model) that includes project information and configuration data for Maven, such as the build directory, source directory, dependencies, test source directory, goals, plugins, and more. Maven 3.x is the current stable line, widely used across Selenium test frameworks.

## Why Maven and Jenkins

Selenium WebDriver is great for browser automation. But, when using it for testing and building a test framework, it can feel underpowered. Integrating Maven with Selenium provides the following benefits.  
Apache Maven provides support for managing the full lifecycle of a test project.

* Maven is used to define project structure, dependencies, build, and test management.
* Using pom.xml (Maven) you can configure dependencies needed for building, testing, and running code.
* Maven automatically downloads the necessary files from the central repository while building the project.

### RELATED ARTICLES

* [WebElement in Selenium ](https://www.guru99.com/accessing-forms-in-webdriver.html "WebElement in Selenium")
* [AutoIT in Selenium Tutorial: How to use it? ](https://www.guru99.com/use-autoit-selenium.html "AutoIT in Selenium Tutorial: How to use it?")
* [How to Execute Failed Test Cases in TestNG ](https://www.guru99.com/run-failed-test-cases-in-testng.html "How to Execute Failed Test Cases in TestNG")
* [Refresh Page using Selenium Webdriver ](https://www.guru99.com/selenium-refresh-page.html "Refresh Page using Selenium Webdriver")

## How to Install Maven and use it with TestNG Selenium

Here are the steps to install Maven and use it with TestNG Selenium.

For this tutorial, we will use Eclipse (Juno) IDE for[ Java ](https://www.guru99.com/java-tutorial.html)Developers to set up the Selenium WebDriver project. Additionally, we need to add the m2eclipse plugin to Eclipse to facilitate the build process and create the pom.xml file.  
Let us add the m2eclipse plugin to Eclipse with the following steps:

**Step 1)** In Eclipse IDE, select **Help** | **Install New Software** from the Eclipse main menu.

**Step 2)** On the Install dialog, enter the URL <https://www.eclipse.org/m2e/>. Select **Work with** and the m2e plugin as shown in the following screenshot:

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin1.png)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin1.png)

**Step 3)** Click on the **Next** button and finish the installation.

**Configure Eclipse with Maven**

With the m2e plugin installed, we now need to create a Maven project.

**Step 1)** In Eclipse IDE, create a new project by selecting **File** | **New** | **Other** from the Eclipse menu.

**Step 2)** On the **New** dialog, select **Maven** | **Maven Project** and click Next.

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin2.png)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin2.png)

**Step 3)** On the **New Maven Project** dialog select **Create a simple project** and click Next.

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin3.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin3.jpg)

**Step 4)** Enter WebdriverTest in **Group Id**: and **Artifact Id**: and click finish.

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin4.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin4.jpg)

**Step 5)** Eclipse will create **WebdriverTest** with the following structure:

[![Install Maven And Use It with TestNG Seleniuml](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin5.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin5.jpg)

**Step 6)** Right-click on **JRE System Library** and select the **Properties** option from the menu.

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin6.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin6.jpg)

On the **Properties for JRE System Library** dialog box, make sure **Workspace default JRE** is selected and click OK.

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin7.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin7.jpg)

**Step 7)** Select **pom.xml** from **Project Explorer**.

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin8.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin8.jpg)

The pom.xml file will open in the Editor section.

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin9.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin9.jpg)

**Step 8)** Add the Selenium, Maven, TestNG, and[ JUnit ](https://www.guru99.com/junit-tutorial.html)dependencies to pom.xml in the <project> node:

	<dependencies>			
        <dependency>				
             <groupId>junit</groupId>								
             <artifactId>junit</artifactId>								
             <version>3.8.1</version>								
             <scope>test</scope>								
        </dependency>				
        <dependency>				
            <groupId>org.seleniumhq.selenium</groupId>								
            <artifactId>selenium-java</artifactId>								
            <version>2.45.0</version>								
		</dependency>				
        <dependency>				
            <groupId>org.testng</groupId>								
            <artifactId>testng</artifactId>								
            <version>6.8.8</version>								
            <scope>test</scope>							  			
       </dependency>				
</dependencies>

**Step 9)** Create a New TestNG Class. Enter the package name as “example” and “NewTest” in the **Name**: textbox and click on the **Finish** button as shown in the following screenshot:

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin10.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin10.jpg)

**Step 10)** Eclipse will create the NewTest class as shown in the following screenshot:

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin11.png)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin11.png)

**Step 11)** Add the following code to the **NewTest** class. This code will verify the title of the Guru99 Selenium page.

package example;		

import org.openqa.selenium.By;		
import org.openqa.selenium.WebDriver;		
import org.openqa.selenium.firefox.FirefoxDriver;		
import org.testng.Assert;		
import org.testng.annotations.Test;	
import org.testng.annotations.BeforeTest;	
import org.testng.annotations.AfterTest;		
public class NewTest {		
	    private WebDriver driver;		
		@Test				
		public void testEasy() {	
			driver.get("https://demo.guru99.com/test/guru99home/");  
			String title = driver.getTitle();				 
			Assert.assertTrue(title.contains("Demo Guru99 Page")); 		
		}	
		@BeforeTest
		public void beforeTest() {	
		    driver = new FirefoxDriver();  
		}		
		@AfterTest
		public void afterTest() {
			driver.quit();			
		}		
}	

**Step 12)** Right-click on the WebdriverTest project and select **TestNG** | **Convert to TestNG**.  
Eclipse will create testng.xml which states that you need to run only one test with the name **NewTest** as shown in the following screenshot:

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin12.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin12.jpg)

Update the project and make sure the file appears in the tree **Package Explorer** (right click on the project – Refresh).

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin13.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin13.jpg)

**Step 13)** Now you need to run the test through this **testng.xml**.

So, go to the **Run Configurations** and create a new launch **TestNG**, select the project, set the field **Suite** as **testng.xml**, and click Run.

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin14.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin14.jpg)

Make sure that the build finishes successfully.

**Step 14)** Additionally, we need to add

1. maven-compiler-plugin
2. maven-surefire-plugin
3. testng.xml

to pom.xml.

The maven-surefire-plugin is used to configure and execute tests. Here the plugin is used to configure the testing.xml for the TestNG test and generate test reports.

The maven-compiler-plugin is used to help compile the code and to use a particular JDK version for compilation. Add all dependencies in the following code snippet to pom.xml in the <plugin> node:

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin15.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin15.jpg)

**Step 15)** To run the tests in the Maven lifecycle, right-click on the WebdriverTest project and select **Run As** | **Maven test**. Maven will execute the test from the project.

[![Install Maven And Use It with TestNG Selenium](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin16.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin16.jpg)

Make sure that the build finishes successfully.

## How to Integrate Jenkins with Selenium WebDriver

Here are the steps to install Jenkins LTS and configure it to run Maven with TestNG Selenium.

**Installation**

**Step 1)** Go to <https://www.jenkins.io/download/> and download the correct Jenkins LTS package for your OS. Install Jenkins.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/jenkins-maven-download.png)](https://www.guru99.com/images/jenkins-maven-download.png)

**Step 2)** Unzip Jenkins to a specified folder. Run the exe file as shown in the following screenshot:

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin18.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin18.jpg)

**Step 3)** In the **Jenkins Setup** window, click on the **Next** button.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin19.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin19.jpg)

**Step 4)** Click on the **Install** button at the end.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin20.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin20.jpg)

**Step 5)** Once installation is done, navigate to the Jenkins Dashboard (http://localhost:8080 by default) in the browser window.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin21.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin21.jpg)

**Step 6)** Click on the **New Item** link to create a CI job.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin22.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin22.jpg)

**Step 7)** Select the Maven project radio button as shown in the following screenshot:

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin23.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin23.jpg)

Using the Build a **Maven Project** option, Jenkins supports building and testing Maven projects.

**Step 8)** Click on the OK button. A new job named “WebdriverTest” is created in the Jenkins Dashboard.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin24.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin24.jpg)

**Step 9)** Go to **Manage Jenkins** \=> **Configure System** as shown in the following screenshot.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin25.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin25.jpg)

Click on JDK installations and configure JDK as in the following screenshot:

[![Integration of Jenkins With Selenium WebDrive](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin26.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin26.jpg)

**Step 10)** Go to the **Build** section of the new job.

* In the **Root POM** textbox, enter the full path to pom.xml
* In the Goals and options section, enter “clean test”

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin27.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin27.jpg)

**Step 11)** Click on the **Apply** button.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin28.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin28.jpg)

**Step 12)** On the WebdriverTest project page, click on the **Build Now** link.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin29.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin29.jpg)

Maven will build the project. It will then have TestNG execute the test cases.

**Step 13)** Once the build process is completed, in the Jenkins Dashboard click on the **WebdriverTest** project.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin30.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin30.jpg)

**Step 14)** The WebdriverTest project page displays the build history and links to the results as shown in the following screenshot:

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin31.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin31.jpg)

**Step 15)** Click on the “Latest Test Result” link to view the test results as shown in the following screenshot:

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin32.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin32.jpg)

**Step 16)** Select a specific build, and you will see the current status by clicking on “**console output**“.

[![Integration of Jenkins With Selenium WebDriver](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin33.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin33.jpg)

## Scheduling Jenkins for Automatic Execution

Scheduling builds (Selenium tests) is one of the important features of Jenkins, where it automatically triggers the build based on defined criteria. Jenkins provides multiple ways to trigger the build process under the Build Trigger configuration.

For example:  
Enter 0 23 \* \* \* in the Schedule textbox as shown in the following screenshot. This will trigger the build process every day at 11 p.m.

[![Jenkins for Automatic Execution](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin34.jpg)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin34.jpg)

## Using Jenkins without Maven

To run a pure TestNG script in Jenkins, enter the following in build:

**D:>java -cp “Pathtolibfolder\\lib\\\*;Pathtobinfolder\\bin” org.testng.TestNG testng.xml**

[![Jenkins for Automatic Execution](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin35.png)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin35.png)

* Click on the Save button.
* Note: The actual path of the lib and bin folders needs to be added in the above command.
* After saving the command, Jenkins will build the project at the predefined time, and this command will be run using TestNG.
* The result will be stored in a custom HTML report file that can be emailed using a Jenkins configuration.
* Output of the code will be:

[![Jenkins for Automatic Execution](https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin36.png)](https://www.guru99.com/images/5-2015/050115%5F1023%5FMavenJenkin36.png)

## Benefits of Using Jenkins

1. Early issue finding – bugs can be detected in the early phase of software development.
2. Automatic integration – no separate effort required to integrate all changes.
3. Installer – a deployable system available at any point of development.
4. Records – past build records are maintained.
5. Support and Plugins – one of the reasons for Jenkins’s popularity is the availability of large community support. Lots of ready-made plugins are also available which help you expand its functionality.

## FAQs

⚙️ Why integrate Maven with Selenium and Jenkins?

Maven manages dependencies and the build lifecycle, Selenium drives the browser, and Jenkins orchestrates execution. Together they form a complete CI pipeline that compiles code, downloads required JARs, runs Selenium tests, and publishes reports automatically on every commit.

📦 Which Maven and Jenkins versions are recommended?

Use Maven 3.x for dependency and build management, and Jenkins LTS for stable continuous integration. These versions provide long-term support, security patches, and broad plugin compatibility for Selenium WebDriver, TestNG, and Surefire reporting plugins.

🕒 Can Jenkins schedule Selenium tests automatically?

Yes. Jenkins uses cron-style syntax in the Build Triggers section to schedule Selenium suites. For example, 0 23 \* \* \* runs the suite every night at 11 p.m. Jenkins can also trigger builds on SCM polling or webhook events.

🤖 How does AI improve CI/CD pipelines with Jenkins?

AI-powered Jenkins plugins predict flaky tests, auto-tune build agents, and detect anomalies in console logs. They reduce pipeline noise, accelerate feedback, and suggest optimal parallelization, which keeps Selenium suites reliable as test counts grow into the thousands.

🧠 Can AI select which Selenium tests to run in Jenkins?

Yes. AI-based test impact analysis maps code changes to affected Selenium scenarios and runs only the relevant subset in Jenkins. This shortens feedback cycles, reduces infrastructure cost, and preserves full coverage by scheduling a complete regression on nightly builds.

#### Summarize this post with:

ChatGPT Perplexity Grok Google AI 

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.** 

##### Sign up for the newsletter

Subscribe for Free 

You have successfully subscribed.  
Please check your inbox. 

![AI-Newsletter](https://www.guru99.com/images/footer-email-avatar-imges-1.png) Chosen by over **350,000+** professionals 

[Scroll to top ](#wrapper)Scroll to top 

× 

Toggle Menu Close 

Search for: 

Search

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/selenium-integration-with-maven-and-jenkins.png","url":"https://www.guru99.com/images/selenium-integration-with-maven-and-jenkins.png","width":"700","height":"250","caption":"Selenium Integration with Maven and Jenkins","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/selenium","name":"Selenium"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html","name":"Selenium Integration with Maven and Jenkins"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#webpage","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html","name":"Selenium Integration with Maven and Jenkins","dateModified":"2026-07-20T17:38:38+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/selenium-integration-with-maven-and-jenkins.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/admin","name":"Krishna Rungta","url":"https://www.guru99.com/author/admin","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/krishna-rungta-v2-120x120.png","url":"https://www.guru99.com/images/krishna-rungta-v2-120x120.png","caption":"Krishna Rungta","inLanguage":"en-US"},"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"articleSection":"Selenium","headline":"Selenium Integration with Maven and Jenkins","description":"What is Jenkins? Jenkins is the leading open-source continuous integration tool developed by Hudson lab. It is cross-platform and can be used on Windows, Linux, Mac OS and Solaris environments. Jenkin","keywords":"selenium","speakable":{"@type":"SpeakableSpecification","cssSelector":[".entry-title",".summary"]},"@type":"Article","author":{"@id":"https://www.guru99.com/author/admin","name":"Krishna Rungta"},"dateModified":"2026-07-20T17:38:38+05:30","image":{"@id":"https://www.guru99.com/images/selenium-integration-with-maven-and-jenkins.png"},"copyrightYear":"2026","name":"Selenium Integration with Maven and Jenkins","subjectOf":[{"@type":"HowTo","name":"How to Integrate Jenkins with Selenium","description":"Here is a step-by-step process on How to Integrate Jenkins with Selenium","step":[{"@type":"HowToStep","text":"Download correct package for your OS. Install Jenkins.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin17.jpg","name":"Step 1) Go to http://jenkins-ci.org/","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step1"},{"@type":"HowToStep","text":"Run exe file as shown in following screenshot:","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin18.jpg","name":"Step 2) Unzip Jenkins to specified folder.","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step2"},{"@type":"HowToStep","text":"In Jenkins 1.607 Setup window click on Next button.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin19.jpg","name":"Step 3) click on Next button","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step3"},{"@type":"HowToStep","text":"Click on Install button in the end.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin20.jpg","name":"Step 4) Ready to install","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step4"},{"@type":"HowToStep","text":"Once installation is done, navigate to the Jenkins Dashboard (http://localhost:8080 by default) in the browser window.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin21.jpg","name":"Step 5) Navigate to the Jenkins Dashboard","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step5"},{"@type":"HowToStep","text":"Click on the New Item link to create a CI job.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin22.jpg","name":"Step 6) Create a CI job.","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step6"},{"@type":"HowToStep","text":"Select the Maven project radio button as shown in the following screenshot:","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin23.jpg","name":"Step 7) Select the Maven project","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step7"},{"@type":"HowToStep","text":"New job with name 'WebdriverTest' is created in Jenkins Dashboard.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin24.jpg","name":"Step 8) Click on OK button","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step8"},{"@type":"HowToStep","text":"Go to Manage Jenkins =&gt; Configure System as shown in the following screenshot.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin25.jpg","name":"Step 9) Go to Manage Jenkins","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step9"},{"@type":"HowToStep","text":"Go to the Build section of new job.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin27.jpg","name":"Step 10) Open build section","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step10"},{"@type":"HowToStep","text":"Click on Apply button.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin28.jpg","name":"Step 11) Apply changes","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step11"},{"@type":"HowToStep","text":"On the WebdriverTest project page, click on the Build Now link.","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin29.jpg","name":"Step 12) click on the Build Now link","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step12"},{"@type":"HowToStep","text":"Once the build process is completed, in Jenkins Dashboard click on the WebdriverTest project","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin30.jpg","name":"Step 13) click on the WebdriverTest project","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step13"},{"@type":"HowToStep","text":"The WebdriverTest project page displays the build history and links to the results as shown in the following screenshot:","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin31.jpg","name":"Step 14) Check build history and links","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step14"},{"@type":"HowToStep","text":"Link to view the test results as shown in the following screenshot:","image":"https://www.guru99.com/images/5-2015/050115_1023_MavenJenkin32.jpg","name":"Step 15) Click on the 'Latest Test Result'","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step15"},{"@type":"HowToStep","text":"You will see the current status by clicking on 'console output'.","image":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html","name":"Step 16) Select specific build","url":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#step16"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Why integrate Maven with Selenium and Jenkins?","acceptedAnswer":{"@type":"Answer","text":"Maven manages dependencies and the build lifecycle, Selenium drives the browser, and Jenkins orchestrates execution. Together they form a complete CI pipeline that compiles code, downloads required JARs, runs Selenium tests, and publishes reports automatically on every commit."}},{"@type":"Question","name":"Which Maven and Jenkins versions are recommended?","acceptedAnswer":{"@type":"Answer","text":"Use Maven 3.x for dependency and build management, and Jenkins LTS for stable continuous integration. These versions provide long-term support, security patches, and broad plugin compatibility for Selenium WebDriver, TestNG, and Surefire reporting plugins."}},{"@type":"Question","name":"Can Jenkins schedule Selenium tests automatically?","acceptedAnswer":{"@type":"Answer","text":"Yes. Jenkins uses cron-style syntax in the Build Triggers section to schedule Selenium suites. For example, 0 23 * * * runs the suite every night at 11 p.m. Jenkins can also trigger builds through SCM polling or webhook events."}},{"@type":"Question","name":"How does AI improve CI/CD pipelines with Jenkins?","acceptedAnswer":{"@type":"Answer","text":"AI-powered Jenkins plugins predict flaky tests, automatically tune build agents, and detect anomalies in console logs. They reduce pipeline noise, accelerate feedback, and suggest optimal parallelization, which keeps Selenium suites reliable as test counts grow into the thousands."}},{"@type":"Question","name":"Can AI select which Selenium tests to run in Jenkins?","acceptedAnswer":{"@type":"Answer","text":"Yes. AI-based test impact analysis maps code changes to affected Selenium scenarios and runs only the relevant subset in Jenkins. This shortens feedback cycles, reduces infrastructure costs, and preserves full coverage by scheduling a complete regression on nightly builds."}}]}],"@id":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#schema-273452","isPartOf":{"@id":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html#webpage"}}]}
```
