QA Interview Hub · Knowledge base · Quizzes · Українська

QA Fundamentals › Bugs

What should a good bug report contain?

A good bug report lets a developer reproduce the failure without asking a single question. It contains a title with the trigger condition, environment, preconditions, minimal steps with concrete values, actual and expected results with the source of the expectation, evidence and a severity estimate. It describes the observed failure, not a diagnosis; a guess about the cause is marked as a hypothesis. One bug, one report.

QA Fundamentals · Bugs and bug reports

The developer replied "cannot reproduce" in five minutes. What was wrong with the report?

A ticket appears in the tracker: "Transfer does not work". The developer opens it and has questions: on which environment, under which user, what exactly was entered, what does "does not work" mean? The ticket goes back to its author, who answers the next day, and another question comes up in the next round. After three exchanges two days are gone and the fix has not even started. This lesson is about what a bug report consists of so that it reproduces without a single question, and why every field exists.

How it works and why. A bug report is a message to a person who did not see the failure and must reproduce it, understand it and fix it. Each field of the template answers a question that person would ask first. If the field is missing from the ticket the question still arises, only it costs more: hours of waiting for an answer.

FieldThe developer's questionWhat to write
TitleWhat is broken and under what condition?"[Module] what happens if the condition"
EnvironmentWhere is it visible?environment, build, browser and version, OS, device
PreconditionsWhat state is the system in?role and account, balance, flags, required data
StepsHow do I repeat it?numbered, minimal, with concrete values
Actual and expectedWhat is the difference and what do we judge by?the fact and the source of the expectation: requirement, mockup, API contract
EvidenceWhat exactly did you see?screenshot, video, log, HAR, request and response
Severity, priority, frequencyHow important is it and how often does it happen?impact estimate, priority suggestion, "5 out of 5"

ISTQB terminology separates three things: a person makes an error (mistake), it leaves a defect in the code, and at run time the defect shows up as a failure. A bug report describes what is observed, that is the failure and the conditions where it is visible. Finding the cause in code is the developer's job, so a diagnosis does not belong in the report: "backend has no validation" is a hypothesis, and if you want to record it, mark it as a hypothesis on a separate line. The ISTQB defect report template also has an identifier, a date, the author, the test object, the context (which test case or activity found the bug), the status and references (for example, to the test case); the tracker fills in the identifier, date, author and initial status on its own.

A weak and a strong report of the same bug

Typical

Title Transfer does not work

Steps I tried to make a transfer.

Actual / expected none

Environment none

The developer knows neither the environment, nor the input, nor what counts as correct. The first question comes within a minute, the answer comes the next day.

Better

Title [Payments] Transfer returns 500 if the amount has 3 decimal places

Steps 1. Enter the amount 100.555. 2. Click "Continue".

Actual / expected POST /api/transfers → 500 / the hint "No more than 2 decimal places"

Environment staging, build 2.14.3, Chrome 129

The condition, the value, the request and the expectation in one place. The developer reproduces it in two minutes and sees where to look: the amount validation.

Figure 1. The same bug in two reports: the difference is in the number of questions the author will have to answer.

Example: from a ticket that gets sent back to a ticket that gets picked up. The initial version:

Title: Transfer does not work
Description: I tried to make a transfer and got an error.
Severity: high

Nothing here is false, but the ticket cannot be acted on. Every line raises a question: where exactly, which amount, which user, what error? The severity "high" is taken from thin air, because without the conditions the impact cannot be judged. The improved version answers these questions in advance:

Title: [Payments] Transfer returns 500 if the amount has 3 decimal places
Environment: staging, build 2.14.3, Chrome 129, Windows 11
Preconditions: user qa_user_03, balance 5,000.00 UAH
Steps:
  1. Open "Transfer to card"
  2. Enter the amount 100.555 and the card 4111 1111 1111 1111 (test)
  3. Click "Continue"
Actual: the banner "Something went wrong"; POST /api/transfers → 500
Expected: the hint "No more than 2 decimal places", no request is sent
  (requirement PAY-142, items 3.1–3.2: the amount is accurate to the cent, extra decimals are rejected)
Reproducible: 5/5; with the amount 100.55 the transfer succeeds
Severity: major (the transfer is impossible for this input)
Priority: medium (my suggestion; the PO decides)
Attachments: video.mp4, transfers.har

What exactly the strong version changed. The title already contains the trigger (3 decimal places), so the ticket can be found by search and told apart from its neighbours. The expectation rests on a requirement, not on "it seems to me": without it the developer is entitled to answer "works as designed". The line "with the amount 100.55 the transfer succeeds" narrows the search area: the problem is in the input, not in the whole feature. The severity is justified by impact, and the priority is given as a suggestion, because the PO assigns it in the end (the difference is covered in the lesson "How does severity differ from priority?").

Limits and alternatives. A template helps but does not replace thinking. Too many fields turn filling in into a formality, so fast teams keep a minimum: title, steps, actual/expected, environment, and add the rest when needed. Some bugs do not fit "steps": intermittent defects that depend on time or load. For them, instead of perfect steps, write the conditions in which the bug was seen, the frequency ("3 of 10") and the evidence: a log with the time, a transaction ID, a HAR. Security defects are often reported through a separate channel or with restricted access, not in a general ticket with every exploit detail. Tickets visible to the customer are also written more calmly: without ratings such as "terrible bug".

Common mistakes.

  • A title such as "Error", "Does not work", "Bug in the cart": the ticket cannot be found or told apart from others, and duplicates multiply.
  • Steps like "then click somewhere there": without concrete values and order, reproduction depends on luck.
  • No expected result: the developer answers "works as designed" and the talk is about taste, not about the requirement.
  • A screenshot without context: it shows the banner but not the URL, the user and the request that caused it. For API bugs the request and response fit better than a picture.
  • Several different problems in one ticket: one gets fixed, the other stays, and the ticket status says nothing. One bug is one report.
  • A diagnosis instead of a fact: "backend is broken" reads as an accusation and may be wrong.

Check yourself

A ticket says: "The cart sometimes shows a wrong total. Chrome. Severity: critical". Name three questions the developer must ask and one field that looks unjustified in this ticket.

Answer

Questions: which items and quantities were in the cart, what counts as the correct total (a requirement or a calculation), how often it happens and after which actions. The unjustified field is severity critical, because without steps and frequency the impact cannot be judged, and the word "sometimes" hides the very condition of the bug.

Why is it better to write "expected: a hint about a 2-decimal maximum (requirement PAY-142)" than "expected: normal behaviour"?

Answer

Because the expectation has a source that can be checked: a requirement, a mockup, an API contract. "Normal behaviour" depends on who reads it, and the developer can legitimately answer that what exists is normal for them. With a source the argument moves from opinions to verification.

In an interview. Junior: A good report has a title that shows what is broken and under what condition, the environment, minimal steps, the actual and expected result, evidence (screenshot, video, a request from DevTools) and severity. The goal is for the developer to reproduce the bug without questions to me. Middle/Senior: I treat a report as a message to a person who did not see the failure, so for each field I imagine their question. I describe the observed failure, not a diagnosis, tie the expected result to a requirement, attach a HAR or a log with a transaction ID, narrow the condition (100.55 works, 100.555 does not) and mark separately what is a fact and what is a hypothesis. I leave priority as a suggestion for the PO. If the ticket comes back with questions, I extend my template instead of only answering in a comment.

More articles in this chapter