---
title: Test Plan and Test Case Template (Copy-Ready, With AI Prompts)
url: "https://goremy.ai/blog/articles/test-plan-and-test-case-template-ai-prompts"
author: Luis Chavez-Mattos
editor: Luis Chavez-Mattos
editor_title: Director, Product
published: "2026-12-03T08:40:14.590Z"
updated: "2026-12-03T08:40:14.590Z"
topic: Coding and DevOps with AI
description: Copy a complete test plan template and test case template, see a worked example, and use AI prompts to draft both faster. Built for QA and engineering.
---

# Test Plan and Test Case Template (Copy-Ready, With AI Prompts)

> Copy a complete test plan template and test case template, see a worked example, and use AI prompts to draft both faster. Built for QA and engineering.

Edited by Luis Chavez-Mattos, Director, Product · Published 2026-12-03

## What is a test plan template and a test case template?

A test plan template is a document skeleton that states what you will test in a release, how, who does it, and what "done" means. A test case template is the smaller unit inside that plan: one check, with preconditions, steps, and an expected result that anyone on the team can run and judge pass or fail. The plan answers "what is our approach?" The cases answer "what exactly do we do?" Both are below, ready to copy.

## TL;DR

- A **test plan** is written once per release or feature and covers scope, risks, environments, schedule, roles, and exit criteria. It should fit on two to four pages.
- A **test case** is written many times per plan. Each one needs an ID, preconditions, numbered steps, and a single observable expected result.
- The most useful parts of a plan are the **out-of-scope list and the exit criteria**, because they stop arguments on release day.
- AI is good at **drafting and gap-finding**: first-pass cases, edge cases, negative cases, and reformatting. It is bad at knowing your real requirements, so a person must check every expected result against the spec.
- Never paste confidential requirements, customer data, or source code into a public AI tool unless your company's policy allows it.
- Keep cases in a tool the whole team can filter and update. A spreadsheet works at first, and a small purpose-built tracker works better as the suite grows.

## What goes in a test plan?

Most test plans fail in one of two ways. They are 40 pages nobody reads, or they are three bullets that settle nothing. The template below sits in between. Copy it into a doc or wiki page and delete any section that does not apply, but think twice before deleting scope, risks, or exit criteria.

```
TEST PLAN: [Feature or release name]

1. OVERVIEW
   Document owner:
   Version / date:
   Release or build under test:
   Linked documents: [requirements, design, tickets]
   Summary (2 to 3 sentences): What is changing and why it matters.

2. SCOPE
   In scope:
   - [Feature, workflow, integration, platform]
   Out of scope (and why):
   - [Item] : [reason, e.g. unchanged, covered by another team, deferred]

3. TEST APPROACH
   Test types: [functional, regression, integration, usability,
                accessibility, performance, security, data migration]
   Manual vs automated: [what is which, and why]
   Test data: [where it comes from, how it is reset, privacy rules]

4. TEST ENVIRONMENTS
   Environment | Purpose | URL / location | Owner | Data refresh
   Browsers, devices, operating systems to cover:

5. RISKS AND MITIGATIONS
   Risk | Likelihood (L/M/H) | Impact (L/M/H) | Mitigation / extra testing

6. ROLES AND RESPONSIBILITIES
   Role | Name | Responsibility
   (QA lead, testers, developer contacts, product owner, approver)

7. SCHEDULE
   Milestone | Date | Dependency
   (test case review, environment ready, test execution start,
    regression complete, sign-off)

8. ENTRY CRITERIA (when testing can start)
   - Build deployed to the test environment
   - Requirements approved
   - Test data available

9. EXIT CRITERIA (when testing is done)
   - All priority 1 test cases executed and passed
   - No open critical or high severity defects
   - Remaining known issues documented and accepted by [name]
   - Regression suite passed

10. DEFECT HANDLING
    Where defects are logged:
    Severity definitions (Critical / High / Medium / Low):
    Triage meeting and owner:

11. DELIVERABLES
    Test cases, execution results, defect report, sign-off summary

12. SIGN-OFF
    Name | Role | Decision | Date
```

