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
| Word | What it means | Example |
|---|---|---|
| KPI | Key performance indicator: a number that shows how well something is going. | |
| Target | The value a KPI should reach. | 70% or more |
| User story | A need written as who wants what, and why. | |
| Acceptance criteria | Clear pass or fail checks that show a story is finished. | |
| User acceptance | The client checking the app and agreeing it does the job. | |
| Definition of done | A 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 questionsA 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
| KPI | Worked out from | Example target |
|---|---|---|
| Average time to resolve, by priority | When each request was raised and resolved | Critical under 4 hours |
| Requests resolved at Tier 1 | The tier of each resolved request | 70% or more |
| Open requests older than 2 working days | Status and the date raised | Fewer than 5 |
| Jobs completed on schedule | Each job's planned date and its status | 90% or more |
| Knowledge base articles marked helpful | Each article's helpful count | Rising each month |
The cells students fill in are left blank in this preview.
Worked example: resolved at Tier 1
| Step | Value |
|---|---|
| Requests resolved this week | 40 |
| Of those, resolved by Tier 1 | 30 |
| 30 out of 40 is the same as | 75 out of 100 |
| So the KPI is | 75% |
| Target is 70% or more. Met? | Yes |
The cells students fill in are left blank in this preview.
Try it: work out the KPI
# 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 questionsAcceptance 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
| Story | Given | When | Then |
|---|---|---|---|
| E2.1 Raise a request | A customer is signed in | They send a request with a 10 character title | It is saved as new, with a reference such as NTH-0007 |
| E2.1 Raise a request | A customer is signed in | They send an empty title | Nothing is saved and the title box says what is wrong |
| E2.4 Escalate a tier | A Tier 1 agent views a request | They escalate it to Tier 2 | Its tier becomes 2 and the timeline records who and when |
| E3.1 Schedule a job | An engineer has a job at 10:00 for 60 minutes | A manager books them at 10:30 | The 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 questionsYour 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 passes | A stranger could understand it |
| Tested by hand and written in the test log | Every table and diagram has a title and labels |
| Works with a keyboard and with large text | Names match the backlog and the data design |
| Code has short, clear comments | Technical 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