Skip to content

Requirement-discovery exercises

Difficulty: Intermediate

Key concepts

  • requirement discovery
  • clarification questions
  • question categories
  • design impact
  • assumptions
  • assumption register
  • acceptance criteria
  • Given/When/Then
  • non-functional requirements
  • failure scenarios
  • How to apply the five question categories (actors, scope, rules, volume and timing, failure) to a request you have not seen before.
  • How to tell which questions matter: the ones where different answers lead to different designs.
  • How to turn a gap that nobody can fill yet into a written assumption, with what it affects and how risky it is.
  • How to write acceptance criteria with concrete values that a test could follow, including what must not change.
  • How to name at least one measurable non-functional requirement and one failure case for every problem.

There are four requests below. Each is a few sentences, the way a person who wants the software might say them, and each is vague on purpose. They are different kinds of problem: a shared resource with clashes, a device that follows a schedule, a calculation with rules, and a data import that can partly fail.

For each one:

  1. Read the request, and stop. Do the tasks on paper or in a text file before you open the answer. Ten to twenty minutes per request is enough.
  2. Open “Show the explained answer” and compare. The answer is one good answer, not the only one. Read the “other good answers” note at the end of each, which gives the test for judging your own.
  3. Reread the lesson sections linked under the request for anything you missed.

In the model answers, a few rows put two closely related questions in one cell to save space. When you ask them for real, ask one thing at a time, as the clarification-questions lesson advises.

The tasks are the same for every request:

  • Questions. Write the clarification questions you would ask. Mark the unclear words first, then go through the five categories. Put the questions whose answers change the design most at the top.
  • Assumptions. Pick at least three gaps nobody has answered and write a working answer for each, marked as an assumption, with what it affects if it is wrong.
  • Acceptance criteria. Write three to five criteria as Given / When / Then, with concrete values.
  • One non-functional requirement, with a measure, a threshold, and a condition.
  • One failure case: what goes wrong, how it is noticed, and what should happen.

Nothing here is scored or saved. There is no certificate: the exercises show you whether you can apply the requirements lessons to a new problem, and which parts to reread if not.

The office manager says:

“People keep double-booking the meeting rooms, and it causes arguments every week. I want a simple tool where people book a room, and it stops clashes. Oh, and people who book a room and never turn up are a real problem too.”

Exercise: Discover the requirements for room booking

Write your clarification questions (most design impact first), at least three assumptions, three to five acceptance criteria, one non-functional requirement, and one failure case.

Show the explained answer

Unclear words. “Book a room” (for how long, how far ahead, for whom?), “clashes” (does a meeting that ends at 11:00 clash with one that starts at 11:00?), “never turn up” (how would the tool know?), “people” (staff only, or also visitors and assistants booking for others?), and “simple” (which features are left out?).

Questions, by category. The ones marked high change which objects exist or what they must guarantee.

Category Question Why it matters
Rules (high) “If one meeting ends at 11:00 and the next starts at 11:00 in the same room, is that a clash?” It defines “clash”, the rule the whole tool exists to enforce. It decides whether a booking’s end time is inside or outside the booking.
Rules (high) “How should the tool know someone did not turn up, and what should happen then?” A check-in at the room needs a device or a button, and a rule for releasing the room. Without check-in, the tool cannot know, and this goal is out of scope.
Failure (high) “If two people try to book the same room for the same time at the same moment, what should each of them see?” Exactly one may win. The check and the booking must happen as one step, which is a concurrency requirement on the design, not a user-interface detail.
Actors “Who may book, and may someone book on behalf of another person?” Booking for others means a booking has an organiser and a booker, two roles instead of one.
Actors “Who may cancel or change someone else’s booking?” It decides the permission rules, and who the tool must recognise.
Scope “Do bookings need to repeat, for example every Monday at 10:00?” Repeating bookings are a separate concept with their own clash rules (“what if one week clashes?”). A large addition if yes.
Scope “Must it work with the calendars people already use?” An outside calendar is a new system on the context diagram, with its own failures.
Rules “What is the shortest and longest booking, and how far ahead can people book?” Limits the tool must check, and the answers to the “hogging” problem the request does not mention yet.
Volume and timing “Roughly how many rooms and people: tens, or thousands?” Low impact at this size: any of these answers fits in one small program. Worth asking quickly, so that the design does not plan for scale it will not see.

