Hi all, in this presentation I will explain the basic functionality Jerkin and Maven to execute it with Selenium with a predefined list of steps. These tools are very popular and well established for the Java ecosystem. So, I have set up a continuous integration process of Maven & Jenkins with selenium.
What is Jenkins?
Jenkins is one of the best open-source continuous
integration tool produced by Hudson lab.
It is cross-platform and can be used on Windows, Linux, Mac
OS and Solaris environments.
Jenkins is written in Java.
Jenkin's is mainly used to monitor any job which
can be SVN checkout, cron or any application
It fires pre-configured actions when a particular
step occurs in jobs.
Features of Jenkins?
What is Maven?
Maven is an automation and control tool produced by
Apache Software Foundation.
Maven is a strong build automation tool specially used for
Maven is based on the theory of a Project Object
Model(POM) that combines project and configuration
information like construction or source directory, province,
test source list, plugins, etc.
Why Jenkins & Maven with Selenium?
Selenium WebDriver is a famous tool for browser automation.
But, when we use selenium for testing and building a test
framework, it seems underpowered.
Maven integration with Selenium gives the below advantages:
Maven is used to determining project structure,
provinces, build, and test management.
Maven automatically downloads the required files
from the container while developing the project.
Using Maven you can configure dependencies
required for building testing and running code.
Apache Maven gives support for running the entire
lifecycle of a test project.
Maven with TestNg in Selenium Installation
Here we will use Eclipse (Juno) IDE for Java Developers integration
Also to do the build process and generate pom.xml file, we require
to add an m2eclipse plugin to Eclipse
Add m2eclipse plugins to Eclipse
In Eclipse IDE, choose Menu >> Help >> Install
Now in the Install dialog box, add the below URL
Choose work with and m2e plugins an