This is an automation framework build from scratch using selenium-java.
- Maven
- Selenium Webdriver
- Webdriver Manager
- JXL API
- Log4j2
- ExtentReport
- Go to the root folder of the project.
- Run the maven command given below to execute the test in chrome
mvn clean verify -DsuiteFile=src/test/resources/testsuites/testng.xml -Dbrowser=chrome
- Run the maven command given below to execute the test in firefox
mvn clean verify -DsuiteFile=src/test/resources/testsuites/testng.xml -Dbrowser=firefox
- If
-Dbrowser
is not provided then test will run on chrome. - To run the test from any directory run the command given below
mvn clean verify -DsuiteFile=absolutePathOfTestng.file -Dbrowser=driverOfChoose
- Test log will be found under
reports\log
directory - Test report will be found under
reports
directory - Test failures screenshot will be found under
reports\screenshot
directory
From application.properties
file
- base.url
- defaultBrowser.name
- element.timeout
- pageLoad.timeout
- script.timeout