Skip to content

About

End-to-end e-commerce automation testing framework using Java, Selenium WebDriver, TestNG, REST Assured, SQL, Maven, and GitHub Actions CI/CD.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Web & API Automation Testing Framework

A portfolio-ready Java automation testing framework demonstrating end-to-end QA practices for an e-commerce application.

Project Overview

This project combines UI automation, API automation, test data, reporting, and CI execution in one maintainable framework.

What this project demonstrates

  • Web UI automation with Selenium WebDriver
  • Java programming and TestNG
  • Page Object Model (POM)
  • Functional, regression, smoke, negative and boundary testing
  • REST API automation with REST Assured
  • SQL/database validation
  • Reusable waits, assertions and utilities
  • Maven build management
  • Git/GitHub version control
  • CI execution with GitHub Actions
  • HTML test reporting

Technology Stack

Technology Purpose
Java Programming language
Selenium WebDriver Web UI automation
TestNG Test execution and assertions
REST Assured API automation
Maven Build and dependency management
SQL/MySQL Database validation
Git/GitHub Version control
GitHub Actions CI automation

Framework Structure

ecommerce-web-api-automation-framework/
├── src/
│   ├── main/java/com/diya/automation/
│   │   ├── api/
│   │   ├── config/
│   │   ├── pages/
│   │   └── utils/
│   └── test/java/com/diya/automation/
│       ├── api/
│       └── ui/
├── src/test/resources/
│   ├── config.properties
│   └── testdata/
├── .github/workflows/maven.yml
├── pom.xml
├── testng.xml
├── .gitignore
└── README.md

Test Coverage

UI Tests

  • Login validation
  • Product search
  • Product selection
  • Cart operations
  • Checkout validation

API Tests

  • GET products
  • POST login
  • Response status validation
  • Response body validation
  • Negative API scenarios

Database Validation

  • Product data verification
  • Order/user data verification
  • UI/API to database consistency checks

Design Approach

The framework follows Page Object Model principles so page locators and page actions remain separate from test cases. Common browser operations, waits and configuration are centralized in reusable utility classes.

Running the Tests

Prerequisites

  • JDK 17+
  • Maven 3.8+
  • Chrome browser
  • Git

Run all tests

mvn clean test

Run TestNG suite

mvn test -DsuiteXmlFile=testng.xml

Configuration

Update src/test/resources/config.properties with the environment you want to test:

baseUrl=https://your-test-application.example
apiBaseUrl=https://your-api.example
browser=chrome

Do not commit real credentials, API keys, or production secrets.

CI/CD

The GitHub Actions workflow runs Maven tests automatically when code is pushed or a pull request is opened.

Reporting

TestNG generates execution results under:

target/surefire-reports/

Example Test Strategy

  1. Review requirements
  2. Identify test scenarios
  3. Create positive and negative test cases
  4. Automate stable UI/API flows
  5. Execute smoke tests
  6. Execute regression tests
  7. Validate defects and retest fixes
  8. Publish test results
  9. Run the suite through CI

Portfolio Note

This repository is designed as a learning and portfolio project. Replace the example application URL and test data with a publicly available practice application before presenting execution evidence.

Author

Diya Jatar

Java | Selenium | TestNG | REST Assured | SQL | Git | CI/CD

About

End-to-end e-commerce automation testing framework using Java, Selenium WebDriver, TestNG, REST Assured, SQL, Maven, and GitHub Actions CI/CD.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors