Planning and requirements · lesson 5 of 10
Ideas in this lesson
AFunctional requirementsomething the system must do
B“The system shall…”one requirement, one thing
CWeasel wordsfast, easy, user-friendly, etc.
DUse casean actor, a goal, and the steps to it

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:

Characteristics of a good requirement (ISO/IEC/IEEE 29148, in plain words)
CharacteristicMeansFails like this
NecessarySomething would be missing without itA feature nobody asked for
AppropriateAt the right level: what, not how“The system shall use a PostgreSQL table”
UnambiguousCan be read only one way“Seniors are usually called first”
CompleteNothing left to guess“Reports, statistics, etc.”
SingularOne thing“…and print it, and text it, and log it”
FeasibleCan be done within the limits“Never fails, ever”
VerifiableSomeone can check it was met“User-friendly”
CorrectSays what the stakeholder really needsA rule Ate Cora never had
ConformingFollows the project’s agreed formatHalf 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.

  1. The patient texts PILA to the centre's number.
  2. 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”

Spot the trapKap. Ernesto

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

Which requirement can be tested as it is?
“The system shall print the number and text it to the patient.” What’s wrong?
In a specification, what does “should” usually mean, compared with “shall”?

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.

All sources for Simple Software Development