BMAD Method for QA

The Testing Academy · BMAD Method · QA Automation

BMAD Method lessons for QA.

Every module from the course overview, expanded into a practical lesson with a QA rule, implementation steps, deterministic verification, guardrails, and a drill.

Part 1 · 4 lessons Part 2 · 4 lessons Part 3 · 4 lessons

Part 1 · Foundations

Map the Method to QA Work

Understand lifecycle artifacts, installation, handoffs, and the difference between fast built-in E2E generation and enterprise test architecture.

1.1

Lifecycle, Agents, Workflows, and Artifacts

BMAD organizes work through specialized agents and named workflows. QA value comes from the artifact chain and review boundaries, not from agent role-play alone.

Treat each BMAD agent as a responsibility lens with a defined input and output. Product artifacts establish user and business intent. Architecture artifacts expose constraints and quality attributes. Stories make the work implementable. QA artifacts challenge risk, design coverage, and collect evidence.

The method helps keep context and sequence visible, but generated handoffs can still drift. Put stable requirement, story, risk, and test IDs in artifacts. Review every transition against the owned source rather than trusting that two agents shared the same interpretation.

ArtifactPrimary questionQA challenge
Product requirementWhat value and behavior are needed?Are risks, boundaries, and acceptance observable?
ArchitectureHow will the system satisfy constraints?Are test seams and NFR evidence paths designed?
StoryWhat can be implemented now?Are acceptance criteria traceable and independently testable?
Test designWhat evidence addresses which risk?Does priority match impact and likelihood?
GateIs the release evidence sufficient?Who owns residual risk and exceptions?
An agent title is not segregation of duties

If one model generated the requirement, test, review, and gate recommendation from the same context, add independent evidence and accountable human review.

QA drill

Draw the artifact chain for one current epic. Name the owner, stable ID, verifier, and approval point at every handoff.

1.2

Install BMAD V6 and Inspect the Workspace

Install the current method in a disposable repository, review generated content before committing it, and record the exact version used for training.

The current BMAD repository documents Node.js 20.12 or newer, Python 3.10 or newer, and uv as prerequisites. Run the installer from the target project, choose only the modules your engagement needs, and inspect every generated file before adding it to source control.

Agent commands and host integrations can evolve. Use the generated help and official documentation for the installed version instead of copying an old slash-command list. The course names workflows by their documented purpose so the operating model survives UI changes.

BMAD V6 setup
node --version
python3 --version
uv --version

mkdir bmad-qa-capstone
cd bmad-qa-capstone
git init
npx bmad-method install

git status --short
git diff --no-index /dev/null <generated-file-to-review>

Installation review

  • Record the installer and module versions.
  • Review generated agent, workflow, template, and configuration files.
  • Keep credentials and production environment values outside generated content.
  • Commit a clean baseline before running the first workflow.
  • Document how another learner can uninstall or restore the exercise.
Install is code execution

Review package provenance and run the installer in a disposable repository. Do not execute a copied installer command with production credentials loaded.

QA drill

Install BMAD in a new training repository, inventory every generated directory, and explain which files control workflows versus store project artifacts.

1.3

Requirements, Architecture, Stories, and QA Handoffs

A QA handoff is complete when intent, design constraints, acceptance, data, observability, and ownership survive the transition into executable work.

Use IDs across the product requirement, architecture decision, story acceptance criteria, risk item, and test. The ID is a navigation aid; reviewers must still confirm that meaning remains consistent. A story can quote a requirement while accidentally narrowing its boundary or removing an NFR.

For login lockout, architecture must expose a controllable clock, account-isolated state, public response, and audit event. The story must name threshold and recovery boundaries. QA should reject a handoff that can only be verified through private implementation fields or a manual screenshot.

