Skip to content

vaishnaviMahajan1706/Project-selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

QuantumLeap - E-Commerce Test Automation Framework

Project Overview

QuantumLeap – E-Commerce Test Automation Framework is a portfolio-ready automation project designed to validate both UI and API functionality of modern applications under test. The framework is built from scratch using best practices, ensuring scalability, maintainability, and reusability.

The framework is portfolio-ready and hosted on GitHub, showcasing expertise in Selenium, TestNG, REST Assured, Cucumber BDD, and Extent Reports.

Applications Under Test (AUT):


Technology Stack

  • Programming Language: Java
  • Build & Dependency Management: Maven
  • UI Automation: Selenium WebDriver
  • Test Framework: TestNG
  • BDD Framework: Cucumber (Gherkin)
  • API Automation: REST Assured
  • Reporting: Extent Reports
  • Browser Management: WebDriverManager

Core Features

1. UI Test Automation

  • Framework Architecture:
    • Page Object Model (POM) design pattern with separate classes for each page: LoginPage, ProductsPage, CartPage, CheckoutPage.
    • Efficient locators using CSS Selectors and XPath.
  • Test Cases:
    • Data-driven login tests using @DataProvider (standard user, locked-out user, performance glitch user).
    • End-to-End purchase flow test: login → add to cart → verify cart → checkout → confirm order.
  • Advanced Features:
    • Explicit Waits for synchronization.
    • Automatic screenshots on test failure.
    • JavaScriptExecutor for advanced interactions (scrolling, clicking).

2. Behavior-Driven Development (BDD)

  • Feature Files: Gherkin .feature files describing scenarios such as "Add Item to Cart".
  • Step Definitions: Reusable methods calling POM classes.
  • Execution: Cucumber tests executed via TestNG runner.

3. API Test Automation

  • CRUD Operations using REST Assured:
    • GET: Fetch list of users and validate response.
    • POST: Create new user and assert response.
    • PUT: Update existing user and verify response.

4. Reporting & Non-Functional Testing

  • Test Reporting: Integrated Extent Reports showing the status of UI and API tests, including screenshots for failures.
  • Performance Testing Plan: Document detailing login functionality performance with 50 concurrent users, monitoring response time, throughput, and error rate.
  • Security Testing Scenarios:
    • Authentication Bypass: Testing access to protected pages without login.
    • Input Validation (XSS): Testing reflected XSS vulnerabilities in login fields.

Project setup

Go to File → Import → Existing Maven Project

Select the project folder → Finish

Maven will download dependencies.

Update Maven

Right-click pom.xml → Maven → Update Project

Run Tests(testng.xml and apitestng.xml)

Open src/test/java

Right-click a test class → Run As → TestNG Test

View Reports

test-output/ folder

open reports/ExtentReport.html

Project Structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages