AI-Enabled QA / Agentic Automation

Claude-Powered Agent Pipeline Turns User Stories into Self-Healing Playwright Tests

Healthcare compliance software provider

Healthcare Compliance (SaaS)Claude Sonnet 4.6Claude Opus 4.8
8specialized AI agents across the QA lifecycle
100%acceptance criteria traced to at least one test
3+ranked locator candidates per UI element
75–90%targeted reduction in regression cycle time (2–3 days → 2–4 hours)
40%targeted reduction in repetitive QA effort

At a glance

Client Healthcare compliance software provider
Use case Agentic test automation from user story to passing tests
AI used Claude Sonnet 4.6 for pipeline agents, Claude Opus 4.8 for exploratory QA, both run in GitHub Copilot agent mode with MCP (Azure DevOps and Playwright)
Result Targeted 75–90% shorter regression cycles (2–3 days down to 2–4 hours) and 40% less repetitive QA effort

The situation

The client's compliance web application changes every sprint. Writing and maintaining end-to-end Playwright tests by hand could not keep up. Locators broke after UI changes, it was hard to prove acceptance criteria were covered, and QA engineers spent their time fixing tests instead of finding defects.

The solution

SenecaGlobal designed eight Claude-powered agents, each defined as a version-controlled prompt file in the repository, that take an Azure DevOps user story through to passing Playwright tests.

The pipeline: Plan → Generate → Discover → Execute → Heal

  1. Plan: pulls the user story, acceptance criteria, and tasks from Azure DevOps through MCP, then creates a feature workspace with a shared plan.md and requirements.md.
  2. Generate: designs the test suite from requirements, API specs, and the application's Angular source. It writes a manual test suite, Playwright specs, Page Objects, and fixtures, then checks AC coverage and runs a type check.
  3. Discover: crawls the deployed Dev app and replaces placeholders with three or more locator candidates per element, ranked by reliability.
  4. Execute: runs the suite and sorts each failure into one type: locator, assertion, environment, or import.
  5. Heal: fixes locator and assertion failures, re-runs each fix, and escalates anything below 70% confidence or still failing after two attempts.

An orchestrator agent runs phases 2–5 in order. A standalone Healer checks the health of any existing suite, for example after a UI deployment. A Manual QA Tester agent on Claude Opus 4.8 does exploratory testing in a live browser through Playwright MCP. It switches between user personas and grades bugs from Critical to Low.

Built-in guardrails

  • Agents never delete or rename tests, and never change test tags
  • Credentials and URLs come only from environment configuration and are never hard-coded or printed
  • A fix is kept only after the test re-runs and passes, with at most two attempts before a person takes over
  • Environment, network, and auth failures are never patched in code; they always go to a person
  • Agents pass work through one shared plan file, so any phase can be resumed, re-run, or reviewed

Results

Targeted business outcomes

  • 75–90% shorter regression testing cycles: regression testing goes from 2–3 days of mostly manual effort to about 2–4 hours, because agents generate, run, and self-heal the Playwright tests
  • 40% less repetitive QA effort: much less manual regression execution and test maintenance, which frees QA capacity for higher-value testing
  • More focus on product quality: QA engineers spend more time on exploratory testing, usability, accessibility, performance, security, and other non-functional requirements

Engineering outcomes

  • Traceability: every acceptance criterion maps to at least one test case, checked automatically before generation is marked complete
  • Stable locators: each UI element gets three or more ranked selector candidates, taken from source code and the live DOM
  • Self-healing: locator and assertion failures are fixed and verified automatically, and unresolved cases come with an escalation report
  • Clear human checkpoints: a person supplies the deployed Dev URL and reviews escalations
Next step

Have a platform that needs the same care?

Talk to our experts