Skip to content

damiru003/Selenium_Test_Automation_Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium TestNG Framework

This project implements a layered UI automation framework with Selenium, TestNG, Page Object Model, configuration support, logging, Extent reports, and screenshot capture for failed tests.

Structure

  • src/main/java/com/framework/base: browser setup, test setup, and generic page wrappers
  • src/main/java/com/framework/pages: application layer using Page Object Model
  • src/main/java/com/framework/utils: configuration, waits, screenshots, and Extent helpers
  • src/test/java/com/framework/tests: TestNG test layer
  • src/test/java/com/framework/listeners: report and screenshot hooks
  • src/test/resources: config.properties and log4j2.xml

Verify Screenshot and Report Attachment

Run the normal suite with testng.xml for passing and functional tests.

Run the failure demo suite to intentionally fail a test and confirm screenshot capture:

After execution, inspect:

  • test-output/screenshots for the saved image
  • test-output/ExtentReport/extent-report.html for the attached screenshot in the failed test entry

About

Test Automation Framework using Selenium WebDriver, Java, and TestNG.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors