Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Run Selenium Tests from Jenkins CI

Automation Step by Step via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to set up and run Selenium tests through Jenkins CI in this comprehensive 46-minute tutorial from Automation Step by Step. Follow a complete step-by-step process starting with downloading and installing Jenkins, configuring required plugins (Maven Integration, TestNG Results, Git), setting up Java and Maven in Jenkins, and creating a freestyle project to run automated tests. Discover how to configure source code management with Git, set up polling triggers to automatically run tests when code changes, add Maven build steps, and implement post-build actions to publish test results. The tutorial also covers troubleshooting common issues like post-build actions not running after test failures and includes practical demonstrations using a real automation framework. Perfect for QA engineers and DevOps professionals looking to integrate Selenium testing into their CI/CD pipeline.

Syllabus

00:00 *TOPICS*
01:26 STEP 1 - Download Jenkins from jenkins.io
03:21 STEP 2 - Start jenkins using command java -jar jenkins.war --httpPort=8080
06:50 STEP 3 - Open browser and goto http://localhost:8080 and setup Jenkins
09:35 STEP 4 - Install Required Plugins in Jenkins
12:03 STEP 5 - Configure Java & Maven in Jenkins Manage Jenkins → Global Tool Configuration
14:41 STEP 6 - Verify using command java -version and mvn -version in a Jenkins job
18:45 Setting up Jenkins Job for Selenium Tests
18:54 STEP 1 - Go to Jenkins Dashboard → New Item and Create Freestyle Project
19:45 STEP 2 - Go to Source Code Management → Git Enter Repository URL
21:42 STEP 3 - Go to Triggers → Poll SCM Set schedule e.g H/5 * * * *
24:35 STEP 4 - Go to Build Steps → Invoke Top-Level Maven Targets Add Maven Goals clean test
25:28 STEP 5 - Go to Post-Build Actions
28:20 STEP 6 - Run Jenkins job manually and on push in Git Repo Try Test Result Analyzer plugin
40:30 STEP 7 - If post build actions do not run on test failure update Maven commands to

Taught by

Automation Step by Step

Reviews

Start your review of How to Run Selenium Tests from Jenkins CI

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.