Skills / Software testing and QA / Writing a great bug report

Software testing and QA, lesson 2 of 8

Writing a great bug report

A developer can only fix a bug they can see for themselves. The best testers write reports that make the bug appear on the first try.

A good bug report contains:

  1. A clear title saying what is wrong and where: "Checkout: Pay button stays disabled after entering a valid card", not "Payment broken!!"
  2. Steps to reproduce, numbered and exact, starting from a known point: "1. Sign in as a test user. 2. Add any item to the cart. 3. Go to checkout..."
  3. Expected result: what should happen
  4. Actual result: what really happened, including any error message, copied exactly
  5. Environment: device, operating system, browser and version, app version, and which test account
  6. Evidence: a screenshot or short screen recording, and console or log errors if you can get them
  7. Severity: how bad the impact is (a crash or data loss is far more serious than a typo)

Habits that make reports better:

  • Reproduce it at least twice before reporting, and note if it happens only sometimes
  • Narrow it down: does it happen in another browser? With another account? Every fact you add saves the developer time
  • One bug per report, so each can be tracked and closed
  • Search first to avoid duplicates
  • Stick to facts; never blame anyone

A short report that reproduces the bug is worth more than a long one that does not.

Try it: Find a small bug or annoyance in any app or website you use (a confusing message, a layout problem). Write a full bug report for it using the seven parts above.

Check yourself

1. Which is the better bug report title?

2. Why include exact steps to reproduce?

3. You find three different bugs on one page. How many reports?