Assumptions. Each is a working answer, not a confirmed fact.

ID Assumption Affects Risk
A1 One office, one time zone. How times are stored and compared Low
A2 Back-to-back bookings do not clash: a booking covers its start time but not its end time. The clash rule, every criterion about clashes Medium
A3 Bookings start and end on 15-minute steps, from 15 minutes to 4 hours long. Validation of a booking request Low
A4 Each room has a check-in panel. A booking with no check-in by 15 minutes after its start is released. A new “released” state; a timer; the panel as an outside system High: it needs hardware and the office manager’s agreement
A5 No repeating bookings in the first version. Scope Medium
A6 Only the person who made a booking and the office manager may cancel or change it. Permission checks Low

Acceptance criteria. Rooms are named Oak and Elm.

ID Given When Then
AC-1 Sam has booked Oak from 10:00 to 11:00 Alex asks for Oak from 10:30 to 11:30 the request is refused, with the clashing time shown; Sam’s booking is unchanged; Oak has one booking
AC-2 Sam has booked Oak from 10:00 to 11:00 Alex asks for Oak from 11:00 to 12:00 Alex’s booking is accepted (A2)
AC-3 Oak is free from 14:00 to 15:00 Sam and Alex both ask for Oak 14:00 to 15:00 at the same moment exactly one request is accepted; the other is refused; Oak has exactly one booking from 14:00 to 15:00
AC-4 Sam has booked Oak from 09:00 to 10:00 and has not checked in the time reaches 09:15 the booking is released; Oak shows as free from 09:15 to 10:00; Sam is told (A4)
AC-5 Sam has booked Oak; Alex is not the office manager Alex tries to cancel Sam’s booking the cancel is refused; Sam’s booking is unchanged (A6)

AC-1 and AC-5 check what must not change after a refusal. AC-3 is where a design that checks first and books later, in two separate steps, fails.

One non-functional requirement. Response time: a booking request is accepted or refused within 2 seconds for 95% of requests, measured at the tool’s server, during the busiest hour of a working day. The 2 seconds is a proposal until the office manager confirms it.

The rule “two accepted bookings of one room never overlap” is not a non-functional requirement: it is an invariant, true at every moment, and AC-3 tests it under concurrency.

One failure case. The check-in panel in Oak is offline. Detected because the panel stops reporting. If the tool goes on releasing unchecked bookings, it releases rooms that people are sitting in. The safer handling is to stop releasing bookings for that room until the panel is back, and to tell the office manager. That choice belongs to the office manager; the designer’s job is to ask it.

Other good answers. Your questions and criteria can be different and equally good. Judge each question by one test: would two different answers lead to a different design? “What colour should the booking screen be?” does not. Judge each criterion by another: could someone write a test from it without asking you what you meant, and does it settle an ambiguity (here, back-to-back bookings and simultaneous requests are the two that matter most)? If you assumed that back-to-back bookings do clash, that is a defensible choice, as long as you wrote it down as an assumption and your criteria follow it.

Lesson sections for this request:

The product manager for a home heating thermostat says:

“Customers want the heating to follow a weekly schedule: warm when they’re home, cooler at night and when they’re out. They should be able to override it when they’re cold. And it must never let the house freeze.”

Exercise: Discover the requirements for a thermostat schedule

Write your clarification questions (most design impact first), at least three assumptions, three to five acceptance criteria, one non-functional requirement, and one failure case.

Show the explained answer

