Software Testing / Learning brief

Tom adds a report and failure pictures to his Selenium suite

What this means in plain language

Tom makes a one-file HTML report and a screenshot when a test fails.

Understand the full idea, step by step

Analogy: a flight recorder and a photo of the dashboard. After a bad landing, investigators read the recorder and look at a photo of the dials at that moment. They do not need to fly it again.

The report is the recorder summary, the photo is the screenshot on failure, and the single sealed envelope is the self-contained report.

PLAIN WORDS · 1 in this section
dashboard
a screen showing live figures at a glance

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Hands-on steps for this tool. The people and the app are invented.

What this brief simplifies: Selected primary passages actually read 7 November 2026; Selenium/version limits stated in lesson. Daily List, rules and observations are synthetic, not an executed live-app test.

Sources for this brief — 3 sources
  1. Implementation-specific

    pytest-html user guide ↗ — pytest-dev contributors · Creating a self-contained report; extra content APIs; preserving extras and report phases (selected actual primary passages read 7 November 2026; live publisher documentation; no fixed edition claimed).

    Creating a self-contained report; extra content APIs; preserving extras and report phases. Named standard/version or product-specific guidance only; no universal employer practice inferred. · Checked 2026-11-07

    Selected actual primary passages read on the access date, not every linked guide. Live documentation, tagged package metadata and W3C2018 have distinct scopes. Daily List rules, people, identifiers and observations are synthetic. Educational sequences do not claim installation, vendor-package or live-app execution.

  2. Implementation-specific

    pytest fixture guide ↗ — pytest-dev contributors · Fixture scopes and teardown; yield-fixture lifecycle and teardown limitations (selected actual primary passages read 7 November 2026; live publisher documentation; no fixed edition claimed).

    Scopes and parameter caching; yield-setup failure; broader/narrower dependency lifetimes. Product/configuration-specific guidance; not a universal team practice. · Checked 2026-11-07

    Selected actual primary passages read, including the specific fixture/marker/collection boundaries described. Daily List rules, people and paths are synthetic; no pytest/xdist execution or complete production fixture design is claimed. Live documentation has no fixed edition claimed.

  3. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal · Synthetic Daily List rule and observations stated in the lesson; not a publisher application fact or an executed live-app result.

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HERESelenium reports: an HTML report and a screenshot when a test failsTurn pytest runs into a easy-to-share HTML report, take a screenshot when a Selenium test fails, and attach both so a failure can be understood without a re-run.Opens at L0 Explain simply · about 16 min

Related briefs