Use Case Template

This use case template takes a name, a primary actor and a goal, then preconditions, numbered main flow steps, alternate flows and postconditions, and copies the result as Markdown or text.

What must be true before step 1. One per line. Up to 800 characters and 16 lines.

Main flow. One step per row, in order.

No steps yet. Add the first one.

0 of 20

Start each with the step it leaves from, for example: 3a. Card declined: show an error, return to step 2. Up to 800 characters and 16 lines.

What is true when the goal is reached. One per line. Up to 800 characters and 16 lines.

Restore replaces what is in the form, and Undo puts it back. Up to 2 MB. The file is read here; nothing is uploaded.

Saved only in this browser under the key qn-use-case-v1. Nothing you type is sent anywhere. Clearing this site's data deletes it.

Why use our Use Case Template?

The Fields Reviewers Ask For

Name, primary actor, goal, preconditions, main flow, alternate flows and postconditions. No empty boxes for scope levels or IDs you will not use.

Numbered Steps

Add one step per row. Numbers come from row order, so moving a step renumbers the whole flow for you.

Markdown Out

Copy the use case as Markdown and paste it into a README, a wiki page or an issue.

What is a Use Case?

A use case describes how an actor, a person or another system, uses a system to reach one goal. It lists the normal steps first, then what changes when something goes differently. Ivar Jacobson presented the first article on use cases in 1987, and UML shows actors and use cases in use case diagrams.

A use case is not a user story. A story is one sentence of need and value, plus acceptance criteria. A use case spells out each step between the actor and the system. Alistair Cockburn has described a user story as a use case at 2 bits of precision: a goal and a main scenario, with little else. Many teams keep stories in the backlog and write use cases for flows that need a careful review.

What the Template Includes

  • Use case nameA short goal phrase that starts with a verb, such as Reset password, up to 100 characters.
  • Primary actorWho starts the use case, up to 80 characters.
  • GoalWhat success means for that actor, up to 200 characters.
  • PreconditionsWhat must be true before step 1, up to 800 characters and 16 lines.
  • Main flowUp to 20 steps of up to 250 characters each, numbered in row order.
  • Alternate flowsBranches and errors, same size as preconditions. Name the step they leave from, such as 3a.
  • PostconditionsWhat is true after the goal is reached.
  • Markdown outputA heading for each part and a numbered list for the main flow. Empty parts are left out.
  • Saved inThis browser only, under the key qn-use-case-v1. Clearing this site's data deletes it.
  • Not includedUse case diagrams, IDs, priority and traceability columns.

Common Use Cases

Requirements Review

Write the flow before a design review so everyone reads the same steps.

Test Planning

Each main step and each alternate flow points to at least one test case.

System Actors

Make the actor another system, such as Payment service, to describe an integration.

Course Assignments

Draft a fully written use case for a software engineering class, then paste it into the report.

Repository Docs

Paste the Markdown into a README next to the code it describes.

Handover

Explain one feature's flow to a new developer or tester on a single page.

How to Write a Use Case

1

Name the goal

Type a short verb phrase such as Withdraw cash.

2

Set the actor and goal

Say who starts it and what success means for them.

3

Write the main flow

Add one row per step and switch between actor and system: The customer enters the PIN. The system checks the PIN.

4

Add branches and copy

Write alternate flows against step numbers, fill in the conditions, then copy as Markdown.

Copy, Print or Download the Use Case

Markdown

Headings and a numbered main flow, ready for GitHub, GitLab or any wiki that reads Markdown.

Clean Text

Plain text for a ticket field or an email that does not render Markdown.

Print

A one-document printout, plus a blank print with ruled lines for a workshop.

Backup File

Download a .json backup and restore it later.

No Account

No sign up. The use case stays in this browser.

Tips for a Clear Use Case

  • •One goal per use case If the name needs "and", split it into two use cases.
  • •One action per step Start each step with who acts: The system sends a code.
  • •Describe intent, not screens Write Enters the amount, not Clicks the blue field. The flow should survive a redesign.
  • •Label every branch Name alternates by the step they leave, such as 3a Card is expired.
  • •Write the failures A branch for wrong input or a lost connection catches cases tests often miss.
  • •Check against the story Every acceptance criterion in the user story should appear somewhere in the flow.

Write Your Use Case

Fill in the name, actor and goal above, then add the main flow one step at a time.

Start from the need with the user story template, and describe the actor in more depth with the user persona template.

Related tools

Frequently Asked Questions

Is there a standard use case format?

No single standard exists. Martin Fowler wrote that there is no standard way to write a use case's content. Cockburn's fully dressed format adds scope, level, stakeholders, guarantees and a trigger. This page keeps the fields that most short formats share.

Where does the trigger go?

The trigger is the event that starts the use case, such as The customer inserts a card. Write it as step 1 of the main flow, or in the preconditions if it is a state rather than an action.

Can I make a use case diagram here?

No. A diagram is a UML drawing of actors and use cases. This page writes the text behind one use case in such a diagram, so pair it with a diagram tool if you need the picture.

Can I paste it into Jira or GitHub?

Copy as text works in any field. Markdown renders where the field supports it, such as GitHub issues and READMEs. Where an editor shows the raw symbols, paste the text version instead.

Is my use case saved?

It is saved in this browser only, under the key qn-use-case-v1. Download a backup before clearing site data.