Unclear words. “Weekly schedule” (how many changes a day, and the same for every day?), “warm” and “cooler” (set temperatures, or modes?), “override” (for how long?), “they” (everyone in the house, or one owner?), and “never let the house freeze” (at what temperature, and even when something is broken?).

Questions, by category.

Category Question Why it matters
Rules (high) “When someone overrides the temperature, how long should the override last?” “Until the next scheduled change”, “for two hours”, and “until cancelled” are three different states the thermostat must keep, each with its own way back to the schedule.
Failure (high) “If the temperature sensor fails, should the heating stay on, go off, or something else?” Off risks frozen pipes; on risks overheating and cost. There is no right answer for the designer to pick: it is a safety decision for the product manager.
Rules (high) “What is the lowest temperature the house may reach, and can a user set the target below it?” It defines “never freeze” as a number the thermostat enforces, and whether a user’s setting can be refused.
Failure (high) “After a power cut, what must the thermostat remember, and what time does it think it is?” If the schedule must survive, it must be stored durably. If the clock is lost, the thermostat cannot follow a schedule until it has the time again.
Rules “What should happen on the night the clocks change, when a change falls in the hour that is skipped or repeated?” A change at 02:30 does not exist on the spring night and happens twice on the autumn night. The rule must be chosen, or one of them is a bug.
Scope “Heating only, or cooling too? One zone, or several rooms with their own schedules?” Several zones means several schedules and sensors, and a different shape for the whole design.
Actors “Who may change the schedule: anyone at the wall unit, or only from the owner’s phone app?” Permissions, and whether the phone app is an outside system the thermostat depends on.
Volume and timing “How many schedule changes per day must it hold, and how quickly must a change of target take effect?” Sets the size of the stored schedule and gives the response-time requirement a number.

Assumptions.

ID Assumption Affects Risk
A1 Heating only, one zone, one sensor. The whole shape of the design High: zones would change it
A2 Up to 6 changes per day, each a time and a target temperature, set separately for each day of the week. The schedule’s data and its limits Low
A3 An override lasts until the next scheduled change, then the schedule takes over again. The override state, and how it ends Medium
A4 The frost limit is 5 °C. No target below it is accepted, and the heating comes on below it, whatever the schedule or a user says, even when the heating is switched off. Validation; a rule that outranks the schedule Medium
A5 A scheduled change that falls in a skipped hour happens at the first minute after the skipped hour; in a repeated hour, it happens once, the first time. Time handling Low

Acceptance criteria. The Monday schedule is 06:30 → 21 °C and 22:30 → 16 °C.

ID Given When Then
AC-1 it is Monday 06:29 and the target is 16 °C the time reaches 06:30 the target is 21 °C
AC-2 it is Monday 23:00 and the target is 16 °C from the schedule someone sets 20 °C at the wall unit the target is 20 °C until Tuesday’s first change, which then applies as scheduled (A3)
AC-3 the target is 16 °C someone tries to set 3 °C the setting is refused, with the limit shown; the target is still 16 °C (A4)
AC-4 the heating has been switched off at the wall unit, and the measured temperature falls to 4.5 °C the next reading arrives the heating comes on, although it was switched off (A4)
AC-5 a Sunday schedule change at 02:30, on the night the clocks go forward from 02:00 to 03:00 the clocks change the change applies at 03:00, once (A5)

AC-4 needs a situation where nothing else would turn the heating on. With a scheduled target of 16 °C, a house at 4.5 °C is heated anyway, so a test there would pass even if the frost rule did not exist. A criterion should fail when the rule it checks is missing.

One non-functional requirement. Durability: the schedule, and any override in force, survive a power cut of any length; after power returns, the thermostat follows the schedule again within 1 minute of knowing the time. This is the requirement that decides whether the schedule is stored in memory that survives power loss.

