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

QA Fundamentals › Bugs

What do you do if a bug doesn't reproduce?

A bug that does not reproduce is not closed right away: it points to a hidden condition that changes between attempts. Conditions are varied one at a time: version, config, data, time, speed, network, cache, session, device. Frequency, time to the second and request ID are recorded to find the case in the logs. Risk decides the effort: a possible double charge stays open, a cosmetic issue is documented and closed.

QA Fundamentals · Bugs and bug reports

A bug was seen twice and now it does not reproduce. Close the ticket?

While checking a cart, a coupon was applied twice and the discount doubled. QA takes a screenshot and files a ticket, and the next day the developer replies "cannot reproduce" and moves it to Cannot reproduce. The bug has not gone anywhere: QA and a user who wrote to support saw it, and nobody knows when it will show up next. This lesson is about why a bug "does not reproduce", how to narrow the cause and what to do when reproduction never succeeds.

How it works and why. A defect shows up deterministically when all the conditions needed for the failure coincide: the code version, the data state, the order and speed of actions, time, environment. When a bug "floats", one of the conditions stays hidden and changes from attempt to attempt. So reproduction is not repeating the same clicks but hunting for the hidden condition. The work goes from simple to complex: first reproduce in the same conditions, then change one factor at a time and watch when the bug disappears or appears.

SuspectSignHow to check
Version and settingsNot seen on another environment or after a deployCompare the build, config, feature flags
Data and account stateThe bug is tied to a particular user or orderTake the same data, role, balance, action history
Time and time zonesOnly at night, at the start of a month, after a DST changeChange the system time or time zone, a fixed clock on the test environment
Races and speedThe bug appears with fast actions or a slow networkDouble click, Network throttling in DevTools, a repeated request
Cache and sessionDisappears in a private windowClear the cache, cookies, localStorage, compare with a clean profile
Load and dependenciesOnly in working hours, when third-party services failLogs with timestamps, monitoring, request limits
Browser, device, languageThe bug is only on mobile or with another localeA browser matrix, device emulation in DevTools

Close it or document it

Typical

"Cannot reproduce" and Close

The information disappears. Next time a user, not QA, will see the bug, and there will be no new data, because nobody saved the old one.

Better

Document it and keep it visible

Frequency, time, ID, hypotheses checked. The ticket stays open with a label or in Cannot reproduce, and a new case is added to it.

Figure 1. A non-reproducible bug does not go away. The only difference is whether data is left for the next attempt.

Example: from "seen once" to a reproducible report. The initial version: "A coupon was applied twice. Screenshot attached." The developer did not reproduce it, because their only option is to repeat the steps on a fast local environment. QA went down the table. Double application looks like a double request, and a double request happens when a button is pressed twice before the response returns. They turned on the 3G Network throttling preset in DevTools (called Slow 3G before Chrome 127), clicked "Apply" twice quickly and saw two POSTs with the response 200. Result: 7 of 10 attempts. Now the report looks like this:

Title: [Cart] A coupon is applied twice (intermittent, ~3/10)
Environment: staging, build 2.14.4, Chrome 129, Windows 11
Observed: 3 of 10 attempts (QA), 1 support request
Time of the case: 18 Nov, 14:32:10-14:32:14 (UTC+2), qa_user_03
Request ID: req-7f3a (example), POST /cart/coupon → 200 twice
Checked and not confirmed:
  - another browser (Firefox): not reproduced in 10 attempts
  - a clean profile: not reproduced
Confirmed: Network → 3G, double click: 7 of 10
Hypothesis (not a fact): the button is not disabled until the response
Ask for the developer: server logs around 14:32 for req-7f3a

It has four things that were missing. The frequency (3 of 10 at first, 7 of 10 with throttling) shows the bug is conditional. The exact time and the request ID let the developer find the record in server logs without reproducing the bug. The list of what was checked and not confirmed saves several rounds of questions. And the hypothesis is marked as a hypothesis, so it does not sound like a verdict.

Limits and alternatives. The effort spent searching must be limited. For a small cosmetic bug it is right to spend half an hour and document it, while for a possible double charge of money the search goes on until the cause is found or data for analysis appears. Seriousness and risk decide how much time is justified. If the bug comes from production, it is often data rather than steps that help: logs, request tracing, tools such as Sentry or session replay. So it can be right to ask the developers to add logging at the suspicious place so that the next case records itself. Logs and recordings rotate, so collect them at once, before they are erased. During exploratory testing it is useful to record the screen so as not to reconstruct actions from memory.

Common mistakes.

  • Closing the ticket yourself as "cannot reproduce" after two attempts: a bug seen by several people does not disappear through silence.
  • Not writing down the time and the user at once: a day later the logs cannot be found, while a time accurate to the second and a request ID settle the matter.
  • Changing several conditions at once: when the bug disappears, it is unclear which factor was the cause. Change one at a time.
  • Reproducing only on your own machine and a fast environment: you need the same data, network and device as the person who saw the bug.
  • Writing a hypothesis in the ticket as a fact: if it is wrong, the developer goes in the wrong direction.

Check yourself

A double-charge bug was seen in production twice in a month, and it does not reproduce on staging. What do you do besides trying to reproduce?

Answer

I collect data from production: the time and transaction IDs of the two cases, server logs, network requests, user data (per the privacy policy). I look for what they share: device, network speed, a double request. I propose adding logging and monitoring in the payment spot, and I keep the ticket open and propose a high priority to the PO because money is at risk.

You are checking a bug that disappears in a private browser window. What cause does this suggest and what do you check next?

Answer

A private window has a clean cache, cookies and storage, so the cause is most likely browser state: a stale cache, an old token or an old setting in localStorage. Next I clear the cache, cookies and localStorage one at a time to see which cures the bug, and then clarify whether it is a defect of the application (it does not handle the state) or only an artefact of my profile.

In an interview. Junior: First I repeat in the same conditions: environment, build, user, data. I collect logs, network and time, look for special conditions (a race, a cache, a time zone) and ask the developer to look at the server logs. If it does not reproduce, I document what I found and the frequency instead of just closing it. Middle/Senior: I take non-reproducibility to mean a hidden factor, so I change conditions one at a time and watch when the bug disappears: cache, data, time, network speed, a double request. I record the time to the second, the request ID and the user so the developer can find the case in the logs without reproducing it. The time spent depends on the risk: for a possible double charge the ticket stays open and asks for extra logging, for a cosmetic bug documentation is enough.

More articles in this chapter