Bug reports
Last updated
A bug nobody can reproduce doesn't get fixed. “It's broken, please fix ASAP” gives the developer nothing to start from, so the bug waits while people send messages back and forth. In this lesson you'll learn what a report needs so that a developer can see the bug with their own eyes in minutes, tell severity from priority, and turn one of Kap. Ernesto's messages into a report that gets fixed.
By the end of this lesson you can
- Write a bug report with steps to reproduce, expected and actual results, and the environment
- Tell severity and priority apart
- Keep to one bug per report
What a report is for
A bug report has one job: get the bug fixed. For that, a developer has to see the failure themselves, then find the defect behind it (lesson 6.1's chain, run backwards). Everything in a good report serves that: what to do, what should happen, what happened instead, and where.
Pila's team keeps reports as issues on their hosting site, one issue per bug, so each has its own discussion, its own fix, and a link to the pull request that closed it.
The parts of a good report
| Part | Why it’s there |
|---|---|
| A short, specific title | Searchable, and tells the team what it is before they open it. “Screen shows previous number” beats “Screen problem”. |
| Steps to reproduce | Numbered, from the start, exact. If the developer can make it happen, they can fix it. |
| Expected result | What should happen. Sometimes the “bug” is a misunderstood requirement, and this shows it. |
| Actual result | What happened: exact numbers, messages, screenshots. Not “it’s wrong”. |
| Environment | Version, device, browser, time. Many bugs appear only in one place. |
| Severity, and how often | Helps the team decide when to fix it. |
And one bug per report. Two bugs in one report means one gets fixed, the report is closed, and the other is forgotten.
Severity is not priority
Two words that people mix up. The ISTQB glossary defines severity as how much impact a defect has on the software, and priority as how important it is to the business to fix it now. Usually they go together, but not always:
0 of 4 placed right
Two patients can get the same number after a cancel
The barangay’s name is misspelled on the waiting-room screen, the week the mayor visits
Pila crashes if the date is 29 February and the counter page is opened in a browser from 2012
A tooltip on the admin page has a missing full stop
Testers usually suggest the severity; the product owner, Bea, decides the priority, because it depends on what else is going on.
Rewrite Kap. Ernesto’s message
Monday, 9:15, a message from Kap. Ernesto: “PILA IS BROKEN!! The screen shows the wrong number. Patients are angry. Please fix ASAP!!”
Rina goes to the health centre and finds out what happened. The waiting-room TV and the counter computer both run Pila 0.4.0 from staging; the counter uses Chrome. She opens the screen and the counter page, gives out three numbers, and presses “Call next” three times, a few seconds apart. After the third press, the counter page says 3, but the TV still shows 2, until the page is reloaded. She tries 30 presses: it happens 4 times.
Write her report. Use only what she found; mark any guess as a guess.
- Says what goes wrong (not yet)
- Says where (not yet)
- Doesn’t shout (done)
- At least three numbered steps (not yet)
- Says what was pressed on the counter page (not yet)
- Says what the screen should show (not yet)
- Gives the actual numbers seen (not yet)
- Names the version or build (not yet)
- Names the device or browser (not yet)
- Gives a severity (not yet)
- Says how often (not yet)
Spot the trap: “it’s broken, fix ASAP”
Marco gets Kap. Ernesto’s message as it was: “PILA IS BROKEN!! The screen shows the wrong number. Please fix ASAP!!” He has no other information.
What happens if…
Check what you learned
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.
- ISTQB Glossary: severity: the degree of impact a defect has
- ISTQB Glossary: priority: the level of business importance
- GitHub Docs: About issues: where Pila’s bug reports live
- ISTQB Glossary: failure: a report describes a failure; the developer finds the defect