liveBook · Manning

User story

As explained in Test Driven: Practical TDD and Acceptance TDD for Java Developers

A user story is a concise description of a software requirement from the perspective of a user or customer.

A user story is a lightweight way to express a software requirement in a short sentence. It typically says who needs what and why, though context can make the motivation clear without spelling it out. section 9.1

A story represents a requirement; it is not meant to document every detail. Think of it as a promise of a future conversation between customer and developer. Keep the focus on the value the requirement provides, not on how the system will deliver it. section 9.1 section 9.1.2

Stories can describe business needs or technical needs with value for the customer:

  • A support technician sees a customer’s history onscreen at the start of a call. section 9.1.3
  • The system prevents a user from running multiple instances of the application simultaneously. section 9.1.3
  • The application authenticates with the HTTP proxy server. section 9.1.3

These examples give customers enough to prioritize features and developers enough to estimate effort, without prescribing implementation. The exact format can vary; what matters is that the necessary who, what, and why are communicated. Stories are a natural fit for acceptance test-driven development, but they are not required for it. section 9.1.3 section 9.1.3

How Test Driven: Practical TDD and Acceptance TDD for Java Developers covers it

How deep it goes
Defines the story’s purpose and illustrates its scope, while leaving detailed requirements-management and planning treatment aside.
Examples
Uses support-call history, preventing multiple application instances, and HTTP proxy authentication as story examples.
What you can do after
Evaluate a requirement by identifying who, what, and why, then communicate its value without prescribing implementation.
How it connects
Connects user stories with acceptance tests and acceptance test-driven development as a natural, optional requirements format.

Also explained in

Compare how 6 books explain user story →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Test Driven: Practical TDD and Acceptance TDD for Java Developers. The section links point to the parts of the book it draws on.