End-to-end UI test automation framework for the SauceDemo e-commerce web application, built with Java, Selenium WebDriver and TestNG using the Page Object Model.
- Java 21
- Selenium WebDriver 4.24
- TestNG 7.10
- Maven
- Extent Reports 5.1
- Login: valid login, invalid login error message
- Products: sort by price (low to high), cart badge count
- Checkout: full checkout flow with item total + tax = total verification, validation error for missing information
src/main/java/org/example/pages- Page Object classessrc/main/java/org/example/utils- Extent report manager and TestNG listenersrc/test/java/org/example/tests- Test classestestng.xml- Test suite configuration
- Install JDK 21 or higher, Maven and Google Chrome
- Clone this repository
- Run:
mvn clean test - Open
test-output/ExtentReport.htmlin a browser to view the report
