Skip to content

A bug report a developer can fix the first time

B2Bnetwork team · · 7 min

Testing and quality

In brief

A good bug report lets a developer reproduce the problem without going back to the tester with questions. It contains a title that says what is broken and where, numbered steps to reproduce with data, the expected and actual result, the system version and environment, severity and priority, and evidence: a log, a screenshot, a request ID. One report describes one defect. A report never contains real personal data, passwords or tokens, even when the defect showed up on production data.

What a bug report contains

The ISTQB Foundation Level 4.0 syllabus gives three objectives for a defect report: to give those who fix it enough information to resolve the issue, to make it possible to track the quality of the work product, and to provide ideas for improving the development and test process. The syllabus also lists the typical contents of a report. In practice it comes down to these fields:

FieldWhyExample
ID and titleFind and understand the ticket quicklyInstant transfer: amount of 0.01 PLN rejected with code 500
Date, author, roleKnow whom to ask2026-11-20, payments team tester
Test object and environmentReproduce under the same conditionsVersion 4.12.0, UAT2 environment, Chrome 130
ContextKnow which test exposed the defectTest case PAY-118, pre-release regression
Steps to reproduceRepeat the problemA numbered list with input data
Expected and actual resultUnderstand what the defect isExpected: transfer submitted. Actual: error 500
Severity and prioritySet the order of fixesMajor, high priority
EvidenceShorten diagnosisLog with request ID, screenshot, recording
Status and referencesTrack the ticket's pathOpen, linked to user story PAY-77

Most bug tracking tools have these fields in their template. The problem is rarely a missing field. More often the field is filled in so that nothing useful follows from it.

Title and steps: how to write them

The project manager reads the title in a list of dozens of tickets, so it has to stand on its own. A good title follows a pattern: where, what happens, under what conditions.

Weak titleGood title
Bug in transfersInstant transfer: amount of 0.01 PLN rejected with code 500
Login does not workSMS code login: a second code within one minute is not sent
Something wrong with the reportMonthly sales report omits correcting invoices from the last day of the month

Write the steps to reproduce as if they will be read by someone who has never seen the feature:

  1. Sign in with a test account that has a PLN account.
  2. Select Transfers, then Instant transfer.
  3. Enter an amount of 0.01 PLN and the recipient account from test data set B.
  4. Click Next, then Confirm.

Each step is one action. The data is stated explicitly, not as “some small amount”. When the defect occurs only sometimes, say how many times it appeared out of how many attempts and what differed between them. Defects that come and go often have their cause in the environment or in the test, as described in the article on flaky tests.

Severity vs priority

Severity and priority are two different things and should be kept separate in every ticket.

  • Severity says how big the defect's impact is on the system and its users. It is usually rated by the tester.
  • Priority says how urgently it must be fixed. It is set by the product owner or the project manager, because it depends on deadlines and business needs.
ExampleSeverityPriority
A typo in the bank's name on the sign-in page before a campaignLowHigh
Failure of a rarely used archive reportMajorLow
Incorrect interest calculation on savings accountsCriticalHighest

The severity scale is defined in the test strategy or the project's test plan, so everyone rates the same way. Without a shared scale every team has “all critical”, and the test report loses its meaning. How to connect the scale to the release decision is described in the article on test plans and test strategies.

Evidence: logs, screenshots, IDs and data

What saves a developer the most time is evidence that leads straight to the cause:

  • a request or correlation ID from the application log, which lets the developer find the right entry in the logging system described in the article on observability;
  • the exact time the defect occurred, with the time zone;
  • a screenshot or a short recording, especially for UI defects;
  • the API request and response, when the defect concerns an integration;
  • the test record ID, for example an application or policy number in the test environment.

Be careful what you attach. A screenshot with a real name and national ID number, or a log with a session token or database password, is a leak once it is in a bug report, because tickets are read by many people, including on the vendor side. Replace personal data with test data or blur it, following the rules in the article on test data and GDPR. Strip tokens and passwords from logs before pasting, and if one has ended up in a ticket, report it right away, because the secret must be revoked, as described in the article on secrets in applications.

The ticket lifecycle and the most common reasons for rejection

The ISTQB syllabus lists example ticket states: open, deferred, duplicate, waiting to be fixed, awaiting confirmation testing, reopened, closed, rejected. Each team defines its own workflow, but every state should have an owner and an exit condition.

The most common reasons a ticket goes back to the tester:

  1. Cannot reproduce. Data, the version or a step the tester did automatically is missing.
  2. Duplicate. The same defect was reported earlier in different words. Before reporting, search the list by keywords and error code.
  3. Not a defect. The system works as the requirement says, and the requirement is unclear. In that case, raise a question for the analyst instead of a defect.
  4. Several defects in one. Some were fixed, some were not, and nobody knows whether to close the ticket.

After a fix, the tester runs a confirmation test with the same steps and data, and regression covers the area around the fix. Reports from exploratory testing sessions follow the same rules, as described in the article on exploratory testing. How such a process works in a test team at a software vendor is shown in the project on a team of testers and automation engineers.

Questions and answers

What must a bug report include?

At a minimum: a title saying what is broken and where, steps to reproduce with data, the expected and actual result, the system version and environment, and the severity. Add evidence, ideally a log with a request ID or a screenshot. Without the steps and the environment, a developer usually cannot reproduce the defect and the ticket goes back to the tester with questions.

What is the difference between bug severity and priority?

Severity describes the defect's impact on the system and its users, for example data loss or a stopped process. Priority describes how urgently it must be fixed and follows from a business decision. A typo on the home page before a campaign has low severity but high priority. A failure in a rarely used report can be major and still wait for the next release.

What should I do when a bug cannot be reproduced?

Report it anyway if it could be serious, and describe honestly what you know: the time it occurred, the data, the request ID, the number of attempts and the differences between them. Attach logs and a recording. Mark the ticket as intermittent. Such defects often come from a race condition, a timeout or data shared by several tests.

Can production data be used in a bug report?

Not in a form that identifies a person. If the defect showed up on production data, describe it with test data of the same structure or give a technical record ID that the team can check in a controlled environment. Blur personal data in screenshots before attaching them, and strip passwords and tokens from logs.

What it looks like in a project

Planning testing for your project? Talk to a test manager.

Let's talk

Read more: Testing and quality