One failure case. The sensor stops giving readings. Detected when no reading has arrived for 5 minutes (a proposed number). The handling is the product manager’s decision (the second question above). Whatever is chosen, the thermostat must show a fault so that nobody believes the house is being kept warm when it is not. If the decision is “heating off”, the design must also say plainly that the frost rule cannot be kept without a sensor.

Other good answers. You may have asked about holiday modes, energy reports, or a phone app, and those are fair questions; whether they come first depends on how much each would change the design. A good test for a question: if the product manager gave one answer or the opposite, would you build something different? For a criterion: does it have concrete times and temperatures, one event, and a Then you can check without guessing? If you chose “override for two hours” in place of A3, your criteria change, but the method is the same, and the choice is as valid as long as you wrote it down as an assumption.

Lesson sections for this request:

A head of department at a school says:

“I need a tool that works out each student’s final grade from their coursework and their exam. Late coursework should lose marks. And please make sure the rounding is fair: last year we had complaints.”

Exercise: Discover the requirements for a grade calculator

Write your clarification questions (most design impact first), at least three assumptions, three to five acceptance criteria, one non-functional requirement, and one failure case.

Show the explained answer

Unclear words. “Final grade” (a percentage, a letter, or both?), “coursework” (how many pieces, and do they count equally?), “late” (by how much, counted how?), “lose marks” (how many, and can the mark go below zero?), “fair” rounding (rounded how, and at which step?), and “the exam” (what if a student did not sit it?).

Questions, by category.

Category Question Why it matters
Rules (high) “How much do the coursework and the exam each count towards the final grade?” The core formula. Asking also shows whether the weights are the same for every course, which decides whether they are data or fixed in the tool.
Rules (high) “Exactly how is late work penalised: per day, per started day, by a fixed amount or a share of the mark? Can a mark go below zero?” Each answer is a different rule, with different edge cases at exactly one day late and at very late work.
Rules (high) “Can you show me one of last year’s rounding complaints, with the marks?” An example shows what “fair” means. Follow it up by asking at which step rounding should happen: rounding each piece and then the total can give a different grade from rounding once at the end.
Failure (high) “If a student did not sit the exam, or a mark is missing, what should the result be?” A missing mark is not a mark of zero. If the answer is “incomplete”, a result is not always a number, so the result needs its own way to say so.
Actors “Who enters marks, who may change the weights or penalties, and who sees the results?” Permissions, and whether students’ results are private to them.
Scope “Should the tool also give letter grades, and must it send results to the school’s records system?” Grade boundaries are more rules; the records system is an outside system.
Rules “Are there extensions, so that work handed in after the deadline is not late for some students?” A per-student deadline, which changes where the deadline is stored.
Volume and timing “Roughly how many students and pieces of work per course?” Low impact: a few hundred students fit any simple design. Asking briefly confirms it.

Assumptions.

ID Assumption Affects Risk
A1 Coursework counts 40% and the exam 60%. Coursework pieces count equally. All marks are whole numbers out of 100. The formula Medium: weights may differ per course
A2 Late work loses 10 marks for each started day late, and never goes below 0. The penalty rule and its edges Medium
A3 Rounding happens once, on the final weighted result, to the nearest whole number, with halves rounded up. Every final grade High: this is what the complaints were about
A4 A student with a missing exam mark gets the result “incomplete”, not a number. The type of a result; every report High
A5 No extensions in the first version. Scope; where deadlines are kept Medium

Acceptance criteria. Each criterion uses the weights in A1.

ID Given When Then
AC-1 one coursework mark of 80, on time, and an exam mark of 60 the final grade is worked out it is 68 (32 + 36)
AC-2 a coursework mark of 80, handed in 1 day and 1 hour after the deadline the coursework is counted it counts as 60: two started days late, 10 marks each (A2)
AC-3 a coursework mark of 15, handed in 3 days late the coursework is counted it counts as 0, not as -15 (A2)
AC-4 two coursework marks of 67 and 68, both on time, and an exam mark of 69 the final grade is worked out it is 68: 40% of 67.5 is 27, plus 41.4, is 68.4, rounded once (A3). Rounding the coursework first to 68 would give 27.2 + 41.4 = 68.6, and a grade of 69
AC-5 a coursework mark of 90 and no exam mark the final grade is worked out the result is “incomplete”; no number is shown or exported (A4)

