Skip to content

Tryhard365/cypress-automationexercise-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Full-Stack Automation | Cypress + API Testing

Complete test automation suite for AutomationExercise.com demonstrating UI and API testing capabilities.

🎯 Test Coverage

UI Tests (Cypress)

  • ✅ User registration and login flows
  • ✅ Product browsing and search
  • ✅ Shopping cart operations (add, remove, update)
  • ✅ Complete checkout process with payment
  • ✅ Order confirmation validation

API Tests

  • ✅ Product listing and search endpoints
  • ✅ Brand listing API
  • ✅ User account creation
  • ✅ Authentication validation
  • ✅ Negative test scenarios

📊 Test Results

  • Total Test Scenarios: 10+ (UI + API)
  • Pass Rate: 90%+
  • Frameworks: Cypress 15.7.0
  • Reporting: Mochawesome HTML reports with screenshots

🛠 Technologies Used

  • Cypress 15.7.0 - E2E and API testing
  • JavaScript ES6 - Test scripting
  • Mochawesome - HTML reporting
  • Page Object Model - Design pattern for maintainability
  • GitHub Actions - CI/CD ready

📁 Project Structure

automationexercise-testing/ ├── cypress/ │ ├── e2e/ │ │ ├── ui/ # UI test specifications │ │ └── api/ # API test specifications │ ├── pages/ # Page Object classes │ ├── support/ # Custom commands & helpers │ └── reports/ # HTML test reports ├── cypress.config.js # Cypress configuration └── README.md

text

🚀 How to Run

Install Dependencies

npm install

text

Run All Tests (Headless)

npm test

text

Run UI Tests Only

npx cypress run --spec "cypress/e2e/ui/**/*.cy.js"

text

Run API Tests Only

npx cypress run --spec "cypress/e2e/api/**/*.cy.js"

text

Open Cypress Test Runner (Interactive)

npm run test:open

text

Generate HTML Report

npm run report:html

text

🎥 Demo Video

💼 Key Features

Dual Testing Approach - UI and API validation
Clean Architecture - Page Object Model pattern
Comprehensive Coverage - Happy path and negative scenarios
Automated Reporting - HTML reports with screenshots on failure
Reusable Components - Modular test design
CI/CD Ready - Easy integration with pipelines

📈 Skills Demonstrated

  • End-to-end test automation
  • API testing and validation
  • Page Object Model implementation
  • Test data management
  • Assertion strategies
  • Error handling and debugging
  • Professional test documentation

👨‍💻 Author

Micheal Adedoyin - QA Automation Engineer
Specializing in E2E automation for e-commerce and fintech applications.

This project demonstrates production-ready test automation skills for client portfolios and technical interviews.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published