handoff manifest
{
  "epic": "AUTH-E01",
  "story": "AUTH-S04",
  "requirements": ["AUTH-LOCK-01", "AUTH-LOCK-02", "AUTH-LOCK-03"],
  "architecture": ["ADR-017"],
  "risks": ["SEC-P0-03", "REL-P1-02"],
  "evidenceOwners": {
    "functional": "SDET",
    "security": "Security reviewer",
    "release": "QA lead"
  }
}
Handoff checkEvidence
Intent preservedRequirement IDs and unchanged measurable outcomes
Design testableClock, state, audit, and API seams
Story boundedExplicit included/excluded behavior
Data safeSynthetic accounts and reset strategy
Ownership clearNamed ambiguity, NFR, and release owners
Ambiguity is an artifact

Record an unresolved decision with owner and deadline. Do not let an agent silently choose a policy value so the workflow can continue.

QA drill

Audit one story against its parent requirement and architecture. File every lost boundary, NFR, or ownership decision as an explicit handoff gap.

1.4

Built-In QA Versus Test Architect Enterprise

BMAD offers a fast built-in E2E generation workflow and a deeper Test Architect Enterprise module. Choose by risk and evidence needs, not by novelty.

The built-in bmad-qa-generate-e2e-tests workflow detects the framework, identifies features, creates API and E2E tests, then runs and verifies them. It is useful for standard coverage with established requirements and architecture.

TEA adds a test-architecture operating model: risk-based test design, framework and CI setup, ATDD, automation, quality review, NFR evidence, traceability, and gate decisions. Use it when criticality, scale, compliance, brownfield uncertainty, or release governance needs more than generated E2E tests.

NeedBuilt-in QATEA
Generate standard API/E2E coverageStrong fitPossible but heavier
P0-P3 risk prioritizationManual additionCore workflow
Framework and CI architectureAssumes or detectsExplicit design and setup
ATDD before implementationNot the main pathCore workflow
NFR audit and release gateOutside fast pathCore workflow

TEA's named workflows

  • Teach Me Testing, Test Design, Test Framework, and CI Setup.
  • ATDD, Test Automation, and Test Review with a 0-100 quality score.
  • NFR Evidence Audit and Traceability with a gate recommendation.
More workflow is not automatically more quality

Choose the lightest engagement that addresses the actual risk. Heavy artifacts with no owner or evidence become ceremony.

QA drill

Classify one project as built-in QA, TEA Lite, or integrated TEA. Name the specific risks that justify each workflow you include.

Part 2 · Test architecture

Design a Risk-Based Test System

Prioritize P0-P3 evidence, establish framework and CI foundations, write ATDD first, and review automation quality before scaling suites.

2.1

P0-P3 Risk Assessment and Test Design

TEA test design allocates evidence according to business impact and likelihood. Priority controls depth and timing; it does not promise zero risk.

Build a risk register with a stable ID, impacted quality attribute, likelihood, impact, detection difficulty, owner, mitigation, and required evidence. Assign P0 to release-critical paths that need the earliest and strongest coverage; use P1-P3 for progressively lower urgency based on the project's agreed model.

Test at the lowest layer that can provide a trustworthy oracle, then add cross-layer evidence for critical journeys. A P0 lockout rule may need model/unit boundary tests, API properties, E2E privacy checks, security review, and observability evidence. It does not need every permutation at the slowest UI layer.

RiskPriorityEvidence strategyOwner
Account takeover after threshold bypassP0Model + API property + E2E critical path + security reviewSecurity + QA
Counter shared across accountsP0API concurrency and property testsBackend + SDET
Generic message regressesP1API contract plus known/unknown E2E comparisonQA
Audit event field missingP1Event contract and observability checkPlatform + QA
Cosmetic timer textP3Targeted component checkFrontend

Design output

  • Risk register with rationale and owners.
  • Coverage map by level, environment, and data need.
  • Entry and exit criteria for critical evidence.
  • Known gaps, accepted residual risk, and review date.
Priority needs accountable input

An agent can suggest failure modes. Product, security, architecture, and QA owners approve impact, likelihood, and release consequence.

