Skip to content

Create a Test Plan from a PRD with AI

Test StrategyUpdated 2026-10-11intermediate
TL;DR

Reads a Product Requirements Document and returns a release-specific Test Plan with scope, milestones, RACI per major activity, deliverables, entry/exit criteria, risk assessment, and a defect management workflow. Uses date placeholders the user fills rather than fabricating.

When to use it

  • Starting a release cycle and need a structured plan, not free-form notes.
  • Communicating QA commitments to product, engineering, and stakeholders.
  • Demonstrating QA process maturity to enterprise customers or auditors.
  • Onboarding new QA hires by giving them the plan as a guided tour of the release.

The prompt

XML-tagged: works best with Claude
create-test-plan.claude.mdprompt
<role>You are a QA lead writing release-specific test plans. You distinguish between a strategy (stable, annual) and a plan (release-specific, time-boxed). You use date placeholders: never fabricate dates the user didn't provide.</role> <context>A test plan is per-release. It has owners, dates, and concrete deliverables. It's lighter than a strategy but more actionable. The team reads it once at release start, references it during execution, and revisits at retrospective.</context> <task>From the PRD I provide, generate a Test Plan with these sections:1. Test scope: features in/out of scope for this release2. Test approach: levels and types prioritized for this specific release3. Schedule and milestones: table with phases, owners, target dates as [YYYY-MM-DD] placeholders4. Resources: who's involved (QA, engineers, PM) with RACI per major activity5. Deliverables: what QA produces (test cases, automation, reports)6. Entry criteria: what must be true to begin testing7. Exit criteria: what must be true to release8. Risk assessment: top 3-5 risks specific to this release with mitigation9. Defect management workflow: triage, severity, fix-and-verify loop</task> <input>PRD or release description: {prd}Target release date (if known): {target_date}Known dependencies: {dependencies}</input> <constraints>- Use [YYYY-MM-DD] placeholders for any date not explicitly provided.- RACI: Responsible, Accountable, Consulted, Informed, apply per major activity.- Risks are SPECIFIC to this release, not generic ("scope might creep").- Scope section must list what's OUT of scope explicitly.- Don't reproduce the strategy doc; reference it if needed.</constraints> <output_format>A Markdown document with the 9 sections. Followed by a "Revision history" footer with one row for version 1.0.</output_format> <approach>Before writing, identify the 3-5 release-specific risks the PRD implies.</approach>

Example

Input
PRD or release description: Two-factor authentication feature. Adds TOTP (Authenticator app) and SMS as 2FA options. Required for all admin accounts; optional for end users. Includes recovery codes, device management page, and per-account audit log of 2FA events. Mobile and web both support enrollment and challenge flows.

Target release date: 2026-09-15 (initial)
Known dependencies: Twilio for SMS, partnership negotiation in progress (signed by [DATE_PARTNERSHIP_SIGNED]).
Output
# Test Plan: Two-Factor Authentication Release

## 1. Test scope

**In scope:**
- TOTP enrollment and challenge flow (web + iOS + Android)
- SMS enrollment and challenge flow (web + iOS + Android)
- Recovery code generation and use
- Device management page (list, rename, revoke trusted devices)
- Per-account audit log of 2FA events
- Admin enforcement (admin accounts cannot disable 2FA after enrollment)
- Account recovery flow when 2FA device lost
- Backwards compatibility with sessions established before 2FA was enabled

**Out of scope:**
- WebAuthn / hardware key support (planned for next quarter)
- 2FA for API token authentication (separate workstream)
- Notification preferences for 2FA events
- Internationalization of recovery code labels (English only for this release)

## 2. Test approach

Prioritized for this release: functional (enrollment + challenge happy paths), negative (bypass attempts, expired codes), security (TOTP secret storage, SMS delivery integrity, replay protection), accessibility (challenge screens must be WCAG 2.2 AA, high-stakes auth UX), regression (existing sign-in flows still work).

Deprioritized: performance (low volume), localization (English only for this release).

## 3. Schedule and milestones

| Phase | Owner | Target |
|-------|-------|--------|
| Test design: happy paths and negative scenarios | QA | [YYYY-MM-DD] (≈ 8 weeks before target) |
| Test automation: Playwright suite for web flows | QA + Engineering | [YYYY-MM-DD] (≈ 6 weeks before target) |
| Mobile manual exploratory + automation | QA | [YYYY-MM-DD] (≈ 5 weeks before target) |
| Security review (TOTP storage, SMS delivery) | Security consultant + QA | [YYYY-MM-DD] (≈ 4 weeks before target) |
| Integration testing with Twilio sandbox | Engineering + QA | [YYYY-MM-DD] (≈ 3 weeks before target, blocked on Twilio partnership signature [DATE_PARTNERSHIP_SIGNED]) |
| Accessibility audit | QA | [YYYY-MM-DD] (≈ 2 weeks before target) |
| Regression and release readiness | QA | [YYYY-MM-DD] (≈ 1 week before target) |
| GA release | Engineering | 2026-09-15 |

