End-to-end test automation project using Java
, Selenium
and TestNG
.
Test case: Purchase a random product with random quantity, size and color successfully as a new user, creating a random new account.
Besides Selenium
and TestNG
, this project also uses additional libraries, such as:
JavaFaker
: to generate random dataWebDriverManager
: to access browser's driverExtentReports
: to generate the test evidence in an elegant and user friendly way as an HTML file
- Java 8 installed
Tests can be run using the following commands:
set classpath=<path where you saved the project>\automation-practice\target\test-classes;<path where you saved the project>\automation-practice\target\dependency\*
java org.testng.TestNG <path where you saved the project>\automation-practice\testng.xml
This command will run the tests and generate the HTML file with the test evidences using ExtentReports
.
After the execution, you will be able to find the HTML file of the generated report inside the reports
folder.