User Stories: From a User Goal to Testable Value

A user story is a brief description of a capability from the perspective of someone who benefits from it. You use stories to focus a software discussion on what a person needs and why it matters. A story provides a starting point for shared understanding; its short wording does not carry every detail needed to build and check the capability.

Connect the role, capability, and benefit

A common writing pattern is: As a role, I want a capability, so that I receive a benefit. The role identifies whose perspective matters. The capability describes what that person wants to accomplish. The benefit explains the purpose and helps you judge whether a proposed solution addresses the need.


Example: As a study-group organizer, I want to reserve a study room so that my group has a place to work together.


The benefit is useful when choices arise. A calendar display and a searchable room list might both support this story. Naming a particular database or interface widget too early can close a discussion before you understand the user's goal. Include a technical constraint when it is genuinely required, but distinguish it from the desired outcome.


The template is a writing aid. A complete sentence in the template is not evidence of a well-understood story. Repeating the capability as the benefit, such as wanting reservations so that reservations are possible, adds little explanation of value.

Build shared understanding

The three Cs describe complementary aspects of a story. The card is the brief reminder of the need. Conversation develops the details through discussion among relevant users, decision makers, and developers. Confirmation supplies agreed evidence for checking the result.


Use the conversation to uncover examples, exceptions, and unresolved decisions. For the room story, you might ask whether an organizer can reserve an occupied room, how long a booking may last, or what happens when no room is available. These questions make the story clearer without turning the initial sentence into a long document.



The INVEST checklist helps you review a story. Look for a meaningful outcome that can be discussed, estimated, implemented in a manageable amount of work, and checked. Independence means reducing avoidable dependencies; it does not mean that every story is completely isolated.


When a story is too large, look for smaller user outcomes. Supporting a simple reservation from start to finish can provide value. Completing only its database table usually does not yet let the organizer reserve anything. A smaller story should still explain a useful result.

Make the boundary testable

Acceptance criteria are agreed, observable conditions used to decide whether a story's implemented behavior is acceptable. They make confirmation concrete. Write what should happen under stated conditions, rather than using vague claims such as easy, fast, or correct without explaining how to check them.


For the room story, suppose one agreed criterion permits booking durations from one through four hours, inclusive. If tt is the requested duration in hours, the duration condition is:


1≤t≤41 \leq t \leq 4


A number line highlights booking durations from one to four hours with both endpoints included.


Requested duration

Result under the duration criterion

0.5 h

Reject

2 h

Permit

4 h

Permit

4.5 h

Reject


These results address duration alone. Room availability and other agreed conditions still need their own checks. Passing one criterion does not establish that the whole story is satisfied.



What to remember

  • Connect a stakeholder, a capability, and a meaningful benefit.
  • Treat the story as a prompt for conversation and confirmation.
  • Split large stories around smaller, useful outcomes.
  • Express acceptance criteria as observable conditions, including important boundaries.

Example: Attaching a document to a print order

Example: A campus print service lets students prepare print orders online. A student needs to attach the document that staff will print. For this example, the agreed upload behavior accepts exactly one PDF file with a reported size greater than 0 MB and no greater than 12 MB. An accepted file's name appears beside the order. A rejected file produces an explanation and is not attached. Treat reported sizes as exact and evaluate only these stated conditions.


The team observes five separate attempts, each containing one file:


Attempt

Format

Reported size

A

PDF

0 MB

B

PDF

4.5 MB

C

PDF

12 MB

D

PDF

12.2 MB

E

DOCX

8 MB


Part a: Express the user outcome

Write a story that identifies the stakeholder, the desired capability, and a meaningful benefit without prescribing the upload implementation.


A user story describes a desired capability from the perspective of someone who benefits from it. Here, the stakeholder is a student, the capability is attaching a document to an order, and the purpose is to supply the document to be printed.


A suitable story is: As a student, I want to attach my document to a print order so that print staff receive the document I want printed.


This wording explains the outcome while leaving interface widgets and storage technology open for discussion. The agreed format and size restrictions can be recorded as acceptance criteria rather than crowded into the story sentence.

Part b: Make the conditions observable

Write acceptance criteria for successful and unsuccessful upload attempts, including the size boundaries and the visible result.


Acceptance criteria state observable conditions for deciding whether the implemented behavior is acceptable. Translate each agreed rule into behavior that a reviewer can check:

  • Given exactly one PDF file with a reported size greater than 0 MB and at most 12 MB, when the student uploads it, the file is attached and its name appears beside the order.
  • Given a file that is not a PDF, a file with size 0 MB, or a file larger than 12 MB, when the student attempts to upload it, the file is not attached and an explanation appears.
  • Given a selection containing a number of files other than one, when the student attempts to upload it, the selection is rejected and an explanation appears.

For the size condition, let ss be the reported size in MB:


0<s≤120 < s \leq 12


The upper limit includes exactly 12 MB; the lower limit excludes exactly 0 MB. The criteria also require visible success or rejection behavior, so checking the file's size alone is insufficient.

Part c: Check the observed attempts

Determine how many attempts satisfy the upload conditions and calculate the percentage that should be accepted.

  1. Check the format. The number of attempts containing a PDF is ________. Attempt E fails because DOCX is unsupported, even though 8 MB lies within the size interval.
  2. Check the size of those PDF files. Attempt A fails because it is empty, and attempt D fails because 12.2 MB exceeds the maximum. The number of PDF attempts rejected by the size condition is ________. Attempts B and C satisfy both format and size conditions.
  3. Count the independent attempts. The total number evaluated is ________. Divide the number satisfying all upload conditions by that total:


Accepted percentage=25×100%=40%\text{Accepted percentage} = \frac{2}{5}\times 100\% = 40\%


The final result is 2 accepted attempts, or 40% of the five attempts. For B and C, the implementation must also attach the file and show its name to satisfy the successful-upload criterion. The input data establish which attempts should succeed; they do not prove that the software actually displays the required result.

A library assistant needs to identify overdue loans so that they can contact borrowers. Which proposed story best expresses this need while leaving the implementation open?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

The three Cs describe a user story as a brief card supported by discussion and observable evidence. Complete the two missing names in this museum booking scenario.


The card states that a visitor wants to reschedule a booking without contacting reception. During the , the team and museum coordinator resolve whether rescheduling preserves the visitor's original ticket price. They record examples showing the agreed price behaviour as .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A delivery driver needs to flag an inaccessible address to avoid repeated unsuccessful visits. Match each element of a proposed user story to its function.

Match each term
A.

Gives an observable condition for deciding whether the implemented behavior is acceptable

B.

Identifies whose perspective and needs the description represents

C.

Explains why the requested outcome matters to the person

D.

States what the person wants to accomplish using the software

Role

Benefit

Acceptance criterion

Capability

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice