Functional requirements and specs
Last updated
Some projects need more than stories: a contract, a regulator or a large team may need a written specification, with every requirement numbered and checkable. In this lesson you'll write requirements in the “The system shall…” form, learn what the requirements standard says makes one good, and hunt down the vague words that make a requirement impossible to test.
By the end of this lesson you can
- Write a functional requirement that says one thing and can be tested
- Spot vague words in requirements and replace them with something checkable
- Name the characteristics of a good requirement from ISO/IEC/IEEE 29148
The system shall…
A functional requirement says something the system must do. In a written specification, each one is a numbered sentence, traditionally in the form "The system shall…". "Shall" marks what's required; "should" marks what's wanted but optional; "will" states a fact. Specifications built on the requirements standard, ISO/IEC/IEEE 29148, use those words that way, so a reader always knows which is which.
The most important rule is one requirement, one thing. Compare:
- "The system shall give out queue numbers by text message and at the counter, and show them on a screen and in a report."
- REQ-03: "The system shall give out a queue number in reply to a text message containing PILA." REQ-04: "The system shall give out a queue number when counter staff press New number." And so on.
When requirements are split, each can be tested, traced to the code that meets it, and changed without touching the others.
What makes a requirement good
ISO/IEC/IEEE 29148 lists characteristics of a well-formed requirement. In plain words:
| Characteristic | Means | Fails like this |
|---|---|---|
| Necessary | Something would be missing without it | A feature nobody asked for |
| Appropriate | At the right level: what, not how | “The system shall use a PostgreSQL table” |
| Unambiguous | Can be read only one way | “Seniors are usually called first” |
| Complete | Nothing left to guess | “Reports, statistics, etc.” |
| Singular | One thing | “…and print it, and text it, and log it” |
| Feasible | Can be done within the limits | “Never fails, ever” |
| Verifiable | Someone can check it was met | “User-friendly” |
| Correct | Says what the stakeholder really needs | A rule Ate Cora never had |
| Conforming | Follows the project’s agreed format | Half the list in a different template |
The standard also asks things of the whole set: together the requirements should be complete, consistent (no two contradict), and feasible as a whole.
Hunt the vague words
Some words make a requirement impossible to check: weasel words like fast, quickly, easy, user-friendly, a lot, usually, as soon as possible, appropriate, secure and etc. They feel like requirements but nobody could say whether they're met.
Press each vague word in these eight Pila requirements, then check. One of them is fine as it is.
The fix is nearly always a number, a list, or an example. Where nobody knows the number yet, write that down as a question to answer, not a vague word to argue about later.
Use cases, briefly
Another way to write functional requirements is the use case: one actor with one goal, and the steps between them, including what happens when things go wrong.
Use case: Get a number by text. Actor: patient. Goal: a queue number without lining up.
- The patient texts PILA to the centre's number.
- The system replies with the next number and an estimated wait.
If 60 numbers are already out: the system replies that the centre is full, and when numbers open again. If the centre is closed: the system replies with the opening time.
Use cases suit systems with long flows and many exceptions. Stories with acceptance criteria (lessons 3.3 and 3.4) say much the same in smaller pieces; many teams use both.
Spot the trap: “easy to use”
The barangay’s specification has one line about the interface: “The system should be easy to use.” Kap. Ernesto wants it signed today.
What happens if…
Check what you learned
Sources
Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.
- ISO/IEC/IEEE 29148:2018, Requirements engineering: the characteristics of individual requirements and of a set of requirements
- IEEE Computer Society: SWEBOK Guide, version 4.0 (2024): functional and non-functional requirements, specifications and use cases