Course outline
Lab: write a bug report with evidence
Reproduce one bug from the template bug tracker in the real shop, capture the evidence, and report it so a developer could fix it.
A bug is only useful once someone else can reproduce it. A good report says where, what you did, what you expected and why, what happened instead, and shows the evidence.
The Academy's template bug tracker lists BUG-07: a coupon counted twice after a quick double click on Apply. In this lab you reproduce it in the real shop and write the report yourself, before you read the finished example.
What you need
- The bug report template from the Academy's templates page (or any blank document).
- The shop in a browser whose developer tools you can open (F12), to watch the network calls.
- A screenshot tool.
Steps
- Put "The Cedar Tree" (19.00) in the basket and open the basket page.
- Open the developer tools on the Network tab. Type CEDAR10 in the coupon field and click Apply twice, quickly.
- Look at the discount lines and the total, and at the calls to /api/coupons/apply in the Network tab. Take a screenshot of each.
- Reload the page and check whether what you saw stays. Try once more with a single click, to see the difference.
- Write the report: a title that names the place and the symptom, numbered steps, the test data, the expected result quoting REQ-03, the actual result, severity and priority with a reason for each, the environment, and the evidence.
- Only now open the worked example in the Academy's bug report template (it is BUG-07) and compare it with yours line by line.
Hints
Stuck? Open one hint at a time, and try again after each one.
Hint 1
A good title answers two questions: where is it, and what goes wrong? "Coupon bug" answers neither.
Hint 2
The expected result comes from the requirement, not from your opinion. Quote it.
Hint 3
Severity is how bad the damage is; priority is how soon it must be fixed. They are decided separately.
Done? Record it
Sign in to QAIA to record this lab and keep track of the labs you finish.
Finished the steps and compared your work? Mark the lab done to keep it with your Academy progress.
The planted bugs
This lab is about one of the shop's planted bugs. Compare your report with the template's example BUG-07: title, steps, expected and actual, and the evidence it names.
Sign in to see the planted bugs this lab is about. They are kept off this page, so nobody reads them by accident before trying.
Try the lab before you look: a bug you find yourself teaches far more than one you read about.
Learn the skill
Free tools that help with this lab