An intelligent test automation framework with AI-powered test generation, auto-healing capabilities, and failure pattern detection.
- 🤖 AI Test Generation: Automatically generate test cases using AI based on natural language descriptions
- 🔧 Auto-Healing: Intelligent test repair that fixes brittle tests automatically
- 📊 Pattern Detection: Identify and analyze common failure patterns across your test suite
- 🎯 Multi-Framework Support: Works with Cypress, Playwright, Puppeteer, and Selenium
- 📈 Advanced Analytics: Comprehensive test analytics and insights
- 🔄 Retry Mechanisms: Smart retry logic with auto-healing on failure
npm install ai-native-test-frameworkimport { TestFramework } from 'ai-native-test-framework';
const framework = new TestFramework({
apiKey: process.env.OPENAI_API_KEY,
enableAutoHealing: true,
enablePatternDetection: true,
});
// Generate test cases using AI
const testCases = await framework.generateTestCases(
'Test user login flow with email and password',
'cypress',
5
);
// Run tests
const results = await Promise.all(
testCases.map(tc => framework.runTest(tc.id))
);
// Get analytics
const analytics = framework.getAnalytics();
console.log(analytics);- TestFramework: Main orchestrator for test execution
- AITestGenerator: Generates test cases using AI
- TestHealer: Auto-heals failing tests
- PatternDetector: Detects and analyzes failure patterns
- UI/E2E tests
- API tests
- Integration tests
- Unit tests (with adaptation)
Generates AI-powered test cases from natural language description.
Executes a single test with auto-healing and retry logic.
Executes all registered test cases.
Returns comprehensive test analytics and failure patterns.
Generates test cases based on description.
Generates new tests by learning from existing patterns.
Attempts to repair a failing test automatically.
Analyzes test results and detects common failure patterns.
interface TestConfig {
apiKey?: string; // OpenAI API key
maxRetries?: number; // Max retry attempts (default: 3)
timeout?: number; // Test timeout in ms (default: 30000)
enableAutoHealing?: boolean; // Enable auto-healing (default: true)
enablePatternDetection?: boolean; // Enable pattern detection (default: true)
}# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Watch mode
npm run dev- Reduce Maintenance Overhead: Auto-healing reduces the time spent fixing brittle tests
- Faster Test Development: AI-generated tests accelerate test suite creation
- Data-Driven Insights: Pattern detection reveals systemic quality issues
- Team Productivity: Less time on test maintenance, more time on strategy
- Quality Metrics: Advanced analytics for executive reporting
- Integration with CI/CD pipelines
- ML-based test optimization
- Visual regression testing with AI
- Cross-browser testing coordination
- Performance profiling integration
- Cloud-based distributed testing
- Mobile app testing support
Contributions welcome! This is an open-source framework built for QA teams.
MIT
Ashwin Kulkarni - Creator and Maintainer
For issues, questions, or feature requests, please visit our GitHub repository.
Built for QA Leaders • Enabling the next generation of intelligent testing