QA drill

Score five risks for a login epic, assign P0-P3, and justify the minimum evidence set at each test layer without duplicating every case in E2E.

2.2

Test Framework and CI Setup

A test framework is a product with contracts for identity, fixtures, data, isolation, reporting, retries, and CI execution.

Use the TEA Test Framework workflow to establish the repository structure and conventions before multiplying tests. Define stable test identity, environment configuration, synthetic data factories, clock control, cleanup, reporter outputs, and secret handling. Prove the framework with a small vertical slice.

CI Setup should separate fast pull-request gates from scheduled or environment-heavy suites. Preserve reports and traces with the commit SHA. Make retries visible and diagnostic; do not let a retry convert an unstable critical test into an unqualified green gate.

framework acceptance commands
npm ci
npm run lint
npx tsc --noEmit
npx playwright test tests/auth/lockout.api.spec.ts --project=api
npx playwright test tests/auth/lockout.e2e.spec.ts --project=chromium
npx playwright show-report
CI lanePurposePolicy
Pull requestFast deterministic protectionP0/P1 focused tests, lint, typecheck, trace check
MergeBroader integration confidenceRelevant regression and contract tests
NightlyCross-browser, long, data, and resilienceFlake tracked; failures owned by morning
ReleaseEnvironment and NFR evidenceImmutable artifacts and gate review
No shared-state lottery

A framework that passes only in serial against one long-lived account is not ready to scale. Prove isolation and parallel behavior explicitly.

QA drill

Define a framework contract and CI lane table for your project. Demonstrate one clean-checkout run and one parallel run with isolated synthetic data.

2.3

ATDD Before Implementation

ATDD turns accepted behavior and risk into executable examples before code, giving implementation a visible target and QA a preserved red-to-green proof.

Use the TEA ATDD workflow after requirements and test design are reviewed. Select P0 and P1 acceptance behavior, create failing tests or executable examples, and confirm the failure is for the intended missing behavior. Avoid asserting private implementation details that lock the design unnecessarily.

The implementation team and QA review examples together. Data, clock, and state setup belong in the test harness. A failing ATDD test is valuable only when it distinguishes the absent behavior from environment or fixture defects.

ATDD example
test("AUTH-LOCK-01 rejects the sixth attempt during lock", async ({ request }) => {
  const account = await createSyntheticAccount();
  await failPassword(request, account, 5);

  const response = await attemptLogin(request, account, account.validPassword);

  expect(response.status()).toBe(401);
  expect(await response.json()).toMatchObject({
    message: "Invalid email or password",
  });
  expect(await readSession(account)).toBeNull();
});
  1. Link the example to requirement and risk IDs.
  2. Run it against the pre-implementation baseline and classify the failure.
  3. Freeze data and time dependencies so red is reproducible.
  4. Protect the observable assertions during implementation.
  5. Preserve baseline and accepted reports with their commits.
Red must mean the intended behavior is missing

A syntax error, unavailable environment, or broken fixture is not valid ATDD evidence. Fix the harness before implementation begins.

QA drill

Write one P0 acceptance test before implementation. Prove it fails for the intended reason and identify which assertion must remain protected.

2.4

Test Automation and 0-100 Review

TEA separates creating automation from reviewing its quality. The review score organizes findings; it does not replace judgment or release gates.

Use Test Automation to expand approved design and ATDD coverage with framework conventions, stable data, and the right test layer. Then use Test Review to evaluate readability, isolation, determinism, assertions, maintainability, performance, and risk coverage on a 0-100 scale.

Inspect the actual code and execution evidence. A high score cannot excuse a missing P0 requirement, leaked credential, disabled assertion, or nonreproducible environment. Record blockers separately from weighted quality observations.