Three sections carry most of the value:

- **Out of scope.** If nobody writes down that the mobile layout is not being tested this release, someone will assume it is.
- **Risks.** This is where you decide where to spend limited time. A payment calculation deserves more test cases than a tooltip.
- **Exit criteria.** Agree on these before testing starts. Negotiating "is this bug bad enough to block release?" is much easier when you wrote the rule in a calmer week.

## How do you fill in a test plan? A worked example

Here is a filled-in version for a realistic internal feature: a change to an expense report approval workflow, where managers can delegate approvals while on leave. It is shortened to show the level of detail that works.

```
TEST PLAN: Expense Approval Delegation (Release 4.2)

1. OVERVIEW
   Owner: Priya (QA lead)
   Version: 1.0, reviewed with Dev and Finance Ops
   Summary: Managers can assign a delegate to approve expense
   reports during a date range. Reports above a set amount still
   route to a director.

2. SCOPE
   In scope:
   - Setting, editing, and removing a delegate
   - Approval routing while a delegation is active
   - Email notifications to delegate and employee
   - Audit trail entries for delegated approvals
   Out of scope:
   - Expense submission form (unchanged this release)
   - Mobile app (separate release)
   - Payroll export (owned by Finance Systems, tested separately)

3. TEST APPROACH
   Functional and regression, manual for new delegation flows,
   existing automated regression suite for submission and payment.
   Test data: synthetic employees and reports in staging, reset nightly.
   No production data.

5. RISKS
   - Approval goes to the wrong person | M | H | Test all role combinations
   - Delegation does not expire on end date | M | H | Test date boundaries
   - Time zone errors at midnight | L | M | Test users in two time zones

9. EXIT CRITERIA
   - All priority 1 cases pass
   - Zero open critical or high defects
   - Audit trail verified by Finance Ops
   - Sign-off from product owner and Finance Ops lead
```

Notice the risks drive the test cases. "Delegation does not expire on end date" becomes specific date-boundary cases, which are exactly the cases below.

## What goes in a test case?

A test case should be runnable by someone who did not write it. If a new colleague has to ask you what a step means, the case is not finished.

Copy this as a row in a spreadsheet, or as fields in whatever tool you use:

| Field | What to put in it |
|---|---|
| Test case ID | A unique, stable ID, such as TC-DELEG-001 |
| Title | One line stating the behavior: "Delegate can approve a report while delegation is active" |
| Linked requirement | Ticket or requirement ID this case proves |
| Priority | 1 (must pass to release), 2, or 3 |
| Type | Functional, regression, negative, boundary, accessibility, and so on |
| Preconditions | State the system and data must be in before step 1 |
| Test data | Specific accounts, values, files |
| Steps | Numbered actions, one action per step |
| Expected result | What you should observe, specific enough to judge pass or fail |
| Actual result | Filled in during execution |
| Status | Not run, Pass, Fail, Blocked |
| Tester and date | Who ran it and when |
| Defect ID | Link to the bug if it failed |
| Notes | Anything useful for the next run |

As a plain-text block you can paste anywhere:

```
ID:
Title:
Requirement:
Priority:
Type:
Preconditions:
Test data:
Steps:
  1.
  2.
  3.
Expected result:
Actual result:
Status:
Tester / date:
Defect ID:
Notes:
```

### Worked test cases for the same feature

