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

Free lesson

Task 1 A: KPIs, acceptance criteria and the definition of done

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.

55 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

How do you know you won?

A football manager is hired to make the team better. After a season, how does the owner decide?

Not by feelings. By numbers: points, goals let in, games won at home.

Netheret will pay for your app. It needs numbers too, to know the app made things better. And each part of the app needs a clear test, so everyone agrees when it is finished.

Key words

WordWhat it meansExample
KPIKey performance indicator: a number that shows how well something is going.
TargetThe value a KPI should reach.70% or more
User storyA need written as who wants what, and why.
Acceptance criteriaClear pass or fail checks that show a story is finished.
User acceptanceThe client checking the app and agreeing it does the job.
Definition of doneA checklist every piece of work must pass before it counts as finished.

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

By the end of this lesson

Note

I can write measurable KPIs and acceptance criteria for the Netheret app.

Starter: last lesson

Have a go

Starter: last lesson

3 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

A KPI is a number with a target

A KPI tells Netheret if the app is helping the business. It is a number, worked out from data the app stores.

Each KPI needs three things. What it measures. How it is worked out, from which data. And a target, so you can say "met" or "not met".

Choose KPIs the app can really work out. If the app does not store the data, it cannot count it.

The five Netheret KPIs

KPIWorked out fromExample target
Average time to resolve, by priorityWhen each request was raised and resolvedCritical under 4 hours
Requests resolved at Tier 1The tier of each resolved request70% or more
Open requests older than 2 working daysStatus and the date raisedFewer than 5
Jobs completed on scheduleEach job's planned date and its status90% or more
Knowledge base articles marked helpfulEach article's helpful countRising each month

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

Worked example: resolved at Tier 1

StepValue
Requests resolved this week40
Of those, resolved by Tier 130
30 out of 40 is the same as75 out of 100
So the KPI is75%
Target is 70% or more. Met?Yes

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

Try it: work out the KPI

Code: python
# The tier that resolved each request this week
resolved_by = [1, 1, 2, 1, 3, 1, 1, 2, 1, 1]

at_tier_1 = 0
for tier in resolved_by:
    if tier == 1:
        at_tier_1 = at_tier_1 + 1

percent = at_tier_1 * 100 // len(resolved_by)
print("Resolved at Tier 1:", at_tier_1, "of", len(resolved_by))
print("KPI:", percent, "%")
print("Target met:", percent >= 70)

# Change one 1 into a 2, then press Run. Is the target still met?

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

Check: KPIs

Have a go

Check: KPIs

3 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

Acceptance criteria say when a story is finished

A user story says what a user wants. Its acceptance criteria say how you will check it works.

A clear pattern is Given, When, Then. Given a starting situation. When the user does something. Then this result happens.

Each criterion passes or fails. Two people checking it should get the same answer. The client uses them to accept the app, so they are also user acceptance criteria.

Worked example: criteria for three stories

StoryGivenWhenThen
E2.1 Raise a requestA customer is signed inThey send a request with a 10 character titleIt is saved as new, with a reference such as NTH-0007
E2.1 Raise a requestA customer is signed inThey send an empty titleNothing is saved and the title box says what is wrong
E2.4 Escalate a tierA Tier 1 agent views a requestThey escalate it to Tier 2Its tier becomes 2 and the timeline records who and when
E3.1 Schedule a jobAn engineer has a job at 10:00 for 60 minutesA manager books them at 10:30The booking is refused with a clash message

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

A common mistake

Warning

Many students think KPIs and acceptance criteria are the same. They are not. An acceptance criterion is a pass or fail check on one story, before it is accepted. A KPI is a number Netheret watches over weeks, after the app is in use.

Check: acceptance criteria

Have a go

Check: acceptance criteria

3 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

Your turn: KPIs and criteria

Part 1. Copy the five Netheret KPIs into a table. For each one, say what it measures, which stored data it is worked out from, and a target. Part 2. Choose six user stories from your backlog, from at least three different epics. Write two acceptance criteria for each in the Given, When, Then pattern. Include at least two that check something is refused. Part 3. Write a definition of done for your Task 1 documents.

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.

One definition of done for everything

Acceptance criteria belong to one story. The definition of done belongs to every story and every document.

Write it once, in the first sprint (short block of work), called Sprint 0. In Task 2 each story must pass it. In Task 1 you can use one for your documents, so nothing goes to the marker half-finished.

Worked example: two definitions of done

For a story (Task 2)For a Task 1 document
Every acceptance criterion passesA stranger could understand it
Tested by hand and written in the test logEvery table and diagram has a title and labels
Works with a keyboard and with large textNames match the backlog and the data design
Code has short, clear commentsTechnical words are explained for the client

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

Match each term to its job

Have a go

Loading…

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

Exit quiz

Have a go

Exit quiz

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.