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

QA Fundamentals › Situational questions

A developer says "it works for me", and the bug reproduces for you. What do you do?

When it works for the developer but not for QA, both observations are true, so the task is to find the difference in conditions, not a winner. Compare code (build), configuration and flags, data, environment and order of actions, checking your own side first. The report gives the build, account, request time and evidence, with the hypothesis marked as one. Without reproduction the bug is not closed.

QA Fundamentals · Situational questions

"It works for me", writes the developer. For you the bug reproduces every time. Who is right?

Both. The developer sees that in their conditions everything works, and you see that in yours it breaks, and both observations are true. The argument "it works for me" versus "it does not for me" is pointless until you find how the conditions differ. This lesson is about looking for the difference and not the winner, and about writing the message so the developer reproduces the bug themselves.

How it works and why. System behaviour depends on several things: code (the build version), configuration and flags, data (account, state, history), environment (browser, OS, network, time and locale) and the order of actions. If the results differ, at least one of them has changed. So the talk starts not with "listen, this is a bug" but with a list of variables that can be compared. First you check your own side (a stale cache, an outdated build, the wrong role, a misread requirement), because people most often err in their own assumptions, and then you narrow the difference: the same scenario with another account, another browser, the previous version.

Two ways to answer "it works for me"

Arguing

"It is a bug, reproduce it"

No conditions, no version, no evidence: the developer cannot reproduce it and also feels pressure.

Showing

Conditions, evidence, a hypothesis

Build, account, time, request, what else was checked. The difference is visible and on a call it is reproduced in five minutes.

Figure 1. The goal is not to win the argument but to shorten the way to the cause.

Example: from an argument to a reproducible message. The weak version:

It doesn't work for me, reproduce it on staging, it is definitely a bug.

Nothing to hold on to: which build, under which user, what exactly does not work. The developer will try "on their side" and write the same "works". The strong version:

PAY-231 reproduces on staging, build 2.15.1, Chrome 129,
account qa_user_03. Steps are in the ticket, 5 of 5 times.
Evidence: a video, a HAR, request time 14:07:32 (UTC+2),
  the header X-Request-Id 8c1f... (shortened).
What else I checked: on 2.14.9 it works; with account
  qa_user_07 it works; in an incognito window it reproduces.
Hypothesis (not a fact): depends on the new_checkout flag
  in the account qa_user_03.
I can show it on a call in 5 minutes or give the account.

Now the developer has something to check: the same build, the same account, the request time to search the server logs. The difference between accounts and versions narrows the search before they even start. The hypothesis is marked as a hypothesis, so it does not sound like an accusation. And if the cause turns out to be a configuration difference between environments, that is a valuable finding of its own: the same divergence may exist between staging and production.

Limits and alternatives. Sometimes a bug really depends on data or time and does not reproduce on the developer's side without a shared session: then a call with screen sharing works best, because the question "what do you click" disappears. If it cannot be reproduced at all, the bug is not closed silently: everything known is recorded (conditions, evidence, frequency), the status is set to "needs information", and you return when a new case appears. It also happens that QA is wrong: a stale cache, another role, a misread requirement. Checking yourself before the message saves reputation.

Common mistakes

  • Repeating "it reproduces for me" with no new data: the talk goes in circles.
  • Not stating the build and account: the developer checks another version and honestly answers "works".
  • Sending only a screenshot: the effect is visible but not the request that caused it.
  • Assuming the developer is wrong: sometimes the mistake is in QA's conditions (a stale cache, another role).
  • Closing a bug because "the developer could not reproduce it": the bug stays, but now nobody knows about it.

Check yourself

On staging the bug reproduces, and locally for the developer it does not. Name three variables you compare first.

Answer

The code version (the build on staging and the local branch), configuration and flags (environment variables, feature flags), data (account, state, existing records). Then browser and network, time and locale. After the comparison the bug can be reproduced locally by matching one variable.

Why should a hypothesis about the cause be marked separately from facts?

Answer

Because facts are verified and hypotheses are not: if it is presented as fact the developer may go the wrong way or take it as an accusation. With a mark it helps instead of hindering, and if it turns out to be wrong, trust in the rest of the report stays.

In an interview. Junior: First I look for the difference in conditions: environment, build, configs, flags, user data. I give evidence (a video, a HAR, the time to search the logs) and offer to reproduce it together on a call. Middle/Senior: I treat both observations as true, so I look for the difference and not the winner: code, config, data, environment, order of actions. First I check my own side, then narrow (another account, browser, earlier version) and write a message with the build, account, request time, request ID and an honestly marked hypothesis. If the cause is a divergence between environments, that is a finding of its own, as the same may exist in production. Without reproduction I do not close the bug but leave it with the status "needs information".

More articles in this chapter