MediTestAI is an AI-powered system that automates the generation of test cases for healthcare software applications. The system converts software requirements into compliant, structured test cases and integrates with enterprise toolchains.
-
AI-Powered Test Case Generation
- Converts natural language and structured specifications into detailed test cases
- Supports multiple input formats (PDF, Word, XML, Markdown)
- Generates comprehensive test cases with all required elements
-
Healthcare Compliance & Standards
- Ensures compliance with FDA, ISO 13485, and GDPR standards
- Provides compliance reports for generated test cases
- Maintains traceability between requirements and test cases
-
No-Code Interface
- Intuitive UI for non-technical users
- File upload and copy-paste input options
- Visual test case management dashboard
-
Test Case Management
- View, copy, and export generated test cases
- Modify existing test cases using natural language prompts
- Import and manage existing test suites
- Frontend: Next.js 15 with React Server Components
- AI Engine: Google Gemini through LangChain
- UI Components: Tailwind CSS, Radix UI, Shadcn UI
- State Management: React Context API
- Backend: Next.js API routes with LangChain-based server actions
- Deployment: Firebase hosting compatible
src/
├── ai/ # AI flows and configurations
│ ├── flows/ # Individual AI capabilities
│ └── dev.ts # Development server setup
├── app/ # Next.js app router structure
│ ├── (app)/ # Main application pages
│ │ ├── dashboard/ # Dashboard home page
│ │ ├── generate/ # Test case generation page
│ │ ├── manage/ # Test case management page
│ │ ├── import/ # Test case import page
│ │ └── compliance/ # Compliance checking page
│ ├── layout.tsx # Root layout
│ └── page.tsx # Home page redirect
├── components/ # Reusable UI components
│ ├── ui/ # Shadcn UI components
│ ├── TestCaseCard.tsx # Test case display component
│ └── providers.tsx # Context providers
├── contexts/ # React context providers
├── lib/ # Utility functions and types
└── hooks/ # Custom React hooks
- Input: Product Requirement Documents (PRDs) in text format
- Process: AI analysis of requirements to create structured test cases
- Output: Test cases with Case ID, Title, Description, Steps, Expected Results, and Priority
- Analyzes test cases against healthcare standards
- Generates compliance reports
- Identifies potential compliance gaps
- Allows natural language modifications to existing test cases
- AI-powered refinement of test scenarios
- Import existing test cases from various formats
- Export functionality (currently demo-only for Jira, Azure DevOps, PDF)
The system uses Google's Gemini AI through the LangChain framework:
- Model:
gemini-2.5-flashvia LangChain - Flows:
generateTestCasesFromRequirementsFlowcomplianceCheckTestCasesFlowmodifyTestCasesWithNaturalLanguageFlow
-
Next.js Optimizations:
- Removed Turbopack for stability
- Enabled SWC minification
- Optimized image loading
- Force dynamic rendering
-
AI Response Optimization:
- Simplified prompts for faster responses
- Limited test case generation to 3 per request
- Streamlined output formatting
-
Environment Setup:
npm install
-
Environment Variables: Create a
.envfile with your Google AI API key:GOOGLE_API_KEY=your_google_ai_api_key_here -
Start Development Servers:
# Start development server npm run dev # In a separate terminal, start Next.js frontend npm run dev
-
Access Application: Open
http://localhost:9002in your browser
-
Port Conflicts:
- Kill processes on port 9002 before starting servers
- Use
netstat -ano | findstr :9002to find processes
-
AI Generation Slow:
- First requests may be slower due to model loading
- Subsequent requests should be faster
- Keep requirements documents concise
-
Image Loading Issues:
- Ensure images are in the
public/directory - Check image file extensions are supported
- Ensure images are in the
-
For Faster AI Responses:
- Keep requirement documents under 2000 words
- Use clear, specific language in requirements
- Focus on key functionality in requirements
-
For Better UI Performance:
- Limit test cases to fewer than 50 per view
- Use copy functionality instead of export for immediate needs
- Refresh page if UI becomes unresponsive
-
Integration Features:
- Full Jira integration
- Azure DevOps synchronization
- Polarion ALM connectivity
-
Advanced AI Capabilities:
- Test data generation
- Automated test script creation
- Regression test identification
-
Enhanced Compliance:
- Detailed compliance matrices
- Automated compliance gap analysis
- Regulatory update notifications
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, please contact the development team or open an issue in the repository.