Bug reporting

Bug report

A bug report is the written record of a defect: what happened, where, how to make it happen again, and what should have happened instead.

ISTQB defines a defect report as documentation of the occurrence, nature and status of a defect, and lists bug report as its synonym. A good one lets a developer reproduce the bug on the first try without asking a question.

At a glance

ISTQB definition"Documentation of the occurrence, nature, and status of a defect", with bug report listed as the synonym (ISTQB)
SummaryAbout ten words that name the problem, not a suggested fix (Mozilla)
Steps to reproduceNumbered actions from a known starting point; Mozilla calls them the most important part of any report. See steps to reproduce
Expected vs. actualTwo separate lines, with facts kept apart from guesses about the cause (Mozilla)
EnvironmentBrowser and version, operating system, build and the page URL, checked on the latest build first (Chromium)
EvidenceA screenshot or recording of the actual result, and a reduced test case when the page is complex (Chromium)
SeverityHow much the defect affects the product, judged from the report. See severity vs. priority
ScopeOne bug per report, so each can be reproduced, assigned and closed on its own (Mozilla)
Captured withOverlayQA Visual Bug Capture

Why it matters

A developer fixes what they can see. ISTQB defines a defect report as the documentation of a defect's occurrence, nature and status (ISTQB), and the "occurrence" half is the part most reports skip: a one-line complaint with no steps sends the developer hunting for a state they may never reach, and the bug comes back as "cannot reproduce". Mozilla's guidelines call the steps the most important part of any report and ask for a summary that explains the problem rather than a solution (Mozilla). Chromium adds a check that saves everyone a round trip: verify on the latest build before filing, because the bug may already be fixed (Chromium).

What does a bug report include?

Examples

A report that bouncesA report that gets fixed
"Login is broken."Summary: Sign in stays disabled after a valid password in Safari 17. Steps: 1. Open /sign-in/ in Safari on macOS. 2. Enter a valid email and password. 3. Click Sign in. Expected: the dashboard opens. Actual: the button turns gray. Every time (5 of 5). Screenshot attached.
"The pricing page looks off."Summary: Pro card 24 px shorter than Team card at 1024 px. Steps: 1. Open /pricing/ in Chrome on Windows 11, 1024 px wide. Expected: the plan cards align at the bottom. Actual: the Pro card ends 24 px higher. Every time. Screenshot and computed CSS attached.

Common mistakes

Frequently asked questions

What is the difference between a bug report and a defect report?

Nothing in practice. ISTQB defines a defect report as documentation of the occurrence, nature and status of a defect, and lists bug report as its synonym. Teams say bug report; test standards say defect report.

How long should a bug report be?

As long as it takes to reproduce the bug and no longer. Mozilla's guidance is a summary of about ten words, then precise numbered steps with one action per line, the expected result, the actual result and the environment.

Who writes bug reports?

Whoever finds the bug: testers, developers, designers, support staff, clients and users. The format is the same for everyone, and a report that includes the steps, the environment and a screenshot gets fixed regardless of who filed it.

Do I need a screenshot in a bug report?

Yes, whenever the result is visible. Chromium lists screenshots among the things a report should include. The steps let a developer reach the state; the screenshot proves what they should see there, and for a visual bug the element's computed CSS is the fastest route to the fix.

What should a bug report leave out?

Guesses presented as facts, a second bug, and the proposed fix. Mozilla asks for the problem rather than the solution, for speculation on its own line, and for one issue per report, so each can be reproduced, assigned and closed on its own.

Sources: ISTQB Glossary, defect report, Mozilla, Bug Writing Guidelines, Chromium, Bug Reporting Guidelines.

Last updated October 22, 2026