AC-4 is the criterion the head of department most needs to see, because it turns “fair rounding” into one checkable number. Show it to them: if they say 69 is the fair answer, A3 was wrong, and finding that out now costs one line of a table.

One non-functional requirement. Explainability: for every final grade, the tool shows each input mark, each penalty applied, and the unrounded result, so that a teacher can recompute the grade by hand from that one screen. It is checked by review, not only by unit tests: a teacher tries it on a sample of grades. A second candidate is security: a student can see only their own marks.

One failure case. A mark outside the allowed range is entered, such as 105 out of 100. Detected when the mark is entered. Handling: refuse it with the allowed range shown, and change nothing; never “fix” it by capping at 100, which would hide a typing mistake.

Other good answers. There are many good questions here, and your list can differ from this one. The test for a question is whether different answers lead to a different design; the weights, the penalty rule, the rounding step, and the meaning of a missing mark all pass it easily. The test for a criterion is whether it has concrete marks, one event, and a Then that can be checked by arithmetic. “Rounding is fair” is not testable; AC-4 is. If you chose “round half to even” in place of “halves rounded up”, that is a valid choice too, if it is labelled as an assumption.

Lesson sections for this request:

Request 4: importing contacts from a spreadsheet

Section titled “Request 4: importing contacts from a spreadsheet”

The product owner of a small customer-contacts app says:

“Customers should be able to upload their contacts from a spreadsheet. We can’t have duplicates in there. And if something’s wrong with the file, tell them.”

Exercise: Discover the requirements for a contact import

Write your clarification questions (most design impact first), at least three assumptions, three to five acceptance criteria, one non-functional requirement, and one failure case.

Show the explained answer

Unclear words. “Spreadsheet” (which file formats, which columns?), “contacts” (which fields are required?), “duplicates” (the same what? within the file, or against contacts already in the list?), “can’t have” (refuse them, skip them, or merge them?), “something’s wrong” (with one row, or with the whole file?), and “tell them” (when, and every problem or only the first?).

Questions, by category.

Category Question Why it matters
Rules (high) “If one row in a file is wrong, should the good rows still be imported, or nothing at all?” All-or-nothing means checking every row before anything is saved. A partial import means a report of what was saved and what was not. Different designs.
Rules (high) “When are two contacts the same: the same email, the same name and phone, something else?” It decides the key the import checks, and whether “Ana@Example.com” and “ana@example.com” are one contact.
Rules (high) “When a row matches a contact that already exists, should the import skip it, update the contact, or ask?” Updating changes existing data and needs a rule for which fields win. Skipping does not. Asking means the import has a paused state.
Volume and timing (high) “What is the largest file a customer might upload: a hundred rows, or a million?” A few thousand rows can be checked while the customer waits. A million needs a background job, progress, and a way to look at the result later.
Failure (high) “If the upload or the import stops halfway, what should be in the list afterwards?” Defines what a crash may leave behind, and whether a retry is safe.
Scope “Which formats: comma-separated text only, or spreadsheet files too? Can an import be undone?” Each format is its own reader; undo needs a record of what each import added.
Actors “Who may import, and into whose list: a personal list, or one shared by a team?” A shared list means two people can import into it at the same time.

Assumptions.

ID Assumption Affects Risk
A1 Comma-separated text only, UTF-8, with a header row naming the columns. Name and email are required. The file reader; validation Low
A2 Two contacts are the same if their emails are equal after removing spaces at the ends and ignoring upper and lower case. The duplicate check Medium
A3 A row matching an existing contact is skipped and reported; existing contacts are never changed by an import. What an import may change Medium
A4 Bad rows are skipped and reported; good rows are imported. The whole import flow, and the report High: the opposite answer changes the design
A5 At most 10,000 data rows per file; a larger file is refused. Whether the import runs while the customer waits Medium

