- Name: QA Automation Demo Portal
- Goal: Comprehensive test automation platform for API testing, performance testing, and test run management
- Features: User authentication, API test creation, test execution, performance testing, test run history, responsive UI
- GitHub Repository: https://github.com/patr-coder/qa-automation-demo
- Production (Cloudflare Pages): https://qa-automation-demo.pages.dev (Deployment in progress)
- Development: Available via sandbox environment
- User registration with email, username, password
- Secure login/logout with session management
- User type selection (QA Engineer, Developer, Manager, etc.)
- Audit logging for user activities
- Create API Tests: Define endpoint URL, HTTP method, request body
- Execute Tests: Run saved tests or quick tests
- Test Management: View, run, and delete saved API tests
- Response Analysis: Status codes, response times, success/failure tracking
- Test History: Complete history of all test executions
- Detailed View: Comprehensive test run details with metrics
- Pagination: 10 items per page with navigation controls
- Delete Functionality: Remove test runs with confirmation dialogs
- Load Testing: Configure virtual users and test duration
- Metrics Collection: Average response time, requests per second, P95 times, error rates
- Results Display: Real-time performance metrics visualization
- Desktop Layout: Optimized for desktop with proper card layouts and button positioning
- Mobile Layout: Full mobile responsiveness with collapsible navigation
- Interactive Elements: Hover effects, color-coded HTTP methods, clean typography
- Notification System: Toast notifications for user feedback
- Fixed Button Positioning: Resolved delete buttons appearing outside cards in desktop mode
- Enhanced API Cards: Color-coded HTTP method badges (GET=blue, POST=green, PUT=yellow, DELETE=red)
- JSON Preview: Smart formatting and truncation of request body content
- Improved Grid: Responsive grid layout (1 col mobile β 2 cols tablet β 3 cols desktop)
- Schema: 11 tables with complete relational structure
- Tables: users, api_tests, test_runs, performance_runs, test_results, performance_metrics, audit_logs, user_sessions, test_environments, test_data, test_schedules
- Cloudflare D1: Relational data (users, tests, results)
- Local Development: SQLite with
--local
flag for development
- User Model: Authentication, profile, audit tracking
- API Test Model: Endpoint definition, request configuration
- Test Run Model: Execution results, performance metrics
- Performance Model: Load testing results and analytics
- Backend: Hono Framework (TypeScript)
- Frontend: Vanilla JavaScript, TailwindCSS, Font Awesome
- Database: Cloudflare D1 (SQLite)
- Deployment: Cloudflare Pages with Workers
- Build Tool: Vite with Cloudflare Pages adapter
- Version Control: Git with GitHub integration
POST /api/auth/register
- User registrationPOST /api/auth/login
- User loginPOST /api/auth/logout
- User logout (with audit logging)
GET /api/tests
- List API tests (paginated)POST /api/tests
- Create new API testPOST /api/tests/:id/run
- Execute specific testDELETE /api/tests/:id
- Delete API test
GET /api/runs
- List test runs (paginated)GET /api/runs/:id
- Get detailed test run informationDELETE /api/runs/:id
- Delete test run
POST /api/performance/run
- Execute performance test
GET /api/dashboard/stats
- Get dashboard statistics
- Register: Create account with email, username, and password
- Login: Access the platform with your credentials
- Navigate: Use the top navigation to access different features
- Go to API Testing tab
- Fill in Test Name, API Endpoint, and HTTP Method
- Add Request Body if needed (JSON format)
- Click Create Test to save, or Run Test to execute immediately
- Quick Test: Configure and run immediately from API Testing tab
- Saved Tests: Click Run button on any saved test card
- View Results: Check response time, status code, and success/failure
- Go to Test Results tab to see all test runs
- Click View Details to see comprehensive test information
- Use Delete button to remove test runs
- Navigate through pages using Previous/Next buttons
- Go to Performance Testing tab
- Set API Endpoint, Virtual Users, and Test Duration
- Click Run Performance Test
- View results: Average time, requests/sec, P95 time, error rate
- Platform: Cloudflare Pages
- Status: π In Progress (GitHub Integration Setup)
- Build Command:
npm run build
- Output Directory:
dist
- Framework: Hono with Vite
- Database: Cloudflare D1 (Production binding required)
- Complete Cloudflare Pages Deployment with GitHub integration
- Setup Production D1 Database with migration application
- Configure Environment Variables for production
- Test Live Functionality end-to-end
- Real-time Test Monitoring with WebSocket integration
- Test Scheduling for automated test execution
- Advanced Reporting with PDF generation
- Team Collaboration features with shared workspaces
- API Documentation generation from test definitions
- Integration Testing with CI/CD pipeline support
# Local Development
npm run dev # Start Vite dev server
npm run dev:sandbox # Start wrangler in sandbox
npm run build # Build for production
npm run deploy # Deploy to Cloudflare Pages
# Database Management
npm run db:migrate:local # Apply migrations locally
npm run db:migrate:prod # Apply migrations to production
npm run db:seed # Seed test data
npm run db:reset # Reset local database
# Git Operations
npm run git:status # Check git status
npm run git:commit "message" # Quick commit
- Database Tables: 11 comprehensive tables
- API Endpoints: 12 RESTful endpoints
- Frontend Components: Responsive design with 5 main sections
- Test Coverage: Full CRUD operations for all entities
- UI Components: Mobile-responsive with desktop optimization
Last Updated: September 28, 2025
Version: 1.0.0
License: MIT
Maintainer: Patrick M (Engineering Director)