| ID | Title | Preconditions | Steps | Expected result |
|---|---|---|---|---|
| TC-DELEG-001 | Delegate approves report during active delegation | Manager A has delegated to User B from today to 7 days out. Employee C (reports to A) has a submitted $120 report. | 1. Sign in as User B. 2. Open Approvals. 3. Open C's report. 4. Select Approve. | Report status changes to Approved. The audit trail shows "Approved by B on behalf of A." C receives an approval email. |
| TC-DELEG-002 | Delegate cannot approve after end date | Delegation ended yesterday. C has a submitted report. | 1. Sign in as User B. 2. Open Approvals. | C's report does not appear in B's queue. It appears again in A's queue. |
| TC-DELEG-003 | Delegation expires at end of the last day | Delegation end date is today. | 1. Sign in as B at 11:55 pm local time and open the report. 2. Repeat at 12:05 am next day. | Report is approvable at the first time, and not approvable at the second. |
| TC-DELEG-004 | Over-limit report still routes to director | Delegation active. C has a $5,000 report (above the manager limit). | 1. Submit the report as C. 2. Sign in as B and check the queue. | Report routes to the director, not to B. |
| TC-DELEG-005 | Manager cannot delegate to themselves | Signed in as Manager A. | 1. Open Delegation settings. 2. Select A as delegate. 3. Save. | Save is blocked with a clear error message. No delegation is created. |
| TC-DELEG-006 | Delegate cannot approve their own report | B is the delegate and has their own submitted report. | 1. Sign in as B. 2. Open B's own report in Approvals. | Approve action is unavailable or rejected with an error. |

Cases 002, 003, 005, and 006 are the kind people forget. Happy paths prove the feature works. Negative and boundary cases prove it fails safely.

## How do you write test cases that hold up?

- **One case, one purpose.** If a case has three expected results from three different behaviors, split it. When it fails, you want to know why.
- **Write expected results as observable facts.** "Works correctly" cannot be judged. "Status shows Approved and the audit trail names both people" can.
- **State preconditions fully.** Most "can't reproduce" arguments come from different starting data.
- **Use specific test data.** "A large amount" is vague. "$5,000" is testable.
- **Cover the three families.** Happy path, negative (bad input, wrong permissions), and boundary (limits, dates, empty and maximum values).
- **Trace to requirements.** If a requirement has no test case, you have a gap. If a case has no requirement, ask whether it is needed.
- **Prioritize honestly.** If everything is priority 1, nothing is.

## How can AI help write a test plan and test cases?

AI is a fast first-draft partner for this work. It turns a pile of requirements into a structured plan, produces edge cases you did not think of, and reformats cases into whatever your tool needs. It does not know your system, your users, or what the business actually decided. Treat its output as a draft from a capable but uninformed new hire.

Before you paste anything, check your company's AI policy. Remove names, customer data, credentials, and anything classified. Use an approved internal tool if your company has one.

### Prompt 1: Draft the test plan

```
You are a senior QA lead. Using the template below, draft a test plan
for the feature described. Do not invent requirements. Where you lack
information, write "TO CONFIRM:" followed by the question I should
answer. Keep it under 3 pages.

FEATURE DESCRIPTION:
[Paste requirements, user stories, or a summary]

KNOWN CONSTRAINTS:
[Environments, deadlines, team size, what is already automated]

TEMPLATE:
[Paste the test plan template from above]

For the risks section, list the 5 most likely ways this feature could
fail in production and what extra testing each would need.
```

### Prompt 2: Generate test cases from requirements

```
Act as a QA engineer. From the requirements below, write test cases in
a table with these columns: ID, Title, Requirement, Priority (1 to 3),
Type, Preconditions, Test data, Steps, Expected result.

Rules:
- One purpose per case.
- Cover happy path, negative cases, boundary cases, and permission
  checks.
- Expected results must come only from the requirements. If a
  requirement does not say what should happen, add the case but write
  "EXPECTED RESULT UNCLEAR: [question]".
- Use IDs in the format TC-[AREA]-001.

REQUIREMENTS:
[Paste requirements]
```

The "unclear" rule matters. Without it, AI will confidently guess the expected result, and a guessed expected result is worse than a blank one.

### Prompt 3: Find the gaps in what you wrote

```
Here is my test plan and my current test cases. Review them as a
skeptical senior tester. List:
1. Requirements with no test case
2. Missing negative, boundary, permission, and error-handling cases
3. Cases that are vague, contain more than one purpose, or have
   expected results that cannot be judged pass or fail
4. Risks I did not list
Do not rewrite everything. Give a numbered list of specific findings.

[Paste plan and cases]
```

