Skip to main content
Enterprise Test Automation

TAFLEX JS

Unified Test Automation Framework for Web, API & Mobile

A modern, enterprise-grade framework powered by Node.js (ESM), the Strategy Pattern, and externalized configuration — delivering unified test orchestration across every platform with zero code changes.

Multi-Platform Coverage

Test across every platform channel in a single unified framework

WEB

Web Testing (Playwright)

Playwright-powered browser automation with externalized locators, auto-wait strategies, and cross-browser support out of the box.

API

API Testing (Dual Strategy)

Powerful API support using Playwright (Hybrid) for E2E flows and Axios (Specialized) with Vitest for high-speed standalone contract testing.

MOBILE

Mobile Testing (WDIO)

Native and hybrid mobile testing via WebdriverIO with shared locator management, parallel execution, and unified driver interface.

CLOUD

Cloud Grids Support

Native integration with BrowserStack and SauceLabs to execute tests across thousands of real devices and browser combinations.

AI-AGENT

Autonomous AI Ready

Native MCP (Model Context Protocol) server allows AI agents to run tests, inspect locators, and debug failures autonomously.

DATA

Database Integration

Native Postgres and MySQL support for test data setup, validation, and teardown — fully integrated into the test lifecycle.

NEXT GENERATION

Autonomous AI Integration

TAFLEX JS is the first enterprise framework with native Model Context Protocol (MCP) support. Bridge the gap between your test automation and AI agents like Claude Desktop or IDE assistants.

Self-Healing DiscoveryAgents can inspect locators to identify and propose fixes for broken selectors.
Autonomous ExecutionAI can trigger specific tests and analyze results without human intervention.
Context-Aware DebuggingGive your agent the "eyes" to see your reports and the "hands" to run your tests.

Strategy-Driven Architecture

Clean separation of concerns with runtime driver resolution

Layer 4 — Test Definition
Playwright Test · Test Specs · Assertions · Allure
Layer 3 — Configuration
JSON Locators · Zod Environment · Driver Factory
Layer 2 — Strategy Core
AutomationDriver Interface · Strategy Implementation · Context Manager
Layer 1 — Platform Adapters
Playwright (Web/API) · Axios (API) · WebdriverIO (Mobile) · PG/MySQL (DB)

Built for Enterprise

Production-grade capabilities for mission-critical test automation

🤖

AI-Agent Integration (MCP)

Expose your test suite as an MCP server. Connect to Claude Desktop or IDE agents to transform your tests into an active AI service.

🤝

Pact Contract Testing

First-class support for Consumer-Driven Contracts. Catch breaking API changes early and ensure microservices compatibility at scale.

🧩

Strategy Pattern Architecture

Runtime driver resolution lets you switch between Web, API, and Mobile contexts. Native BDD support via Gherkin for human-readable specifications.

📄

Externalized Locators

All selectors stored in JSON files with Global -> Mode -> Page inheritance. Change locators without touching a single test file.

Fast Execution

Built on top of Playwright and Node.js for maximum performance and reliability on CI/CD pipelines and local development.

📊

Reporting Governance

Native Allure, ReportPortal, and Xray integration with detailed traces and videos for enterprise-level visibility and Jira traceability.

🛡️

Type-Safe Configuration

Environment validation using Zod ensures your framework is always correctly configured before tests even start.

Technology Stack

Modern, battle-tested libraries for enterprise reliability

Node.jsRuntime (ESM)
MCPAI-Agent Protocol
PlaywrightWeb & Hybrid API
AxiosSpecialized API
WebdriverIOMobile
VitestUnit Testing
PactContract Testing
GherkinBDD Specifications
ZodValidation
AllureReporting
ReportPortalEnterprise Reporting
XrayJira Governance
BrowserStackCloud Execution
SauceLabsCloud Execution
ESLintLinting
PrettierFormatting

Quick Start

Up and running in under a minute

# Clone the repository
git clone https://github.com/vinipx/taflex-js.git
cd taflex-js

# Install dependencies
npm install

# Run all tests
npm test

# Run unit tests
npm run test:unit