# Testing Automation Mcp

> Autonomous E2E testing using Playwright Model Context Protocol (MCP).

Autonomous E2E testing using Playwright Model Context Protocol (MCP).

- Page: https://ss33.ai/skills/dokhacgiakhoa/testing-automation-mcp-80455848070
- Publisher: dokhacgiakhoa
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Testing & QA](https://ss33.ai/skills/category/software-development-t44z8z/testing-and-qa-g56s6z)
- License: MIT
- Source: https://github.com/dokhacgiakhoa/agent-skills-4-vibe-coding-cli/blob/c4a059bbf7a8d6b2162071f0fbfe74053faa6d20/.agent/skills/testing-automation-mcp/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/dokhacgiakhoa/testing-automation-mcp-80455848070

# 🧪 Testing Automation MCP

This skill empowers AI Agents to **autonomously write, execute, and debug E2E tests** using the official Playwright MCP Server. It transforms passive testing into an active, agentic workflow.

---

## 🚀 Capabilities

1.  **Browser Control**: Navigate URLs, click elements, fill forms, and handle dialogs via MCP.
2.  **Visual Verification**: Capture screenshots and trace files for debugging.
3.  **Self-Healing**: Analyze failure logs and rewrite selector logic automatically.
4.  **Cross-Browser**: Execute tests on Chromium, Firefox, and WebKit.

---

## 🛠️ MCP Toolset (Playwright)

| Tool | Description | Usage |
| :--- | :--- | :--- |
| `playwright_navigate` | Go to a specific URL. | `{"url": "http://localhost:3000"}` |
| `playwright_click` | Click an element by selector. | `{"selector": "button[type='submit']"}` |
| `playwright_fill` | Fill input fields. | `{"selector": "#email", "value": "test@example.com"}` |
| `playwright_screenshot` | Take a screenshot of the viewport. | `{"path": "debug/error.png"}` |
| `playwright_evaluate` | Run custom JS in the browser. | `{"script": "return document.title"}` |

---

## ♟️ Strategic Patterns

## 🧠 Knowledge Modules (Fractal Skills)

### 1. [1. The "Observer" Pattern (Test Creation)](./sub-skills/1-the-observer-pattern-test-creation.md)
### 2. [2. The "Healer" Pattern (Test Recovery)](./sub-skills/2-the-healer-pattern-test-recovery.md)
### 3. [3. The "Simulator" Pattern (User Journey)](./sub-skills/3-the-simulator-pattern-user-journey.md)
