Skip to content

About

Selenium WebDriver + TestNG UI test automation framework for SauceDemo, built with Java, Maven, Page Object Model and Extent Reports

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Selenium Tests

SauceDemo Test Automation Framework

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.

Tech Stack

  • Java 21
  • Selenium WebDriver 4.24
  • TestNG 7.10
  • Maven
  • Extent Reports 5.1

Test Coverage (6 automated tests)

  • 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

Project Structure

  • src/main/java/org/example/pages - Page Object classes
  • src/main/java/org/example/utils - Extent report manager and TestNG listener
  • src/test/java/org/example/tests - Test classes
  • testng.xml - Test suite configuration

How to Run

  1. Install JDK 21 or higher, Maven and Google Chrome
  2. Clone this repository
  3. Run: mvn clean test
  4. Open test-output/ExtentReport.html in a browser to view the report

Test Report

Extent Report

About

Selenium WebDriver + TestNG UI test automation framework for SauceDemo, built with Java, Maven, Page Object Model and Extent Reports

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages