Introduction
Welcome to QAntum Prime – the AI-powered testing framework that refuses to die. With 715,861 lines of battle-tested code, QAntum brings enterprise-grade QA automation to teams of all sizes.
Unlike traditional testing frameworks, QAntum uses AI to heal broken tests, bypass bot detection, and predict failures before they happen.
Installation
Install QAntum Prime via npm:
npm install qantum-prime
Or use the CLI to scaffold a new project:
npx qantum init my-project
cd my-project
npm test
Quick Start
Here's a simple example to get you started:
import { QAntum } from 'qantum-prime';
// Initialize QAntum with default settings
const qa = await QAntum.create({
ghost: true, // Enable Ghost Protocol
selfHeal: true, // Enable self-healing
parallel: 10 // Run 10 tests in parallel
});
// Write your first test
await qa.test('Homepage loads', async ({ page }) => {
await page.goto('https://example.com');
await qa.expect(page).toHaveTitle(/Example/);
});
// Run all tests
await qa.run();
You've just written your first QAntum test. The framework handles browser automation, self-healing, and reporting automatically.
Configuration
Create a qantum.config.ts file in your project root:
import { defineConfig } from 'qantum-prime';
export default defineConfig({
// Ghost Protocol settings
ghost: {
enabled: true,
biometric: true,
fingerprint: 'random'
},
// Self-healing settings
selfHeal: {
enabled: true,
strategies: ['data-testid', 'aria-label', 'text', 'visual'],
confidenceThreshold: 0.85
},
// Execution settings
parallel: {
workers: 50,
retries: 2
},
// Reporting
reporters: ['html', 'json', 'console']
});
Ghost Protocol v2
Ghost Protocol makes your automation completely invisible to bot detection systems. It simulates human behavior with uncanny accuracy.
Features
- Biometric Simulation – Realistic mouse movements, typing patterns, and scroll behavior
- Fingerprint Masking – Unique browser fingerprints for each session
- Anti-Detection – Bypasses Cloudflare, Akamai, PerimeterX, and DataDome
// Enable Ghost Protocol
const qa = await QAntum.create({
ghost: {
enabled: true,
biometric: true, // Human-like mouse movements
fingerprint: 'unique', // New fingerprint per session
stealth: 'maximum' // Full anti-detection suite
}
});
Use Ghost Protocol responsibly. It's designed for testing your own applications, not for bypassing security on sites you don't own.
Self-Healing Tests
QAntum's self-healing engine automatically repairs broken selectors using machine learning. When UI changes, your tests adapt.
How it Works
- QAntum detects a broken selector
- ML engine analyzes 15+ alternative strategies
- Best match is selected (97%+ accuracy)
- Test continues without human intervention
- Healing is logged for review
Healing Strategies
| Strategy | Priority | Accuracy |
|---|---|---|
data-testid |
1 | 99.2% |
aria-label |
2 | 94.7% |
text-content |
3 | 91.3% |
visual-position |
4 | 87.8% |
dom-structure |
5 | 82.4% |
Swarm Execution
Run thousands of tests in parallel across multiple regions. Swarm Intelligence distributes your test suite for maximum speed.
// Enable Swarm mode
const qa = await QAntum.create({
swarm: {
enabled: true,
workers: 1000,
regions: ['us-east', 'eu-west', 'ap-south'],
loadBalancing: 'intelligent'
}
});
The Oracle
The Oracle is QAntum's AI-powered test discovery engine. Point it at a URL and it automatically generates comprehensive test cases.
// Auto-discover and generate tests
await qa.oracle.discover({
url: 'https://your-app.com',
depth: 3, // Crawl depth
generateTests: true, // Auto-generate test files
coverage: ['forms', 'navigation', 'api', 'auth']
});
Chronos Engine
Chronos predicts test failures before they happen using historical data analysis and pattern recognition.
// Get failure predictions
const predictions = await qa.chronos.predict();
predictions.forEach(p => {
console.log(`${p.test}: ${p.failureProbability}% chance of failure`);
console.log(`Recommendation: ${p.recommendation}`);
});
Fortress Security
Fortress integrates security scanning into your test suite. Find vulnerabilities while testing functionality.
// Enable security scanning
const qa = await QAntum.create({
fortress: {
enabled: true,
scanTypes: ['xss', 'sqli', 'csrf', 'ssrf'],
reportVulnerabilities: true
}
});
API Reference
Core Methods
| Method | Description |
|---|---|
QAntum.create(options) |
Initialize a new QAntum instance |
qa.test(name, fn) |
Define a test case |
qa.run() |
Execute all tests |
qa.expect(value) |
Create an assertion |
qa.oracle.discover() |
Auto-discover tests |
qa.chronos.predict() |
Get failure predictions |
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
ghost |
boolean | object | false | Enable Ghost Protocol |
selfHeal |
boolean | object | true | Enable self-healing |
parallel |
number | 4 | Parallel workers |
timeout |
number | 30000 | Test timeout (ms) |
retries |
number | 2 | Retry count |
Changelog
v27.1.0-IMMORTAL (Current)
- 752,312 lines of code
- Ghost Protocol v2 with biometric simulation
- Self-Healing with 15 strategies (97% accuracy)
- Swarm execution across 5 global regions
- The Oracle auto-discovery engine
- Chronos predictive engine
- Fortress security scanning
v26.0.0
- PANTHEON architecture complete
- Fatality Engine v3
- Multi-region support
Built with in Sofia, Bulgaria
© 2025-2026 Dimitar Prodromov | QAntum Labs