How syl-rutvik/ai-testcase works
This is a web-based QA suite that turns natural-language requirements into structured positive, negative, and boundary test cases, then supports review, export, and saved history. Users enter through the React application; generation requests reach the Express API and test-case controller, which uses Gemini when configured and an NLP fallback, while authentication, plans, administration, and history are separate domain capabilities. The repository documents hybrid SQLite/MongoDB persistence. Some frontend and backend modules are unsampled, so their documented capabilities are shown without speculative internal call chains.
Main entry points: App.jsx Application shell · testCaseRoutes.js API routes · dbService.js Database adapter · testCaseController.js Test synthesis
Components 25
React client
- Application shell
frontend/src/App.jsx - Requirement entry
frontend/src/components/GeneratorPage.jsx - QA dashboard
frontend/src/pages/DashboardPage.jsx - Test case review
frontend/src/components/TestCaseTable.jsx - Export tools
frontend/src/components/ExportToolbar.jsx - Traceability matrix
frontend/src/components/TraceabilityMatrixModal.jsx - Plan selection
frontend/src/components/PricingModal.jsx - Admin portal
frontend/src/pages/AdminPortalPage.jsx - Suite history
frontend/src/pages/HistoryPage.jsx - API endpoint config
frontend/src/config/apiConfig.js
API and domains
- Express API
backend/server.js - API routes
backend/routes/testCaseRoutes.js - JWT and RBAC
backend/middleware/authMiddleware.js - Authentication
backend/controllers/authController.js - Plans and credits
backend/controllers/plansController.js - User governance
backend/controllers/adminController.js - History archive
backend/controllers/historyController.js - Requirement presets
backend/controllers/presetsController.js
Test synthesis
- Test synthesis
backend/controllers/testCaseController.js - Google Gemini
- NLP fallback engine
backend/controllers/testCaseController.js
Hybrid persistence
- Database adapter
backend/db/dbService.js - SQLite store
backend/db/database.js - MongoDB Atlas
backend/db/mongo.js
Other components
- QA user
Connections 29
- QA user → Application shell: uses
frontend/src/App.jsx - Application shell → Requirement entry: renders
frontend/src/App.jsx - Application shell → QA dashboard: renders
frontend/src/App.jsx - Application shell → Test case review: renders
frontend/src/App.jsx - Application shell → Export tools: renders
frontend/src/App.jsx - Export tools → Traceability matrix: opens
frontend/src/components/ExportToolbar.jsx - Application shell → Admin portal: renders
frontend/src/App.jsx - Application shell → Suite history: renders
frontend/src/App.jsx - Application shell → API endpoint config: uses endpoint
frontend/src/App.jsx - Application shell → Express API: posts generation
frontend/src/App.jsx - Plan selection → API endpoint config: uses endpoint
frontend/src/components/PricingModal.jsx - Express API → API routes: mounts
backend/server.js - API routes → Test synthesis: routes generation
backend/routes/testCaseRoutes.js - API routes → JWT and RBAC: guards routes
backend/routes/testCaseRoutes.js - API routes → Authentication: routes auth
backend/routes/testCaseRoutes.js - API routes → Plans and credits: routes plans
backend/routes/testCaseRoutes.js - API routes → User governance: routes admin
backend/routes/testCaseRoutes.js - API routes → History archive: routes history
backend/routes/testCaseRoutes.js - API routes → Requirement presets: routes presets
backend/routes/testCaseRoutes.js - Test synthesis → Google Gemini: generates with
README.md - Test synthesis → NLP fallback engine: falls back to
README.md - Authentication → Database adapter: reads and writes
backend/controllers/authController.js - Plans and credits → Database adapter: uses
backend/controllers/plansController.js - User governance → Database adapter: uses
backend/controllers/adminController.js - History archive → Database adapter: uses
backend/controllers/historyController.js - Requirement presets → Database adapter: uses
backend/controllers/presetsController.js - Test synthesis → Database adapter: checks quotas
backend/controllers/testCaseController.js - Database adapter → SQLite store: routes offline
backend/db/dbService.js - Database adapter → MongoDB Atlas: routes cloud
backend/db/dbService.js