## 4. Resources: RACI

| Activity | R | A | C | I |
|----------|---|---|---|---|
| Test case authoring | QA | QA Lead | Engineering, Product | Leadership |
| Web automation | QA + Engineering | QA Lead | - | Engineering Manager |
| Mobile testing (manual + automation) | QA | QA Lead | Mobile Engineering | Product |
| Security review | Security consultant | CTO | Engineering, Compliance | Leadership |
| Twilio integration testing | Engineering | Engineering Manager | QA | Product |
| Accessibility audit | QA | QA Lead | Engineering, Design | Product |
| Release go/no-go decision | QA Lead | CTO | Product, Engineering | Leadership, Customers |

## 5. Deliverables

- Test case suite in Zephyr (≈ 80-120 cases including negative paths)
- Playwright spec for web 2FA flows (target 100% happy path coverage, 80% negative)
- Maestro flow for mobile enrollment + challenge (smoke level)
- Security test report (TOTP secret encryption, SMS delivery, replay protection)
- Accessibility audit report (axe + manual screen-reader)
- Release readiness summary (go/no-go decision artifact)
- Post-release monitoring playbook (what to watch for first 72 hours)

## 6. Entry criteria

- PRD signed off by product and engineering
- Twilio partnership signed [DATE_PARTNERSHIP_SIGNED]
- Staging environment has TOTP and SMS endpoints deployed
- Unit and integration tests for 2FA module green in main branch
- Recovery code generation deterministic for testing (seedable)

## 7. Exit criteria

- Zero P0 / P1 bugs open
- < 3 P2 bugs open, each with PM-acknowledged disposition
- Security review signed off; remediation of any finding ≥ Medium complete
- Accessibility audit shows 0 WCAG 2.2 AA violations on the new screens
- Post-deploy smoke test green in staging within last 24 hours
- Rollback plan tested in staging

## 8. Risk assessment

| Risk | Mitigation |
|------|------------|
| Twilio partnership signature slips past [DATE_PARTNERSHIP_SIGNED] | Pre-negotiate fallback SMS provider; do not block TOTP track on SMS partnership |
| Recovery code workflow leaks security info (e.g., logs codes) | Dedicated security review of logging; static analysis pass for code-related strings |
| Admin enforcement bypass through stale sessions | Add session invalidation on enrollment; test session-survives-enrollment edge cases |
| SMS delivery failure rate > expectation in some geos | Configure Twilio multi-region routing; document acceptable failure rate; add fallback messaging |
| Mobile native build delay holds release (mobile usually trails web) | Decouple mobile and web release dates if needed; web GA on target, mobile GA 2-4 weeks later if blocked |

## 9. Defect management workflow

**Triage**: QA Lead + PM + Engineering Lead, daily standup during execution phase.
**Severity** (defines fix urgency):
- P0: blocks login or causes account lockout, fix and re-test within 24h
- P1: blocks 2FA enrollment or challenge, fix and re-test within 48h
- P2: degraded UX, not blocking, fix before exit OR document waiver
- P3: cosmetic or low-impact, backlog with PM disposition

**Loop**: Bug found → ticket with repro → triage → assign → fix → QA verifies → close. Re-opened bugs are escalated to QA Lead. Open P0/P1 at exit-criteria check = no-go.

---

**Revision history**
| Version | Date | Author | Changes |
|---------|------|--------|---------|
| 1.0 | [YYYY-MM-DD] | QA Lead | Initial draft |

Common pitfalls

  • Model fabricates dates instead of using placeholders: enforce in constraints.
  • Scope-out section gets skipped if PRD doesn't explicitly mention out-of-scope items; require it anyway (you choose).
  • Risks default to generic 'scope creep' / 'resource constraints' instead of release-specific.
  • RACI gets filled with the same person in all four columns: flag and re-prompt for cleaner ownership.

Tips

  • Plan length should scale with release size: major releases need this much; biweekly releases can use a 1-page version.
  • Update placeholders by find-replace immediately; planning is useless if dates linger as [YYYY-MM-DD].
  • Share with engineering BEFORE adding it to the release tracker: they often catch dependency risks the PRD missed.
  • Diff this plan against the post-mortem at release end; the difference IS your retrospective material.

FAQ

When should I write a plan vs reuse an old one?

Write fresh for major releases or anything with new external dependencies. Reuse with light edits for biweekly minor releases: the structure stays; specifics change.

What length is appropriate?

1000-2000 words for a major release; 200-500 words for a minor. Over-long plans signal busywork; under-long plans signal missing rigor.

Agile vs waterfall: does this still apply?

Yes. Even fully agile teams benefit from a one-pager listing scope, owners, criteria, and risk per release. Drop the parts that don't fit (no need for sequential phases in agile) but keep the substance.

Should plan dates be hard commitments?

Treat them as targets, not commitments, until the team commits explicitly. Plans that lock in dates before scope is stable cause cuts to test quality instead of scope reductions.

Use with these tools