Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

OSP task 1 (2 of 3): Requirements and acceptance criteria

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

45 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

The club wants more

Hillside Sports Club has a booking tool. Now it has a new problem.

"Our courts are full on Saturdays. People want a waiting list. If somebody cancels, the next person should get the court. Also, we do not know if members are happy. Can members give a rating after they play?"

This is the practice scenario for the specialism project. It is our own invention.

Key words

WordWhat it meansExample
RequirementSomething the solution must do or be.Show the waiting list
Functional requirementWhat the solution does.Join a waiting list
Non-functional requirementHow well the solution works.Books in under 30 seconds
Acceptance criteriaClear checks that show a requirement is done.When a booking is cancelled, the first person waiting gets the court
KPIKey performance indicator: a number that shows if the project is a success.Double bookings: 0
ConstraintA limit you must keep to.Python 3.10, 4 weeks
SlotOne court at one hour.court 1 at 10:00
ScopeWhat is in the project and what is not.No online payment

The cells students fill in are left blank in this preview.

Functional or non-functional?

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Five questions find the functional requirements

AskClub example
What goes in? (inputs)Member name, court, hour
What data is needed?The bookings and the waiting list
What happens to the data? (processing)Add a name. Remove a name. Count the place in the line.
What are the rules? (logic means rules)The first person waiting gets a cancelled court. Nobody waits twice for one slot.
Where will it run? (the platform is the device)On a phone and on the desk computer

The cells students fill in are left blank in this preview.

Acceptance criteria say when it is done

"The waiting list works" is not clear. Who decides? Acceptance criteria are clear checks. Anyone can run them and get the same answer.

A good pattern: "When this happens, then that happens." Use numbers and names so the check can be repeated.

From a requirement to checks

RequirementAcceptance criteria (When ..., then ...)
A member can join the waiting listWhen a member joins for a full slot, then they are told their place in the line, for example 1.
A member is not added twiceWhen the same member joins the same slot again, then the tool says they are already waiting.
A cancelled court goes to the next personWhen a booking is cancelled and one person is waiting, then that person gets the booking.
The tool is quickWhen a member makes a booking, then it takes under 30 seconds.

The cells students fill in are left blank in this preview.

Check: is it measurable?

Have a go

Check: is it measurable?

4 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Try it: a criterion as a check

Code: python
waiting = []


def join(waiting, name):
    waiting.append(name)
    return len(waiting)   # the place in the line


# Criterion: the first member to join is told "place 1".
place = join(waiting, "Sam")
print("Place:", place)
print("Criterion met:", place == 1)

# Add a second member. What place should they get?

Make a free account to save your work and track your progress.

KPIs for the club

KPIHow it is measuredTarget
Double bookingsCount in the booking file each month0
Courts empty after a cancellationCount of cancelled slots with nobody bookedFewer than 2 a week
Average member ratingTotal of ratings divided by the number of ratingsAt least 4 out of 5

The cells students fill in are left blank in this preview.

A user story

PartClub example
WhoAs a member
WhatI want to join the waiting list
Whyso that I can get a court if somebody cancels

The cells students fill in are left blank in this preview.

An activity diagram: join a waiting list

flowchart TD
  a([Member wants a slot]) --> b{Is the court free?}
  b -->|yes| c[Book it]
  b -->|no| d{Already waiting?}
  d -->|yes| e[Tell them: already waiting]
  d -->|no| f[Add to the waiting list]
  f --> g[Tell them their place]
  c --> z([End])
  e --> z
  g --> z

Six business analysis models

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Task 1 practice: write the requirements

Write a short requirements document for the Hillside waiting list and ratings. Include these parts. 1. Five functional requirements. 2. Three non-functional requirements. 3. An acceptance criterion for each of five requirements, written as When ..., then ... 4. Two KPIs, each with a target. 5. Three constraints. 6. A scope section that says what is in and what is out. Draw one activity diagram for rating a session. Make every criterion measurable.

A teacher marks this in a college. Nothing you write here is kept: it goes when you leave the page.

Make a free account to save your work, or press Start lab to work through the whole lesson.

Key words crossword

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Final check

Have a go

Final check

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.