Review dimensionEvidenceBlocker example
TraceabilityRequirement/risk annotations and matrixP0 risk has no executable evidence
DeterminismRepeat/parallel results and controlled clockFixed sleeps mask race
IsolationIndependent data setup and cleanupShared account makes ordering mandatory
AssertionsBusiness outcome and negative stateTest only checks HTTP 200
MaintainabilityClear helpers and failure messagesAbstraction hides all observable intent
review record
qualityScore: 84
blockers:
  - "SEC-P0-03 has no cross-account isolation property test"
findings:
  - id: QA-REV-12
    severity: high
    path: tests/auth/lockout.e2e.spec.ts
    issue: "Global retry hides intermittent lock-state race"
decision: "Revise before trace gate"
Score trends are more useful than score theater

Use the same rubric over time and inspect the findings behind movement. Never lower a rubric just to reach a target number.

QA drill

Review a small suite with a written rubric. Produce a score, blocker list, evidence links, and a revise/pass recommendation that another SDET can challenge.

Part 3 · Governance

Make Release Evidence Defensible

Audit NFRs, trace critical requirements to evidence, choose the right engagement model, and issue an explicit gate recommendation with residual risk.

3.1

NFR Evidence for Performance, Security, and Reliability

NFR claims need thresholds, environments, methods, raw evidence, owners, and limits. A functional green suite cannot imply nonfunctional readiness.

Use the TEA NFR Evidence Audit to inventory required quality attributes and the evidence that supports each. For authentication, include brute-force protection, response privacy, audit completeness, latency under attack-shaped load, recovery, and counter consistency across replicas.

Record environment parity, data volume, tool versions, configuration, time window, raw artifact location, and known blind spots. Mark a claim unsupported when evidence is absent or stale. Do not generate a confident narrative to fill the gap.

NFRThreshold or claimEvidenceLimit
SecurityNo session during lockAPI property + security reviewSynthetic identities only
PrivacyKnown/unknown responses indistinguishableContract and E2E comparisonDoes not assess timing side channel
Performancep95 auth response under agreed budgetVersioned load reportStaging topology differs
ReliabilityCounter survives process restartRestart and persistence scenarioSingle-region exercise
ObservabilityEvery transition emits audit eventEvent contract and sample traceRetention not tested
Unknown is an acceptable audit result

Label missing or nonrepresentative evidence as a gap. Fabricated precision is more dangerous than an explicit concern.

QA drill

Create an NFR evidence table for one critical feature. For each claim, add environment, owner, artifact, age, and one limitation.

3.2

Traceability and PASS, CONCERNS, FAIL, or WAIVED Gates

The TEA trace workflow connects requirements and risks to tests and evidence, then produces an explicit gate recommendation with accountable exceptions.

Build the matrix from stable IDs and current evidence. For every P0/P1 item, show the test level, latest result, environment, report, unresolved defect, and owner. Evaluate both coverage completeness and evidence quality; a linked test that never ran is not covered for release.

Use PASS when required evidence satisfies the agreed gate with no blocking gaps. Use CONCERNS when residual issues are visible but not automatically blocking. Use FAIL for unmet blocking criteria. Use WAIVED only when an authorized owner accepts a specific exception with scope and expiry.

GateMeaningRequired record
PASSDeclared criteria metEvidence set, reviewer, commit, environment
CONCERNSResidual risk needs decision or monitoringRisk, impact, owner, mitigation, review date
FAILBlocking criterion unmetFailed criterion, evidence, owner, retest plan
WAIVEDAuthorized exception acceptedApprover, scope, reason, controls, expiry
gate recommendation
gate: CONCERNS
commit: <git-sha>
environment: staging-2026-07-15
coveredP0: 4/4
coveredP1: 6/7
residualRisk:
  id: REL-P1-02
  gap: "Multi-region counter consistency not exercised"
  mitigation: "Single-region release plus metric alert"
  owner: "Platform lead"
  reviewBy: "2026-07-22"
decisionOwner: "QA lead"
A waiver is not a hidden pass

Keep waived criteria visible in release notes and future gates until the exception expires or the evidence closes it.

QA drill

