Track: test automation in depth · Lesson 33 of 41 · 14 min

Automated test reporting and failure triage: from a red CI to a decision

How to read and build automated test reports, classify failures (product, test, environment), speed up analysis with traces and share results with the team.

A red CI is a question, not an answer

An automated test failure has one of three causes: a product defect, a test defect or an environment problem. Your job is to answer which one as quickly as possible and hand the result to the right person.

Triaging an automated test failureTest failedMany tests failed at once with timeouts?EnvironmentDid a locator, copy or layout change?TestBehavior doesn't match the requirement?Product → bugFails intermittently with no changes — flaky: separate analysis and quarantine
Triaging an automated test failure. Three questions in turn sort a failure into a product defect, a test defect or an environment problem — and route it to the right person.

Classifying failures

Symptom Most likely
Fails consistently after a specific product commit Product defect
Fails after a layout, copy or locator change Test defect
Dozens of tests fail at once with timeouts Environment (server, database, network)
Fails every other run with no changes Flaky — the test, or a race in the product
Fails in only one browser Product defect (cross-browser)

What every failure report needs

  • A test name that reads like a requirement: "promo code SALE10 takes 10% off the total".
  • The assertion error: expected 112.5, received 125.
  • A screenshot, video or trace at the moment of failure.
  • Console and network logs (in Playwright, they're in trace.zip).
  • The build version, environment and browser.
  • Links to the commit and the PR.

Reporting tools

  • Playwright HTML report and trace viewer — the steps, DOM and network for every action.
  • Allure — test history, failure categories, attachments; supports pytest and JS.
  • JUnit XML — the standard every CI understands.

A report for the team, not just the automation engineer

Developers and managers don't need an HTML page with 400 tests. They need:

  1. How many passed / failed / skipped, compared with the last run.
  2. New failures (green before, red now) — the most important ones.
  3. Known failures with a link to the bug.
  4. The suite's stability trend.

In QA Tools a runner sends results through the API (see CI/CD for automated tests), and runs sit next to manual testing in the release test plan. A failure can be turned into a defect with every field filled in.

From a failure to a bug

[Cart] Promo code SALE10 doesn't reduce the total for size M items
Environment: staging, build 26.3.0-rc2, Chromium 131
Automated test: checkout.spec.ts › SALE10 reduces the total (fails consistently since commit a1b2c3d)
Steps: 1. Cart with TSHIRT-M ×1 ($125.00) 2. Enter SALE10 3. Apply
Expected: $112.50   Actual: $125.00, message "Discount applied"
Attachments: trace.zip, screenshot, x-request-id: 7f3c…

The title formula and fields are in the bug report template.

The 24-hour rule

A new failure on main is triaged within the working day: a bug in the tracker, a test fix, or quarantine with an owner (suite stability). A red CI nobody looks at teaches the team to ignore automated tests.

Key takeaways

  • Every failure is a product, test or environment defect — classify it first.
  • A team report shows new failures, known ones with bug IDs and the trend — not 400 rows of HTML.
  • A new failure on main is triaged within a day, or people stop reading CI.

Check yourself

  1. 1. 60 tests failed at once with timeouts. What do you check first?

  2. 2. Which failures matter most in a report?

  3. 3. Which of these is NOT required in a failure report?

Practice: Automation architecture