How ps9151299-coder/testforge-ai works
TestForge AI is a web application for turning software requirements documents into structured requirements, test plans, cases, task roadmaps and Playwright automation, with workspace, authentication and execution/reporting features. The primary workflow runs from project selection and document upload through extraction and synthesis to automation and reports. The excerpts confirm frontend upload and generation-service calls, backend route registration, and authentication/security calls; several execution and persistence details are only indexed, so uncertain connections are omitted or shown as unverified.
Main entry points: App.tsx Route application · main.py FastAPI application · documents.py Document endpoints · ProjectDetail.tsx Requirement workspace
Components 26
Web application
- Route application
frontend/src/App.tsx - Project dashboard
frontend/src/pages/Dashboard.tsx - Requirement workspace
frontend/src/pages/ProjectDetail.tsx - Document upload client
frontend/src/services/documentService.ts - Generation client
frontend/src/services/generateService.ts - HTTP client
frontend/src/services/api.ts - Test synthesis workspace
frontend/src/pages/TestGenerator.tsx - Work tracker
frontend/src/components/WorkTrackerModal.tsx - Playwright report view
frontend/src/pages/PlaywrightReport.tsx - Login screen
frontend/src/pages/Login.tsx - Registration screen
frontend/src/pages/Register.tsx
Backend API
- FastAPI application
backend/app/main.py - Test execution
backend/app/api/execution.py - HTML report files
backend/reports/index.html
Requirement processing
- Document endpoints
backend/app/api/documents.py - Document chunking
backend/app/services/chunking_service.py - Boilerplate filtering
backend/app/services/filter_service.py - Generation endpoints
backend/app/api/generate.py - Requirement synthesis
backend/app/services/ai_service.py
Identity and workspace
- Authentication endpoints
backend/app/api/auth.py - User file store
backend/app/api/auth.py - Password and tokens
backend/app/core/security.py - Workspace endpoints
backend/app/api/workspaces.py - Workspace model
backend/app/models/workspace.py - Database session
backend/app/db/session.py
Other components
- Project user
Connections 27
- Project user → Route application: uses
- Route application → Login screen: routes
frontend/src/App.tsx - Route application → Registration screen: routes
frontend/src/App.tsx - Route application → Project dashboard: routes
frontend/src/App.tsx - Route application → Requirement workspace: routes
frontend/src/App.tsx - Route application → Test synthesis workspace: routes
frontend/src/App.tsx - Route application → Playwright report view: routes
frontend/src/App.tsx - Requirement workspace → Document upload client: uploads through
frontend/src/pages/ProjectDetail.tsx - Requirement workspace → Generation client: requests extraction
frontend/src/pages/ProjectDetail.tsx - Document upload client → HTTP client: sends request
frontend/src/services/documentService.ts - Generation client → HTTP client: sends requests
frontend/src/services/generateService.ts - FastAPI application → Authentication endpoints: registers router
backend/app/main.py - FastAPI application → Workspace endpoints: registers router
backend/app/main.py - FastAPI application → Document endpoints: registers router
backend/app/main.py - FastAPI application → Generation endpoints: registers router
backend/app/main.py - FastAPI application → Test execution: registers router
backend/app/main.py - Authentication endpoints → User file store: reads and writes
backend/app/api/auth.py - Authentication endpoints → Password and tokens: verifies and signs
backend/app/api/auth.py - Workspace endpoints → Database session: uses sessions
backend/app/api/workspaces.py - Workspace endpoints → Workspace model: uses model
backend/app/api/workspaces.py - Document endpoints → Document chunking: uses
backend/app/api/documents.py - Document endpoints → Boilerplate filtering: uses
backend/app/api/documents.py - Generation endpoints → Requirement synthesis: uses synthesis
backend/app/api/generate.py - Document upload client → Document endpoints: uploads document
- Generation client → Generation endpoints: requests synthesis
- Test synthesis workspace → Test execution: runs suite
- FastAPI application → HTML report files: serves reports
backend/app/main.py