All projectsCase Study 03 / 10
03·AI Agent·Web · Developer Tool·2026

Autonomous QA Application (QA Agent Lab)

An AI-assisted browser testing system using MCP and Playwright that observes live browser state, discovers flows, generates and executes Playwright specifications, and streams run progress over Server-Sent Events.

QA Agent Lab authentication scenario and sandbox boundaries
01 · Problem & Context

What the system needed to solve

Manual flow discovery and end-to-end test authoring slow down engineering teams, while unconstrained browser agents lack execution bounds, path safety, and inspectable failure traces.

02 · Ownership & Architecture

What I engineered and owned

Built the MCP agent loop, Playwright browser instrumentation, test code generation and execution runner, real-time SSE telemetry stream, seeded-defect challenges, and sandbox safety controls.

System Architecture Flow
01

The orchestrator exposes live DOM state and bounded browser actions to GPT-4o through Model Context Protocol (MCP).

02

The agent explores the target sandbox, identifies user journeys, and synthesizes executable Playwright test suites.

03

A guarded runner executes generated specs with a 60-second tool timeout, 5-minute suite cap, and URL/path allowlists.

04

Server-Sent Events (SSE) stream live step progress, screenshots, traces, and assertion verdicts to the Next.js console.

03 · Measured Outcome & Highlights

Production impact & verification

  • MCP-driven autonomous browser exploration and flow discovery
  • Generates and executes real Playwright test specifications
  • Live Server-Sent Events (SSE) execution telemetry and trace artifacts
  • Strict URL/path safety controls and bounded tool execution timeouts

EXECUTION WALKTHROUGH

A test is only useful when its result is visible.

QA Agent Lab public authentication scenario interface
  1. GoalVerify a valid user reaches the operations dashboard.
  2. Browser actionsInspect the fixed sandbox, interact with its form, and check navigation.
  3. Test artifactGenerate and execute a Playwright specification.
  4. ResultExpose the trace and assertions through the interface.

Live public demo

Inspect two recorded journeys, their expected and observed outcomes, repeat runs, and seeded defects. The sample uses saved evidence and does not browse arbitrary sites.

Local runner controls

The local agent is capped at 12 model turns, 24 tool calls and a three-minute run deadline. Generated proposals require review and are not executed automatically. Browser origin checks do not replace OS isolation.

Next Case Study
Multi-Agent Research Automation — n8n & FastAPI Systems Orchestration
›