Architecture reference

TestRobin is an AI test-execution engine for UI and API testing — you write a test in plain English, and an autonomous agent drives a real browser based on vision only or executes the API test. After execution, it produces a step-by-step evidence report as a PDF.

Where we are. Live and operational: try it at testrobin.ai/demo

Launch TestRobin →

Grounding — the agent locates by sight, through a grid

The agent works from the rendered screenshot — the same pixels a human sees — and locates elements by sight, not by CSS/XPath selectors, IDs or DOM queries. Targeting is done by looking. The architectural payoff is durability: a refactor that renames a class, reshuffles the markup or swaps a component framework is far less likely to break the test, because the test was never bound to the markup in the first place.

Locating happens on a two-level grid. A continuous grid is drawn over the screenshot and the model names the cell — the column from the header tile, the row from the row tile; then a finer grid is drawn over just that cell and the model picks the precise spot. The hardest case — a dense matrix form (a severity×likelihood grid of checkboxes, columns scrolled off the top) — is exactly the one this method is built to nail; it is the signature capability.

Authoring & execution — plain English, compiled, then a two-phase loop

Tests are written in plain English. A compiler turns those natural-language steps into structured, executable steps. Steps name a value and a target semantically — “Click Rarely for the BCCA question” — never an ordinal position (“the third checkbox”), so a test survives columns being added or reordered.

The agent then runs each step in a two-phase loop: ACT (ground the target, then click / type / select) followed by VERIFY (confirm the page actually changed the way the step intended). It does not advance on an unverified step — a step that didn’t take effect is a failed step, not a silently-skipped one.

API testing

AI API tests are written the same way as UI tests: a test case in plain language says what to call and what to expect. The AI agent executes each step and checks the result. Every step is recorded as it runs, and each run produces a step-by-step evidence report.

Execution model — headless by default, your browser optionally

By default the agent drives a server-side headless Chromium — no setup, runs anywhere. Optionally it can drive the user’s own browser through a Chrome extension, for flows that need an already-authenticated session. A run is a long-lived background task streamed live to the dashboard, so you watch it execute step by step instead of waiting for a verdict at the end.

State — runs and evidence are persisted

A run streams from memory while it executes and is written through to a relational store (PostgreSQL): runs, steps, traces and the evidence record. A finished run’s evidence is durable and re-openable — the live view and the permanent record are the same data, captured once.

AI agents: MCP and A2A

AI agents can use TestRobin in two ways. An AI assistant such as Claude uses it as a tool through the Model Context Protocol (MCP): run_test takes a test in plain English, one action or check per line, and runs it in TestRobin’s own browser in the cloud; get_test_result returns each step’s verdict with TestRobin’s observation and, once the test has finished, the address of its PDF evidence report.

Another agent can hand TestRobin a whole test as a task through A2A (Agent2Agent). TestRobin’s agent card describes its one skill, running a UI test written in plain English, and how to call it. TestRobin answers with a task, works on it on its own, and the task ends completed, with the step results and the report as its output; failed, if the test could not run; or canceled by the caller. A test is a long-running job, which is what A2A’s tasks are for: a release agent, for example, hands TestRobin a check after a deploy and reads the evidence back.

Both ways in use the same engine as the headless runs above, one test at a time.

MCP

  • For AI assistants
  • TestRobin is a tool
  • The caller stays in charge
  • Start the test, then read its result

A2A

  • For other agents
  • TestRobin is an agent
  • It takes the whole test as a task and works on it on its own
  • It is found through its agent card
  • The task is working, then completed, failed or canceled

An A2A task

Release agent TestRobin 1  reads the agent card 2  sends the test 3  task: working 4  TestRobin runs it in its browser 5  asks for the task 6  task: completed with the step results and the PDF report

Security. Who can call: holders of TestRobin’s private MCP address or of its A2A key; changing either cuts off every old copy. What they can do: start, follow and cancel tests, and nothing else. The tests run only in TestRobin’s own browser, on public pages (internal, private and cloud-metadata addresses are blocked), one at a time, with no access to TestRobin’s other data. Prompt injection: the page under test is untrusted input; TestRobin’s browser carries nobody’s login session, and callers should treat the results as data, not instructions. Where data goes: screenshots stay in TestRobin, in the PDF report, and are seen by the vision model that reads each step; only short text and the report’s address go back to the caller.

Implementation details

These are the concrete bindings of the architecture above — the hosting, browser, intelligence and packaging. They are swappable implementation choices, not the architecture.

HostingAWS — a managed serverless container (ECS Fargate, ARM/Graviton) behind an application load balancer
BrowserHeadless Chromium via Playwright
IntelligenceModel-agnostic inference that can run on confidential AI — an external HTTPS call, no model weights in the engine
DataManaged PostgreSQL for runs, traces and evidence

Detailed TestRobin topology

User browser-side
User Browserdashboard
Test Dashboard
Browser Extension
AI agents
AI assistant (e.g. Claude)MCP: tools
Other agentsA2A: tasks
↓ HTTPS
AWS edge · ingress
Route 53DNS resolution
CloudFront
caching
AWS WAFattack traffic
AWS ShieldDDoS protection
ALB
TLS termination
↓
TestRobinon AWS Fargate (ARM)
Backend services
Auth · JWTlogin
FastAPI Backend
MCP server
Streamable HTTP
tools run_test, get_test_result
private address
A2A agent
public agent card
tasks over JSON-RPC (A2A 1.0)
key required
↓
↓
Agent runnerone test at a time
↓ drives
Execution loop · the centerpiece
Agent · vision grounding
AI Agent
vision only · no DOM/selectors
→
Test Report
Act → ← Verify
Headless Browser
Playwright · drives by sight
Act — click / type into the page · Verify — fresh screenshot — no step advances until verified.
Build & Ops
ECRimages
IAMaccess
CloudWatch
→
Step results as text
to the caller
→
PDF Test Evidence Report
SHA-256 · ALCOA+
↔
Target Web App
driven by sight
↓
↓
State
PostgreSQLruns · steps
Trace storeJSONL · PDF