This is often the most valuable use. Reviewing your own work is hard, and a second reader that never gets tired is useful even when it is imperfect.

### What to check in the answer

- **Expected results against the spec.** This is the main check. Compare every one to the real requirement.
- **Invented features.** AI sometimes tests buttons, fields, or rules that do not exist in your product.
- **Duplicates.** You will get ten near-identical cases. Merge them.
- **Coverage.** Match cases back to requirements. Anything left over is a gap.
- **Numbers and dates.** Exit criteria thresholds, schedule dates, and severity definitions should be your team's decisions, not the model's.

### Where not to trust AI

Do not let it decide your risk priorities, your release criteria, or whether a defect is acceptable. Do not use it to mark cases as passed. Do not assume it understands your permissions model, integrations, or legacy behavior. Those live in your team's heads and your system, not in the model.

## What is the difference between a test plan, a test strategy, and a test case?

A **test strategy** is the long-lived, organization-level approach: which kinds of testing you do, which tools, what the standards are. It changes rarely. A **test plan** applies that strategy to one release or feature, with specific scope, dates, and people. A **test case** is a single check that belongs to a plan. Many teams skip a separate strategy document and put a short "approach" section in each plan, which is fine for most projects.

## How long should a test plan be?

Long enough that a new tester could start work from it, and short enough that people read it. For a single feature, two to four pages is typical. For a large release with several teams, a one-page master plan that links to feature-level plans is easier to maintain than one huge document. If a section is not helping anyone decide or do something, cut it.

## Where should you keep test cases?

A spreadsheet works for a small team and one release. It starts to hurt when several testers run the same cases, when you need pass rates by priority, or when you need history across releases. Dedicated test management tools handle this, and so do the issue trackers many companies already license. Whatever you choose, make sure each case has a stable ID, a status, a tester, and a link to defects, and that the exit criteria can be checked by looking at one view rather than counting rows by hand.

## Can you build your own test case tracker?

If your team's needs are specific, a small custom tool can beat a spreadsheet: a test case library, a run screen where testers mark pass or fail, a defect link, and a release dashboard showing the exit criteria at a glance. With [Remy](https://goremy.ai), you describe that tool in plain English and it builds and deploys a full-stack app with a database, sign-in, and role-based access, so testers, developers, and approvers each see what they need. The app is yours: the code sits in a git repo you own. Remy cannot build native mobile apps, but a mobile-responsive web app works fine for running cases on a phone.

## Frequently Asked Questions

### What is the difference between a test plan and a test case?

A test plan describes the overall approach for a release: scope, risks, environments, roles, schedule, and exit criteria. A test case is one specific check with steps and an expected result. One plan contains many test cases, and the plan defines when the cases are considered sufficiently passed.

### How many test cases do I need?

There is no correct number. Aim for coverage of every requirement plus the main risks, then add negative and boundary cases where failure would hurt most. A payment calculation deserves more cases than a tooltip. Counting cases matters less than whether each requirement and risk is covered.

### Can AI write test cases for me?

It can draft them quickly, and it is useful for finding edge cases and gaps. It cannot know what your system is supposed to do unless you tell it, so a person must verify every expected result against the requirements. Treat AI output as a first draft, and keep confidential data out of tools your company has not approved.

### Should test cases be manual or automated?

Both have a place. Automate stable, repeated checks such as regression flows, since they run the same way every time. Keep manual testing for new features, usability, and anything that needs judgment. Write the case clearly first. A well-written manual case is the easiest thing to turn into an automated one later.

### What are good exit criteria for a test plan?

Good exit criteria are measurable and agreed before testing starts. Typical examples are that all priority 1 cases pass, no critical or high severity defects remain open, regression passes, and named people accept any known issues. Set the specific thresholds with your product owner rather than copying numbers from a template.
