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

QA Fundamentals › Situational questions

How do you estimate the time for testing a task?

A testing estimate is a forecast with uncertainty, so it is broken into components and given as a range with stated assumptions. The components are requirements analysis, test design and data, execution, retests and regression of the affected area; retests and data are most often underestimated. The range uses minimum, most likely and maximum, what is excluded is named, and afterwards the estimate is compared with the actual.

QA Fundamentals · Situational questions

A manager asks how long testing will take. Is "two days" an estimate or a guess?

At planning the team discusses the task "Add a bank card". The manager asks: "How much does QA need?" The answer "well, two days" sounds confident, but there is only a feeling behind it. When the requirements turn out to be incomplete and the first retest fails, "two days" become five, and trust in QA's estimates drops. This lesson is about how to make an estimate you can defend: break it down, show the assumptions and name a range.

How it works and why. An estimate is not a promise but a forecast with uncertainty. So it needs three things: what it consists of, what it depends on and how reliable it is. ISTQB CTFL 4.0 names ratio-based estimation, extrapolation from history, Wideband Delphi (expert estimation in a group) and three-point estimation among the techniques. For daily work two usually suffice: break the task into components and compare with the history of similar tasks, and express the uncertainty as a range with a minimum, a most likely value and a maximum.

The components of testing a task are more or less stable: requirements analysis and questions, test design and data preparation, execution (positive, negative, integrations, browsers), retests after fixes, regression of the touched area. Most often underestimated are retests and data: one cycle of fixes is rarely the last, and preparing accounts, cards and the environment takes more than it seems. Coefficients are added for the novelty of the functionality, the quality of requirements, the stability of the environment and the number of systems involved.

What a task estimate consists of

Requirements1.5 hTest design, data3.5 hExecution6 hRetest, 2 cycles3 hArea regression2 hAbout 16 h in total: 2–3 working days
Figure 1. The most likely values of the components. Execution is the biggest, but retests and data together take almost as much.

Example: from "two days" to an estimate that can be discussed. The typical answer:

Two days.

It can be neither checked nor adjusted. The improved version:

Task: "Add a card" (form + validation + API)
Components, h (from – to):
  requirements and questions      1 – 2
  test design and data            3 – 4
  execution (+/-, API, browsers)  5 – 7
  retest, 2 cycles                2 – 4
  regression of the payment area  2
  Total                          13 – 19 → 2–3 working days
Assumptions: requirements do not change; the environment is available;
  test cards are ready.
Biggest uncertainty: card validation. If requirements stay unclear,
  first 0.5 day for clarification.
Not included: performance, mobile browsers.

What changed here. The components are visible, so the manager sees where the time goes: if it must be faster, the concrete thing is discussed, for example reducing the browsers, not "pushing QA". The range of 13–19 hours honestly expresses the uncertainty, and the three-point formula (minimum + 4 × most likely + maximum) / 6 with a most likely value of 16 gives about 16 as well. The assumptions are written down: if the requirements change, it is clear why the estimate changed, and it does not look like a failure. What is not included is named separately so that performance does not appear in expectations later.

Limits and alternatives. If the requirements are vague, the honest answer is: first allocate time for clarification, and give the estimate after it. Some teams estimate relatively, in story points, and then testing is part of the overall story estimate rather than counted separately. If testing runs in parallel with development (shift-left), the "after development" duration is shorter, and the main estimate is the calendar days to readiness. An estimate is best calibrated by comparison: after the task you record the actual and compare it with the forecast, and then in later estimates you can see that you systematically underestimate (usually retests and data). A hidden "just in case" pad is harmful: it shows up in comparison and trust drops. A reserve is better shown explicitly.

Common mistakes.

  • One number with no components and assumptions: it cannot be discussed and becomes a promise.
  • Forgetting retests, data and regression: the estimate covers only the first run.
  • Estimating only the happy path and not counting negative scenarios and browsers.
  • Quietly adding a pad: when it is noticed, trust in all estimates drops.
  • Never checking the estimate against the actual: a systematic error does not get corrected.

Check yourself

A manager asks for an estimate and the requirements are described in two sentences. What do you answer instead of a number?

Answer

State that the estimate depends on clarifications and propose first allocating a small amount of time (for example half a day) for questions about the requirements. Give a range after that. If a number is needed now, give it with an explicit assumption and a wide range, not a point value.

Why is the range "13–19 hours" better than "16 hours"?

Answer

Because a range shows the uncertainty and lets the manager plan with a reserve. A single number is perceived as a promise, so any deviation looks like a failure. With a range, a deviation within 13–19 is normal work, and going beyond it signals that the assumptions changed.

In an interview. Junior: I break the work into requirements analysis, test design, execution, retests and regression, add time for risks and give the estimate as a range. If the requirements are vague, I first take time for clarification. Middle/Senior: An estimate is a forecast with uncertainty, so I show the components, the assumptions and what is not included, and express it as a minimum, a most likely value and a maximum. I compare with the history of similar tasks and after the task compare with the actual to calibrate the systematic underestimation of retests and data. I show the reserve explicitly instead of hiding it in the numbers.

More articles in this chapter