Database testing · Reports
November report includes an order from 31 October
P3 · MinorExperiencedReports
Want to find it yourself first? This page gives away the answer. Play this bug on a fake app screen and see if you can spot it in three tries.
The clue
Read the WHERE clause, then check every row against it.
Steps to reproduce
- Run the orders query for dates from 1 Nov
- Check each row’s date
Expected result
Only orders on or after 1 Nov
Actual result
Order 302 from 31 Oct 23:40 is included
Why it matters
This is a minor (P3) bug. It does not stop anyone, but it looks careless and makes people trust the product less. It is usually fixed in a normal sprint.
Testing tip
Dates near midnight break when the database and the screen use different time zones. Test orders placed around 23:30–00:30.
How to find bugs like this
Database bugs show up when you look at the tables: duplicate rows, joins that double totals, deleted users still active, values cut short or saved in the wrong type. When you test, try these checks:
- Run the query yourself and count the rows.
- Look for duplicates that differ only in case or spaces.
- Check deleted and archived records.
- Compare stored values with what the user typed.