Leanpub Header

Skip to main content

Agentic QA

Building a Multi-Agent Testing Team with LLMs, Playwright and MCP

Agentic QA
This book is 71% completeLast updated on 2026-10-25

Go from “AI as a copilot” to a team of AI testing agents that analyze, design, run, triage and review tests, with a human test lead making the decisions. Hands-on, in TypeScript, and vendor-agnostic: Claude, GPT, Gemini or a local model, with tools shared through MCP.

Minimum price

$9.99

$19.99

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
About

About

About the Book

Go from “AI as a copilot” to a team of AI testing agents running in your pipeline — with evidence you can trust.

Most books on testing with generative AI stop at one human chatting with one assistant. Agentic QA starts where they end. Chapter by chapter, you build QA Crew: an Analyst that turns specs into risks, a Designer that writes test cases worth keeping, an Executor that writes and runs Playwright tests, a Triager that turns red builds into actionable bugs, and a Reviewer that checks their work, with a human test lead making the decisions.

Everything is TypeScript, vendor-agnostic and runnable. Agents switch between Claude, GPT, Gemini or a local model by changing configuration. Tools are exposed through MCP, so the same tools work for your agents and for Claude Code, Cursor, Copilot and Codex. And the book shows where QA plugs into today’s agentic workflows, Spec-Driven Development with Spec Kit and Organic Driven Development, with traceability from every requirement to its tests.

What's inside: Version 0.3

71% complete. Parts 1–3 are published; Part 4 is in progress. Buy once and get every update free.

PART 1 — FOUNDATIONS

1. From Copilot to Crew: Why Agentic QA (free sample): where agents help in testing, where they hurt, and your new role as test lead.

2. Anatomy of a QA Agent: a vendor-neutral agent loop with structured output and guardrails.

3. Tools and MCP: Giving Agents Hands: one MCP server of QA tools for your agents and your IDE. 4. Where QA Plugs into Agentic Development: SDD and ODD: traceability from every requirement to its tests.

PART 2 — BUILDING SINGLE QA AGENTS

5. The Analyst: From Requirements to Risks: a scored, grounded risk map you review.

6. The Designer: Test Cases You Would Actually Keep: classic test design techniques, curated in code.

7. The Executor: Agents That Write and Run Playwright Tests: quality gates and independent verification.

8. The Triager: From Red Build to Actionable Bug: classified failures and draft bug reports.

PART 3 — MULTI-AGENT ORCHESTRATION (NEW IN 0.3)

9. Orchestration Patterns for QA Teams: one crew run with approval gates, a token budget and a model per role.

10. The Reviewer: Agents That Check Agents: catches tests that pass for the wrong reason, with real calibration results.

11. QA Crew Inside Your IDE and Your Team: the whole crew in Claude Code, Cursor and Copilot, where decisions stay yours.

PART 4 — PRODUCTION AND TRUST (COMING NEXT)

12. Evaluating Your QA Agents: measure every agent, and compare models on real runs.

13. QA Crew in CI/CD: the crew in your pipeline, with retries, budgets and gates.

14. Testing Software That Has AI Inside: use the crew on a feature with an LLM in it.

Appendices: environment setup, mapping QA Crew to agent frameworks, and a prompt and rubric library.

Companion code: github.com/enriquedcs/qa-crew. Every chapter has a start and a done tag (ch01-start to ch11-done).

Found something unclear, wrong or missing? Use the feedback link. This book is written with its readers.

Author

About the Author

Enrique A. De Coss

Enrique A. De Coss is a Senior IT Leader in Quality Engineering with more than 20 years of experience building testing strategies and QA teams at companies such as Zurich Insurance, FICO, Kueski and Wizeline. He writes about the practical side of AI-assisted testing: what works, what breaks, and how to keep humans in charge.

Contents

Table of Contents

Preface

  1. Who this book is for
  2. What you will build
  3. How this book is organized
  4. How to use the code
  5. Part 1 — Foundations

