QA StrategyHow to Write a Good Bug Report (Template and Examples)
The anatomy of a bug report developers can act on straight away, with a copy-paste template, before-and-after examples, and the mistakes that get reports bounced back.

You can't test every possible input. A quantity field that accepts 1–99 has 99 valid values and an infinite number of invalid ones. Equivalence partitioning and boundary value analysis are the two techniques that let you test it thoroughly with a handful of cases. They also appear in almost every ISTQB exam and QA interview.
The idea: split the inputs into groups (partitions) that the system should treat the same way. If one value in a group works, the others probably do too; if one fails, the others probably fail the same way. So you test one value per partition.
| Partition | Example value | Expected |
|---|---|---|
| Below range (≤ 0) | -5 | Rejected |
| Valid (1–99) | 40 | Accepted |
| Above range (≥ 100) | 150 | Rejected |
| Not a number | "abc" | Rejected |
| Empty | "" | Rejected or default to 1 |
| Decimal | 2.5 | Rejected or rounded (check the spec) |
Six tests cover the main behaviours. Notice the partitions that aren't about the range at all, like type, emptiness and decimals. Those are often where bugs hide.
Bugs cluster at the edges of partitions, because that's where developers write < instead of <=, or count from 0 instead of 1. BVA tests the values on and right next to each boundary.
For a valid range of 1–99:
Two-value BVA catches most off-by-one errors; three-value adds a check just inside each edge.
guests > capacity + 1, or uses <= where it should use <, so 7 people get booked into a 6-person room.Time ranges have two edges, the start and the end of the booking:
Test 7, 8, 64 and 65 characters, plus empty. Also check whether leading or trailing spaces count toward the length.
In practice you use both together:
For the 1–99 quantity field you get roughly: -5, 0, 1, 40, 99, 100, "abc", "". That's eight tests that would catch most bugs in that field.
Boundaries exist everywhere:
The quickest way to make these techniques second nature is to use them on an app with real boundary bugs. In QAUnlocked Practice Labs, the BookIt booking app hides defects at exactly these edges (capacity, opening hours, dates in the past), and the store lab has a quantity field worth testing at 0 and -1. Try the techniques above and see how many you catch.
Be the first to comment.