Produce a trace matrix for three critical risks and issue one gate outcome. Make every concern, failure, or waiver actionable and owned.

3.3

Greenfield, Brownfield, and TEA Lite Engagements

TEA supports different engagement depths. Match the workflow to lifecycle timing, existing debt, regulatory needs, and team capacity.

Greenfield work can design testability, ATDD, framework, and CI before implementation scales. Brownfield work begins with discovery: current architecture, flaky suites, data dependencies, incident history, and missing traceability. TEA Lite applies focused risk design and gates without adopting every workflow.

A standalone engagement can audit or improve a specific area. An integrated engagement keeps test architecture connected throughout product and delivery work. Enterprise adoption adds governance and reuse, but should not force every low-risk change through the same artifact depth.

ModelUse whenStart with
No TEALow risk, mature standards, simple changeBuilt-in QA or normal team workflow
StandaloneTargeted audit or framework needDefined scope, evidence, and exit
TEA LiteModerate risk or limited capacityRisk design, critical ATDD, trace gate
Integrated greenfieldNew critical systemSystem design, framework, CI, then epic cycles
Integrated brownfieldLegacy critical systemDiscovery, characterization, debt/risk map
EnterpriseMultiple teams need governanceShared standards with local risk tailoring
Brownfield truth comes before transformation

Preserve current behavior with characterization tests and production evidence before agents rewrite architecture or suites.

Do not optimize for workflow count

Choose only the artifacts and gates that change a risk decision, improve evidence, or enable reproducible engineering work.

QA drill

Select an engagement model for one project. List the workflows you will use, the risks each addresses, and the ceremonies you intentionally omit.

3.4

Capstone: Carry One Login Epic Through TEA

Complete a compact TEA lifecycle for a synthetic login and lockout epic, ending with reproducible evidence and an explicit gate decision.

The capstone covers valid login, generic invalid-credential handling, account-isolated lockout after five failures, recovery after fifteen minutes, and audit events. Product and security owners approve policy values before test design. The environment exposes a frozen clock and synthetic reset path.

Use TEA Lite depth but execute every selected workflow honestly: test design, framework/CI check, ATDD, automation, review, NFR audit, and trace gate. Preserve artifacts with stable IDs and the commit that produced the reports.

capstone evidence tree
docs/qa/auth-lockout/
  risk-register.md
  test-design.md
  atdd-baseline.md
  automation-review.md
  nfr-evidence.md
  traceability.csv
  gate-decision.md
tests/auth/
  login.api.spec.ts
  lockout.property.spec.ts
  lockout.e2e.spec.ts
artifacts/auth-lockout/<commit-sha>/

Exit criteria

  1. All P0 risks have owned, current, reproducible evidence.
  2. ATDD baseline proves the critical test detected missing behavior.
  3. Automation review has no unresolved blocker and documents its score.
  4. NFR audit labels every claim supported, limited, or missing.
  5. Traceability identifies current reports, environment, defects, and owners.
  6. The gate is PASS, CONCERNS, FAIL, or WAIVED with a named decision owner.
The capstone never touches production

Use synthetic accounts and a local or isolated target. Production evidence can inform a real engagement only through approved, sanitized observability channels.

QA drill

Submit the complete artifact and evidence tree. Have another SDET reproduce one P0 result and challenge the gate outcome before sign-off.

Primary sources · reviewed July 2026

Verify the product before you trust the pattern.

These links support the product-specific behavior taught above. Recheck them before adopting the workflow in a regulated or high-impact environment.

Primary sourceWhat it supports
BMAD Method RepositoryCurrent V6 source, installation, prerequisites, and project structure.
BMAD DocumentationOfficial method concepts and workflow guidance.
BMAD Testing ReferenceBuilt-in QA workflow, TEA distinction, patterns, and decision guidance.
Test Architect EnterpriseCurrent TEA module source and workflow definitions.
TEA DocumentationTEA lifecycle, workflows, engagement models, and quality gates.