From Copilot to Crew: Why Agentic QA

  1. Four ways to use AI in testing
  2. Where agents help today, and where they hurt
  3. You are the test lead now
  4. Meet QA Crew
  5. Setting up the companion project
  6. Summary

Anatomy of a QA Agent

  1. The five parts of an agent
  2. A vendor-neutral model layer
  3. The agent loop
  4. Structured output: results you can test
  5. Your first QA agent
  6. Testing the agent loop
  7. What you built
  8. Summary

Tools and MCP: Giving Agents Hands

  1. The problem with hand-written tools
  2. What MCP is
  3. Using an existing server: Playwright MCP
  4. Building qa-tools
  5. Connecting the agent to MCP
  6. One server, every assistant
  7. Tool safety
  8. Testing the tools
  9. What you built
  10. Summary

Where QA Plugs into Agentic Development: SDD and ODD

  1. Spec-Driven Development
  2. Organic Driven Development
  3. Choosing a workflow, and where QA fits
  4. One list of requirements
  5. The trace report
  6. What you built
  7. Summary
  8. Part 2 — Building Single QA Agents

The Analyst: From Requirements to Risks

  1. What the Analyst does, and what it does not
  2. Grounding: giving the Analyst a memory
  3. The risk map contract
  4. The Analyst’s instructions
  5. The model proposes, code checks, you decide
  6. Running the Analyst
  7. A real run
  8. Testing the Analyst
  9. What you built
  10. Summary

The Designer: Generating Test Cases You Would Actually Keep

  1. From risks to test cases
  2. Techniques as instructions
  3. Test data: ask code, not the model
  4. The test plan contract
  5. The Designer agent
  6. Curation: code keeps the plan honest
  7. Running the Designer
  8. A real run
  9. Testing the Designer
  10. What you built
  11. Summary

The Executor: Agents That Write and Run Playwright Tests

  1. Conventions first: fixtures and page objects
  2. Quality gates: rules a test must pass before it exists
  3. A sandbox for generated tests
  4. The Executor’s procedure
  5. Trust, but verify
  6. Running the Executor
  7. A real run
  8. Exploratory testing with a charter
  9. Testing the Executor
  10. The crew so far
  11. What you built
  12. Summary

The Triager: From Red Build to Actionable Bug

  1. Five answers to one question
  2. Evidence first: what code collects
  3. The tools: the tracker, history and what we know
  4. The Triager’s rules
  5. Guards: when the answer and the evidence disagree
  6. A red build to triage
  7. Triaging the Executor’s findings
  8. Testing the Triager
  9. What you built
  10. Summary
  11. Part 3 — Multi-Agent Orchestration

Orchestration Patterns for QA Teams

  1. Five ways to organize a crew
  2. A run, on disk
  3. The crew’s four stages
  4. Gates: where the human decides
  5. A budget for the whole run
  6. The right model for each role
  7. Running the crew
  8. When things go wrong
  9. Fan-out: should test cases run in parallel?
  10. Testing the orchestrator
  11. What you built
  12. Summary

The Reviewer: Agents That Check Agents

  1. What a reviewer is for
  2. The rubric
  3. Code first: facts and suspicions
  4. The Reviewer
  5. The evaluator loop
  6. The crew catches TC-05
  7. Who reviews the reviewer?
  8. What a reviewer costs
  9. Testing the Reviewer
  10. What you built
  11. Summary

QA Crew Inside Your IDE and Your Team

  1. Three kinds of tools
  2. Asking the person, not the assistant
  3. Long work behind a quick tool
  4. Files as resources, routines as prompts
  5. Setting it up
  6. A session in the editor
  7. The bug, filed
  8. The crew in your team
  9. Testing the crew server
  10. What you built
  11. Summary
  12. Part 4 — Production and Trust

Evaluating Your QA Agents

QA Crew in CI/CD

Testing Software That Has AI Inside

Appendix A — Setting Up Your Environment

Appendix B — Mapping QA Crew to Agent Frameworks

Appendix C — Prompt and Rubric Library

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub