Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.22 KB

README.md

File metadata and controls

45 lines (36 loc) · 1.22 KB

Automation Assessment

This is an automation framework build from scratch using selenium-java.

Language used: Java

Technology Used

  1. Maven
  2. Selenium Webdriver
  3. Webdriver Manager
  4. JXL API
  5. Log4j2
  6. ExtentReport

Steps to run the test

  1. Go to the root folder of the project.
  2. Run the maven command given below to execute the test in chrome
mvn clean verify -DsuiteFile=src/test/resources/testsuites/testng.xml -Dbrowser=chrome
  1. Run the maven command given below to execute the test in firefox
mvn clean verify -DsuiteFile=src/test/resources/testsuites/testng.xml -Dbrowser=firefox
  1. If -Dbrowser is not provided then test will run on chrome.
  2. To run the test from any directory run the command given below
mvn clean verify -DsuiteFile=absolutePathOfTestng.file -Dbrowser=driverOfChoose

After test run completed

  1. Test log will be found under reports\log directory
  2. Test report will be found under reports directory
  3. Test failures screenshot will be found under reports\screenshot directory

Properties user can set:

From application.properties file

  • base.url
  • defaultBrowser.name
  • element.timeout
  • pageLoad.timeout
  • script.timeout