Database testing · Products table
Active product “Smart watch” has price 0.00
P2 · MajorBeginnerProducts table
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
Which product would be given away?
Steps to reproduce
- Query the products table
- Look for active products with no price
Expected result
Active products have a price above 0 (a CHECK rule blocks 0)
Actual result
Product 52 is active with price 0.00, so it can be bought for free
Why it matters
This is a major (P2) bug. The feature still works in part, but users get wrong information or a broken step, and many will notice. It should be fixed before or soon after release.
Testing tip
Look for zero and empty values in money columns. Imports and admin edits often leave them behind.
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.