AI Test Automation MCP Server
๐ Enterprise AI-Powered Multi-Agent Test Automation Platform
A state-of-the-art, enterprise-grade test automation platform unifying Web UI, Native Mobile (iOS/Android), REST/GraphQL APIs, Stripe Billing & Webhook Cryptographic Security, High-Concurrency Load Testing, WCAG 2.1 AA Accessibility Compliance, Vector Database Embeddings & NL-to-SQL (RAG), and an Autonomous Multi-Agent AI Layer with self-healing locators.
๐ ๐ View Live Interactive Test Dashboard
๐๏ธ High-Level System Architecture
graph TB
subgraph AI["๐ค AUTONOMOUS AI AGENTS LAYER โ Pipeline Orchestrator (pipeline.ts)"]
direction LR
JIRA["1. Jira Agent<br/>Fetch Story + ACs"] -->|pipeline.ts| PLAN["2. Planner Agent<br/>Generate BRD"]
PLAN -->|pipeline.ts| GEN["3. Generator Agent<br/>Write .spec.ts Code"]
GEN -->|pipeline.ts| HEAL["4. Healer Agent<br/>Self-Heal Locators"]
end
subgraph MCP["๐ MCP SERVER โ Tool Orchestration"]
direction LR
T1["fetch_story"] ~~~ T2["generate_brd"] ~~~ T3["generate_tests"] ~~~ T4["heal_tests"] ~~~ T5["run_tests"]
end
subgraph EXEC["๐งช TEST EXECUTION LAYER"]
direction LR
WEB["๐ Web UI E2E<br/>Playwright + POM"]
APITST["๐ REST + GraphQL<br/>APIRequestContext"]
STRIPE["๐ณ Stripe Billing<br/>HMAC-SHA256"]
A11Y["โฟ Accessibility<br/>Axe-Core WCAG 2.1"]
MOBILE["๐ฑ Native Mobile<br/>Appium + WDIO"]
PERF["โก Load Testing<br/>Gatling SDK"]
NLSQL["๐ง NL-to-SQL<br/>Vector RAG"]
end
subgraph INFRA["โ๏ธ CI/CD & INFRASTRUCTURE LAYER"]
direction LR
LOCAL["Chromium / Firefox / WebKit"]
BS["BrowserStack Cloud<br/>Real iOS + Android"]
CICD["GitHub Actions + GitLab CI"]
RPT["๐ Live Dashboard<br/>GitHub Pages"]
end
AI --> MCP
MCP --> EXEC
EXEC --> INFRA๐ Framework Modules & Key Capabilities
Layer | Technologies | Highlights & Test Coverage |
๐ Web UI E2E | Playwright, TypeScript, Page Object Model (POM) | Full customer journeys: 2-step Signup/Login, Product Discovery, Cart management, and Checkout order placement. Resilient against ad intercepts and dynamic modal animations. |
๐ณ Stripe & Billing | TypeScript, HMAC-SHA256, Form-URL-Encoded REST | End-to-end SaaS subscription lifecycle (Starter, Pro, Enterprise), PaymentIntents, partial/full refunds, webhook replay protection, and cryptographic signature validation. |
๐ฑ Native Mobile | Appium, WebdriverIO, Screen Object Model (SOM) | Cross-platform automation on iOS Simulator and Android Emulator. Touch gestures, scrolls, and device orientation handling. |
๐ฑ Mobile-Web | Playwright Device Descriptors | Mobile viewport emulation (iPhone 14, Pixel 7) testing responsive hamburger navigation and touch tap targets. |
๐ REST & GraphQL | Playwright APIRequestContext, Service Object Model | Full CRUD assertions (GET, POST, PUT, PATCH, DELETE), Basic Auth security boundaries, reverse geocoding, and GraphQL query resolution. |
โก Performance | Gatling TypeScript SDK, P.S.I.A. Architecture | Concurrency load tests, token correlation, cookie header management, and response time SLA assertions. |
โฟ Accessibility (a11y) | Axe-Core, WCAG 2.1 AA, Section 508 | Automated WCAG compliance auditing, keyboard navigation verification (Tab focus order), 4.5:1 color contrast enforcement, 48ร48px touch target validation, and component-scoped modal scanning with third-party widget exclusion. |
๐ง Vector DB & NL-to-SQL | Embeddings, Cosine Similarity, pgvector, RAG | High-dimensional vector embeddings for semantic schema retrieval (Recall@K), NL-to-SQL query generation with SQL injection guardrails, and intelligent test deduplication via cosine similarity. |
๐ค AI Self-Healing | LangChain, LLM Cache, AST Repair | Autonomous test generation from Jira BRDs + self-healing locator engine that heals broken UI selectors at runtime via vector similarity matching. |
๐ Quickstart & Execution Guide
1. Installation
# Clone the repository
git clone https://github.com/abhirise1981/ai-test-automation-platform.git
cd ai-test-automation-platform
# Install dependencies
npm install
# Install Playwright browser binaries
npx playwright install --with-deps2. Run Test Suites
# Run all automated tests (UI, REST, GraphQL, Stripe, Accessibility, AI)
npm run test
# Run UI E2E tests only
npx playwright test tests/ui/
# Run Stripe Billing & Webhook tests only
npx playwright test tests/api/stripe.spec.ts
# Run REST & GraphQL API tests only
npx playwright test tests/api/location.spec.ts tests/api/graphql.spec.ts
# Run Accessibility (WCAG 2.1 AA) tests
npx playwright test tests/ui/accessibility.spec.ts
# Run Vector DB & NL-to-SQL (RAG) tests
npx playwright test tests/ai/
# Run Cross-Browser tests (Chromium + Firefox + WebKit)
npm run test:cross-browser
# Run Mobile-Web responsive tests
npm run test:mobile-web3. Native Mobile Automation (Appium)
# Start Appium Server
npm run appium:start
# Run Android Native Tests
npm run test:mobile:android
# Run iOS Native Tests
npm run test:mobile:ios
# Run on BrowserStack Real Devices
npm run test:mobile:browserstack4. Gatling Performance & Load Testing
# Run Gatling TypeScript Load Tests
npx gatling run --typescript --sources-folder load-tests --simulation ecommerce5. AI Multi-Agent Pipeline & MCP Server
# Run the autonomous Jira-to-Test agent pipeline
npx ts-node agents/pipeline.ts --issue PROJ-123
# Start the MCP Tool Server for AI assistants
npm run mcp:startโฟ Accessibility Testing (WCAG 2.1 AA)
The framework includes a purpose-built A11yAuditor engine (utils/A11yAuditor.ts) powered by Axe-Core for automated WCAG 2.1 AA compliance:
Capability | WCAG Standard | Implementation |
Full Page Auditing | WCAG 2.0/2.1 Level A & AA, Section 508 | Tag-based Axe-Core rulesets with severity gating |
Keyboard Navigation | WCAG 2.1.1 & 2.4.7 | Sequential Tab focus order assertions |
Color Contrast | WCAG 1.4.3 | โฅ 4.5:1 ratio enforcement for normal text |
Touch Target Size | WCAG 2.5.5 / 2.5.8 | โฅ 48ร48px bounding box validation |
Component Scoping | โ | Isolate modals/dialogs, exclude third-party ad widgets |
Severity Quality Gate | โ | CI build fails on |
# Run Accessibility tests
npx playwright test tests/ui/accessibility.spec.ts๐ง Vector Database, Embeddings & NL-to-SQL (RAG)
The platform includes a Vector Store (agents/vector/VectorStore.ts) and NL-to-SQL Agent (agents/sql/NlToSqlAgent.ts) for AI-powered schema retrieval and natural language query generation:
graph LR
NL["Natural Language Assertion"] --> EMB["Embedding Vector"]
EMB --> VDB[("Vector Store / pgvector")]
VDB --> SIM["Cosine Similarity Search"]
SIM --> RAG["Top-K Schema Retrieval (RAG)"]
RAG --> SQL["Safe Parameterized SQL"]
SQL --> GUARD["SQL Injection Guardrails"]Capability | What It Does |
Embedding Generation | Converts text into high-dimensional normalized vectors using character n-gram frequency hashing |
Cosine Similarity Search | k-NN semantic search for retrieving the most relevant schemas |
Schema RAG (Retrieval-Augmented Generation) | Indexes table schemas into vector store; retrieves only relevant tables for SQL generation |
NL-to-SQL Translation | Translates natural language requirements into verified SQL queries |
SQL Safety Guardrails | Rejects destructive DDL/DML ( |
Test Deduplication | Identifies semantically duplicate test cases via similarity thresholds |
Self-Healing Locators | Matches broken CSS/XPath selectors to new DOM elements by semantic meaning |
# Run Vector DB & NL-to-SQL tests
npx playwright test tests/ai/nl-to-sql-vector.spec.ts๐ Reports & CI/CD Pipelines
Dual CI/CD Integration:
GitHub Actions: Automated regression on every push/PR with instant artifact publishing (Node.js 22 LTS, 2 parallel CI workers,
npm ci).GitLab CI: Fully configured
.gitlab-ci.ymlmulti-stage pipeline (Build โ Test โ Performance).
Interactive Live Reporting:
View real-time test execution graphs, metrics, and video traces at https://abhirise1981.github.io/ai-test-automation-platform/.
Local Report Viewer:
npx playwright show-report # or Monocart Executive Dashboard: npx monocart show-report test-results/report.html
๐ License
Distributed under the MIT License. Developed for enterprise-grade test automation and architectural evaluations.