Skip to content

writeonk/SeleniumWebdriverMavenDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Page Object Model as Architecture for Maven-Selenium Project

  • Automation test suite for Web Application

Key Feature

  1. Java 8
  2. Maven
  3. 🔥 Selnium 4.0 Webdriver
  4. 🔥 Extent Spark Report
  5. 🔥 Log4j2
  6. Cross Browser Testing
  7. WebDriverManager

Setup Project on Machine for work

  • Install IntelliJ IDEA
  • Install java
  • Install jdk & jre
  • As it is a Maven project, no other dependencies need to download. All the dependencies that required for project is already added.

After setting up IntelliJ & Java on your machine

  • Download the project from git and unzip it or take a git clone.
  • Open IntelliJ
  • Import projects pop up will open
  • Browse the project from your local machine.

Run Project and Get a Report & logs

  • Run TestNg Suite
  • wait till project run completly. Once it finished.
  • Expand Report folder and you will find latest report there with latest date and time.
  • Click on Report and open with web-browser
  • Find logs in log folder

Running test suites from the command line

  • install maven onto your machine
  • CD into the directory containing the test suite for the application you want. cd com.sample.www
  • Run $ mvn clean test -DsuiteFile=testng.xml

About

Selenium Webdriver + Java + Maven + POM+ Extent Spark Report + Log4j2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published