Sub topic 2
Defining success metrics
Prerequisites: This chapter assumes you know what a product feature is, have seen a product requirements document (PRD) before, and can read a Markdown table. Each section below builds on the one before it.
Defining success metrics
A success metric is a measurable number that shows whether a feature reached its goal. Each metric needs a baseline (the current value), a target (the agreed value), and a method for measuring it.
| Metric | Baseline | Target | Measured how and when |
|---|---|---|---|
| Help-center searches with no article click | <current value> | <agreed target> | Analytics event, reviewed weekly for 8 weeks after launch |
Describing users and use cases
Name the primary user and the situation they face. A persona is a short profile of a real user group, based on research. A use case describes one task that user wants to finish.
- Persona: a team admin who manages 20 to 200 members.
- Use case: the admin exports the member list before a quarterly audit.
Writing user stories with acceptance criteria
A user story uses the form "As a <user>, I want <action> so that <benefit>." Acceptance criteria define when the story is done. Write each criterion in Given/When/Then form so a tester can mark it pass or fail.
User story: As a team admin, I want to export the member list as CSV so that I can share it with finance.
- Given I am a team admin, when I choose Export, then a CSV file with one row per member downloads.
- Given I am not a team admin, when I open the member list, then the Export option is not shown.
Writing functional requirements
A functional requirement states one behavior the system must have. Give each one an ID so reviewers and testers can refer to it.
| ID | Requirement | Priority |
|---|---|---|
| FR-1 | The system must let an admin export the member list as CSV. | Must |
| FR-2 | The export should include name, email, and role columns. | Should |
| FR-3 | The system will not support scheduled exports in this release. | Won't |
A common error is writing "fast" or "easy to use." Those words cannot be tested. Replace them with a condition someone can check.
Capturing non-functional requirements
Non-functional requirements describe how well the system must perform, including speed, security, privacy, accessibility, and availability. Number them the same way as functional requirements.
- NFR-1: An export of 10,000 members completes in under 30 seconds at the 95th percentile.
- NFR-2: Only users with the admin role can download an export.
Exercise
Rewrite the vague requirement "The export should be fast" so that a tester can pass or fail it.
Show answer
"NFR-1: An export of 10,000 members completes in under 30 seconds at the 95th percentile." The sentence names a size, a time limit, and a percentile, so a test can measure it.