🧪 Automation Testing Framework
An end-to-end Automation Testing Framework for QKart , built using Selenium WebDriver, TestNG, and Maven .
It follows :-
Page Object Model (POM)
Design pattern and includes modular reporting, listener integration, and automatic screenshot capture on test failures.
✅ Page Object Model (POM) design pattern
⚙️ Cross-browser testing support
📊 TestNG integration for test management and parallel execution
🧾 Maven build management
📸 Automatic screenshot capture on test failure
Path
Description
qkart/
Root project directory
┣ src/
Source folder containing main and test code
┃ ┣ main/java/
Core framework code
┃ ┃ ┣ com.qkart.base/
Base classes such as BaseTest, DriverFactory for setup and teardown
┃ ┃ ┣ com.qkart.page/
Page Object Model (POM) classes representing QKart application pages
┃ ┃ ┣ listener/
Custom TestNG listeners for capturing screenshots and logging
┃ ┃ ┗ Utillity/
Utility/helper classes (e.g., config reader, waits, Excel handling)
┃ ┗ test/java/
Test cases organized by modules
┃ ┃ ┣ com.qkart.login/
Test scripts for the Login module
┃ ┃ ┣ com.qkart.register/
Test scripts for the Registration module
┃ ┃ ┗ com.qkart.welcome/
Test scripts for the Welcome Page module
┣ Screenshots/
Stores automatically captured screenshots for failed test cases
┃ ┣ Login/
Screenshots related to Login module failures
┃ ┣ Register/
Screenshots related to Registration module failures
┃ ┗ WelcomePageModule/
Screenshots related to Welcome Page module failures
┣ test-output/
Default TestNG generated reports and logs
┣ pom.xml
Maven project configuration and dependency management
┣ testng.xml
TestNG suite file defining execution flow and test groups
┗ README.md
Project documentation (this file)
Component
Technology Used
Language
Java
Build Tool
Maven
Test Framework
TestNG
Automation Tool
Selenium WebDriver
Reporting
TestNG Reports
Java Version
1.8
✅ Page Object Model (POM) for reusable and maintainable code
🧩 Modular test structure (Login, Register, Welcome modules)
🖼️ Automatic screenshot capture on test failure
📄 TestNG Listeners for logging and reporting
🧱 Maven integration for easy dependency management
🔁 Parallel execution support
📊 Customizable reporting