0% found this document useful (0 votes)
10 views7 pages

Devops 10

Uploaded by

sohampatil4002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views7 pages

Devops 10

Uploaded by

sohampatil4002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Name: Soham Patil

Id: TU4F2223045
Batch: A2
Roll Number: A-41

Experiment No.10

Aim:- To Setup and Run Selenium Tests in Jenkins Using Maven.


Theory:-
What is Selenium in Devops?
As a part of the UI testing team, Selenium test developers need to synchronize
and orchestrate their test design and execution as per schedule and triggers,
that are defined in their continuous integration or continuous delivery tools or
platforms.

Test Design needs to be more agile, effortless, and error-free. There is a shift
towards the enhancement of existing or new test automation frameworks to
integrate with continuous integration/continuous delivery pipelines seamlessly.

Moreover, organizations are leveraging Machine Learning and AI to address the


challenges concerning the complexities and scale in testing environments.
Enterprises are exploring AI research areas such as Computer Vision and
Natural language processing to address the challenges.

However, in this article, we will touch upon the concepts of secure coding
practices with the help of IntelliJ IDEA plugins and running tests as a part of
Gradle builds on a continuous integration platform called Travis CI.
Furthermore, we also need to know that Selenium is only a tiny portion of the
big picture of testing practices adopted in DevOps.
We have outlined one example of integrating Selenium with Jenkins at
the Integration of Jenkins with Selenium Webdriver.

There are many more tools such as Anthill, TeamCity, GitHub Actions, and
similar platforms that are being used by testing and development teams. A
Selenium testing framework needs to provide a mechanism for the tests to be
triggered or can be called on-demand from these tools.

An automation framework, in general, needs to have efficient and intelligent


ways of documenting specifications and a mechanism to provide traceability
between tests and specifications in reports.

Therefore, we need to create executable test specifications and employ build


tools such as Gradle, Maven, and other similar tools. Such tools, along with
Kanban and Scrum

boards in agile test management tools, enable us to achieve higher productivity


among testing teams.

Selenium is an open source automation tool that has been widely used for
testing web applications. It is easy to use, and it provides support forums,
which makes it popular among the testing community. Selenium has four main
components:Selenium IDE, Selenium RC, Selenium WebDriver, and Selenium
Grid, designed and used for different purposes. Selenium provides cross-
browser testing and parallel testing features, which allows the testers to
execute their test cases in different operating systems andbrowsers, which
ensures browser compatibility of the web application.This Jenkins Tutorial for
beginners and professionals will help you learn how to use Jenkins, one of the
most popular CI/CD tools used in DevOps.
Why to use maven in selenium project?

It will manage your Selenium test project's build compilation, documentation


and other related project tasks itself. It helps to create proper project
structure,add and manage jar files in project's build path. It easily guides the
project by gathering current principles for best practices development.

Now let’s Build Job for Selenium using maven


Step 1: Click on new item, Give name to job and select maven project and then
press on ok.

Step 2: Now let’s configure the job.


Step 3: After configuration click on Build now.

Conclusion: Hence we are able to Setup and Run Selenium Tests in Jenkins
Using Maven.

You might also like