A hybrid Selenium 4 + TestNG automation framework for the SauceDemo app, with per-user regression coverage, config-driven locators, logging, and screenshot-on-failure evidence.
- Selenium WebDriver 4.21 (Selenium Manager — no manual driver setup)
- TestNG 7.10 with a custom
TestNGListener - Log4j2 +
java.util.loggingfor execution logs - Maven build
Regression scenarios per SauceDemo user type — standard_user, locked_out_user,
problem_user, performance_glitch_user, visual_user — plus an end-to-end order flow.
Locators and test data are externalised in src/test/resources/config.properties.
mvn clean test # runs the suite (surefire includes **/*login.java)
GitHub Actions (.github/workflows/ci.yml) runs the suite headlessly on every push using a
virtual display (xvfb) with the runner's preinstalled Chrome, and uploads reports as artifacts.
Verified: 6 tests passing.
src/test/java/tests # BaseClass, ReadConfig, per-user scenario classes
src/test/java/utilities # TestNGListener
src/test/resources # config.properties, logs, screenshot evidence