Selenium setup with TestNG using Maven and Allure reports
Project Status
Pre-requisite
- JDK 1.8 or higher must be installed.
- Maven must be installed.
Installation
- Clone this repo.
- Make sure working directory is repo root directory.
- Run command:
mvn clean verify allure:report -P grid -Dbrowser=chrome -DsuiteXmlFile=smoke.suite.xml
Customizations
-
Four profile available:
grid
- execute tests on Selenium Grid. Grid Hub can be set in pom inseleniumGridURL
propertynogrid
- execute tests locallyparallelSuite
- run parallel suitesingleThreaded
- execute tests sequentially, omits parallel execution
-
For example, invoking
mvn clean verify allure:report -P grid -Dthreads=3 -Dbrowser=chrome -DsuiteXmlFile=smoke.suite.xml
will execute tests in parallel 3 threads on local machine and using cucumber-jvm-parallel-plugin plugin. In addition,
-Dbrowser
setting will set browser to Chrome.
Reports
- Allure Reports will be generated in
target/allure-results
folder.