Acceptance criteria. Line numbers count the header as line 1.

ID Given When Then
AC-1 an empty list and a file of 3 valid rows the file is imported the list has 3 contacts; the report says 3 imported, 0 skipped
AC-2 the list has a contact with ana@example.com a file whose line 2 has “ ANA@Example.com” is imported line 2 is not imported; the report lists it as a duplicate of an existing contact; the existing contact is unchanged (A2, A3)
AC-3 a file whose lines 2 and 5 have the same email the file is imported line 2 is imported; line 5 is reported as a duplicate of line 2
AC-4 a file of 5 rows, where line 4 has no email the file is imported 4 contacts are imported; the report lists line 4 with the reason “email missing” (A4)
AC-5 a file of 10,001 data rows it is uploaded nothing is imported; the message gives the limit of 10,000 rows; the list is unchanged (A5)
AC-6 a file was imported successfully the same file is imported again nothing is added; every row is reported as a duplicate

AC-6 is not in the request. It follows from A2 and A3, and it matters for the failure case below: it makes a retry after a failure safe.

One non-functional requirement. Response time: a file of 10,000 rows is imported and its report shown within 30 seconds, measured from the end of the upload to the report appearing, on the production server. The number is a proposal until the product owner confirms it; if they need larger files, A5 and this requirement change together.

One failure case. The server stops in the middle of an import. With A4, some rows may be saved and others not, and the customer sees no report. One handling is to save the good rows of a file together, as one step, so that a stop leaves either all of them or none. Then the customer can simply upload the file again, and AC-6 shows that nothing is added twice.

Other good answers. If you chose all-or-nothing in place of A4, your criteria and failure handling change, and the design is different, but it is not wrong: what matters is that you noticed the question and wrote down your answer. Judge each of your questions by whether two different answers would change the design; “should the report be green or blue?” would not. Judge each criterion by whether a tester could check it with a specific file and specific expected results, and whether it settles one of the real ambiguities: what counts as a duplicate, and what happens to a file with one bad row.

Lesson sections for this request:

After all four requests, check your own answers against this list. Each item is something the requirements lessons ask for.

  • Did you mark the unclear words in each request before writing questions?
  • Did you cover all five categories, and especially failure, which is the one most often forgotten?
  • Are your questions neutral, not leading? “How should a clash be defined?” rather than “Back-to-back is fine, right?”
  • Are they about needs, not solutions? “Must the schedule survive a power cut?” rather than “Should it use flash memory?”
  • Did you rank them, with the questions whose answers change the design at the top?
  • Is every assumption written as one, with what it affects and how risky it is, so that nobody mistakes it for a confirmed fact?
  • Does every criterion have concrete values, one event, and a Then that a test can check? Do the refusals say what must not change?
  • Does each non-functional requirement have a quality, a measure, a threshold, and a condition, with no “fast” or “reliable” left in it?
  • For each failure case, did you say how it is noticed, what happens, and what the user sees, and did you say who decides when it is not your decision?

If several items are missing, reread From vague statements to clarification questions and Use cases, user stories, and acceptance criteria, then try one request again without looking at its answer.

  • A vague request hides rules, numbers, people, and failures. Marking the unclear words and going through the five categories finds most of them.
  • The questions that matter most are the ones where different answers lead to different designs.
  • A gap nobody can fill yet becomes an assumption, written down with what it affects, so it can be checked before the design depends on it.
  • Good acceptance criteria use concrete values and check what must not change. They turn words like “fair” and “no clashes” into something a test can follow.
  • Many different answers are good. The test is the same for all of them: is it testable, and does it remove an ambiguity that changes the design?