Skip to content

khawjaahmad/cypress-music-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎡 Music Store API's - E2E Test Suite

Cypress Tests API Tests Cloud Dashboard

Comprehensive E2E testing framework for a Music Store API built with Python FastAPI & NeonDB. Features automated testing, parallel execution, and real-time monitoring through Cypress Cloud.

🌐 Live Test Dashboard β€’ πŸ“Š View Analytics


✨ Highlights

🎯 80+ Test Scenarios covering authentication, users, artists, albums & playlists
⚑ Parallel Execution - Full suite runs in ~5 minutes
πŸ“Š Public Dashboard with real-time monitoring and analytics
πŸ”„ Automated Runs - 2x daily via GitHub Actions
πŸ” Security Testing - SQL injection, XSS, rate limiting validation
☁️ Cloud Integration - Beautiful visualizations on Cypress Cloud


πŸ—οΈ What's Being Tested

Backend API built with Python FastAPI + NeonDB featuring:

πŸ” Authentication & Security     πŸ‘₯ User Management
🎡 Artists & Albums             🎢 Songs & Playlists  
πŸ“Š Real-time Analytics          πŸ›‘οΈ Security Features

Backend API will be open-sourced soon!


πŸš€ Quick Start

# Clone & Install
git clone https://github.com/khawjaahmad/cypress-music-api.git
cd cypress-music-api && npm install

# Run Tests
npm run test:smoke              # Quick validation
npm run test:all               # Full test suite
npm run cypress:open           # Interactive mode

# Cloud Recording
npm run test:cloud             # Record to dashboard

⚠️ Note: Tests require access to the backend API. The test framework is fully functional, but API endpoints are not publicly available yet. Full functionality will be available when the backend API is open-sourced.


πŸ“Š Live Dashboard

Experience real-time test monitoring with comprehensive analytics:


πŸ§ͺ Test Coverage

Feature Tests Status Focus Areas
πŸ” Authentication 15+ βœ… Complete JWT security, rate limiting, session management
πŸ‘₯ User Management 20+ βœ… Complete CRUD operations, favorites, input validation
🎡 Artists 18+ βœ… Complete CRUD, relationships, data validation
πŸ’Ώ Albums 12+ 🚧 In Progress Album-artist relationships, metadata validation
🎢 Songs 15+ 🚧 In Progress Song management, genre classification, duration validation
πŸ“‹ Playlists 10+ 🚧 In Progress User playlists, song associations, sharing features
πŸ›‘οΈ Security 18+ βœ… Complete SQL injection, XSS prevention, data sanitization
⚑ Performance 8+ 🚧 In Progress Response times, concurrent users, load testing

πŸ› οΈ Tech Stack

Testing Framework

Backend API (Coming Soon)

  • FastAPI - High-performance Python framework
  • NeonDB - Serverless PostgreSQL
  • JWT - Secure authentication

πŸ“ˆ Automation Pipeline

Scheduled Runs: 6:00 AM & 6:00 PM UTC
Trigger Events: Push, PR, Manual dispatch
Execution Time: ~5 minutes (parallel)
Success Rate: View Live


🎯 Coming Soon

πŸš€ Open Source Release - Complete FastAPI backend with documentation
πŸ“± Mobile Testing - Flutter app automation suite with Patrol
🎢 Complete Test Coverage - Songs, albums, playlists test suites
πŸ“Š Advanced Analytics - Custom metrics and reporting
πŸ”„ Multi-Environment - Staging, production test configurations


πŸ“ž Connect

GitHub: @khawjaahmad
LinkedIn: Ahmad Waqar
Dashboard: Live Results


πŸš€ Built with ❀️ for API Automation

Showcasing modern testing practices with real-time monitoring

GitHub stars

About

🎡 Cypress E2E test suite for Music Store API using Cypress Cloud. Auto-runs twice daily with detailed reports.

Topics

Resources

Stars

Watchers

Forks