The Failed Test: Debugging Automation Like a Senior · Lesson 6 of 6 · Bonus module

The Write-Up: Product Bug or Test Bug

Every debugging session ends with a verdict and a write-up. The verdict names the owner; the write-up decides whether the fix lands today or bounces back.

By Shahriyar · Updated

Three verdicts, three owners

Naming the bucket, with evidence, is the deliverable. "It fails sometimes" is not a verdict.

What a developer needs

▸ A report that gets fixed the same day
Title: Cart total drops the discount when the cart is edited
       after a coupon is applied

Steps: 1. Add SKU-104 (qty 1)   2. Apply SAVE10 — total $35.99
       3. Change qty to 2       4. Total shows $79.98 (discount gone)

Expected: $71.98 (10% held)     Actual: $79.98
Evidence: trace.zip attached — step 3's PUT /cart responds 200
          with discount:null    Commit: a8d3c42, chromium headless
Frequency: 10/10 on CI and locally

Why "cannot reproduce" happens

It happens when you hand over a conclusion instead of evidence. Steps, data, a trace and a frequency leave nothing to bounce.

Grounded in how failure reports get actioned — and bounced — on real teams

All lessons in The Failed Test: Debugging Automation Like a Senior

  1. The Four Questions That Sort Any Failure
  2. Reading the Traceback Like a Senior
  3. Shrinking the Search Space
  4. Flaky or Broken: Prove It With a Number
  5. It Only Fails in CI
  6. The Write-Up: Product Bug or Test Bug