- Central repository to get dependencies
- Maintaining common structure across the organization
- Flexibility in integrating with CI tools
- Plugins for test framework execution
- Download the Binary zip archive from https://maven.apache.org/download.cgi
- Edit the system environment variables
- Create a new System variables; Variable name: MAVEN_HOME and Variable value: maven folder path in the local drive
- Click on the Path of System variable and edit and create a new Environment variable copying the maven binary folder path in the local drive
- Go to the Command Prompt and check maven version: mvn --version
- Maven Surefire Plugin: The Surefire Plugin is used during the test phase of the build lifecycle to execute the unit tests of an application. It generates reports in two different file formats:
- Plain text files (*.txt)
- XML files (.xml) By default, these files are generated in ${basedir}/target/surefire-reports/TEST-.xml.
-
Maven Selenium Java: Selenium provides support for the automation of web browsers. It provides extensions to emulate user interaction with browsers, a distribution server for scaling browser allocation, and the infrastructure for implementations of the W3C WebDriver specification.
-
Maven TestNG: TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use. It supports test configured by annotations, data-driven testing, parametric tests, etc.
-
Maven REST Assured: Java DSL for easy testing of REST services
- Open the command prompt in the maven project directory
- Type [mvn clean] and hit ENTER.
- Type [mvn compile] and hit ENTER.
- Type [mvn test] and hit ENTER.