Maven Integration with Selenium

Download & Extract Ellipse IDE, Download & Install Java, Configure Selenium WebDriver, Install TestNG. Maven, Jenkins and Tool integration with Selenium.
Post Reply
Sridhar G
Posts: 53
Joined: Fri Nov 30, 2018 3:19 am

Maven Integration with Selenium

Post by Sridhar G » Thu Dec 20, 2018 1:39 pm

How to Setup Selenium Test Environment using Maven Integration and what are the advantages of Maven Integration with Selenium?

srini
Posts: 85
Joined: Thu Jan 03, 2019 3:58 am

Re: Maven Integration with Selenium

Post by srini » Thu Jan 03, 2019 8:54 am

Maven is a powerful project/build management tool, based on the concept of a POM (Project Object Model) that includes project information and configuration information for Maven such as construction directory, source directory, dependency, test source directory, Goals, plugins, etc.

Maven helps the developer to create a java-based project more easily. Accessibility of new feature created or added in Maven can be easily added to a project in Maven configuration. It increases the performance of a project and building process.

The main feature of Maven is that it can download the project dependency libraries automatically.

Below are the examples of some popular IDEs supporting development with Maven:

Eclipse
IntelliJ IDEA
JBuilder
NetBeans
MyEclipse

Summary:
==========
Maven is an automation and management tool.
It is written in Java Language and used to build and manage projects written in C#, Ruby, Scala, and other languages.
Maven helps the developer to create a java-based project more easily.
To configure the Maven, you need to use the Project Object Model, which is stored in a pom.xml-file.

kishore
Posts: 55
Joined: Thu Jan 03, 2019 3:57 am

Re: Maven Integration with Selenium

Post by kishore » Mon Jan 07, 2019 7:30 am

Image

Imran
Posts: 34
Joined: Thu Dec 06, 2018 11:50 am

Re: Maven Integration with Selenium

Post by Imran » Thu Mar 07, 2019 4:59 am

Launch Eclipse IDE:

File>New>Project>Type Maven and Select Maven Project,

>Enter > Next >Next> Enter Group Id> Enter Artifact Id> Finish

Then It will create New Maven project
Note:
1) Group Id – This is an Id of project’s group.
2) Artifact Id -This is an Id of the project.

Add Software Dependencies to POM – XML

> Collect Software Dependencies from Internet for your Automated Testing in POM (Project Object Model)

> Paste the code in POM XML file between “Dependencies” tag…and Save Then it will download those dependencies jar files and add to Maven Project

Image

Advantages of Maven Integration with Selenium:

1) We can setup Selenium Environment easily with the Maven Integration.

2) Easy Maintenance of Selenium Environment

3) Share Common Configuration for all Team Members...

Post Reply

Return to “Selenium Test Environment”