How to perform Automation Testing in Jenkins

Last updated on May 28 2022
Uma Kulkarni

Table of Contents

How to perform Automation Testing in Jenkins

Jenkins – Automated Testing

One of the basic principles of Continuous Integration is that a build should be verifiable. You have to be able to objectively determine whether a particular build is ready to proceed to the next stage of the build process, and the most convenient way to do this is to use automated tests. Without proper automated testing, you find yourself having to retain many build artifacts and test them by hand, which is hardly with within the spirit of Continuous Integration. The subsequent example shows how to use Selenium to run automated web tests.

Step 1 − Go to Manage Plugins.

How to perform Automation Testing in Jenkins
How to perform Automation Testing in Jenkins

Step 2 − Find the Hudson Selenium Plugin and choose to install. Restart the Jenkins instance.

How to perform Automation Testing in Jenkins
How to perform Automation Testing in Jenkins

Step 3 − Go to Configure system.

How to perform Automation Testing in Jenkins
How to perform Automation Testing in Jenkins

Step 4 − Configure the selenium server jar and click on the Save button.

How to perform Automation Testing in Jenkins
How to perform Automation Testing in Jenkins

Note − The selenium jar file can be downloaded from the location SeleniumHQ

Click on the download for the Selenium standalone server.

How to perform Automation Testing in Jenkins
How to perform Automation Testing in Jenkins

Step 5 − Go back to your dashboard and click on the Configure option for the HelloWorld project.

How to perform Automation Testing in Jenkins
How to perform Automation Testing in Jenkins

Step 6 − Click on Feature build step and choose the optin of “SeleniumHQ htmlSuite Run”

How to perform Automation Testing in Jenkins
How to perform Automation Testing in Jenkins

Step 7 − Feature the necessary details for the selenium test. Here the suiteFile is the TestSuite generated by using the Selenium IDE. Click on Save and execute a build. Now the post build will launch the selenium driver, and execute the html test.

How to perform Automation Testing in Jenkins
How to perform Automation Testing in Jenkins

So, this brings us to the end of blog. This Tecklearn ‘How to perform Automation Testing in Jenkins’ blog helps you with commonly asked questions if you are looking out for a job in DevOps. If you wish to learn Jenkins and build a career in DevOps domain, then check out our interactive, Continuous Integration with Jenkins Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

Continuous Integration with Jenkins

Continuous Integration with Jenkins Training

About the Course

Tecklearn has specially designed this Continuous Integration with Jenkins Training Course to advance your skills for a successful career in this domain. This course helps you learn server automation, continuous integration, build and configuration tools, Jenkins master-slave architecture, different types of plugins, implementing automated testing and more through hands-on projects and exercises. Upon completion of this online training, you will hold a solid understanding and hands-on experience with Jenkins.

Why Should you take Continuous Integration with Jenkins Training?

• Average salary of Jenkins Professional is $110k (Indeed.com Salary Data)
• Jenkins is an open-source automation server which enables developers around the world to reliably build, test, and deploy their software.

What you will Learn in this Course?

Introduction to DevOps

• What is Software Development
• Software Development Life Cycle
• Why DevOps?
• What is DevOps?
• DevOps Lifecycle
• DevOps Tools
• Benefits of DevOps
• How DevOps is related to Agile Delivery
• DevOps Implementation

Continuous Integration with Jenkins

• Introduction to Continuous Integration and Jenkins
• Jenkins Management
• Jenkins Master Slave Architecture
• Tools Required for CI
• Understanding CI/CD Pipelines
• Creating an end-to-end automated CI/CD Pipeline
• Jenkins Versions

 

 

0 responses on "How to perform Automation Testing in Jenkins"

Leave a Message

Your email address will not be published. Required fields are marked *