Skip to content

How much does software testing cost: what drives the budget

B2Bnetwork team · · 6 min

Testing and quality

In brief

The cost of software testing depends mainly on risk and scope: how many systems and integrations a change touches, how often you release, how much work goes into test environments and data, and what evidence an auditor or regulator expects. You build the budget from a list of areas and their risk, not as a percentage of the project cost. The most expensive test is often the one you skipped: a production defect costs a fix, a new release, customer support and sometimes a penalty.

What the cost of testing is made of

A testing budget covers more than tester hours. When an offer gives one figure for "testing", break it down, because each component grows for a different reason.

ComponentWhat it coversWhat drives it up
Test analysis and designreading requirements, test cases, input data and expected resultsvague requirements, many business rules
Test executionmanual, exploratory and business acceptance testinga large regression suite, frequent releases
Automationframework, scripts, CI runs, reportingan unstable environment, a UI that changes often
Environmentsservers, licenses, copies of dependent systems, service stubsmany systems, no automated environment setup
Test datapreparation, masking, resetting before each runpersonal data, complex dependencies between records
Management and reportingplan, schedule, acceptance report, coordination with vendorsseveral vendors, audit requirements
Fixes and retestingverifying fixes, further regression roundsdefects found late, weak code quality

The last two lines are the ones most often missing from a first estimate, and they later explain the overrun. Every round of fixes means retesting and often a full regression run.

Factors that change the budget

The same login screen can take an hour to test in an internal tool and several days in a bank. The difference comes from factors worth writing down before you talk about price:

  1. Business risk. Money, customer data and regulatory compliance need deeper testing than a cosmetic change in a rarely used view. How to set priorities is covered in risk-based testing.
  2. Number of integrations. Each dependent system means another environment, more data and people on the other side you have to coordinate with.
  3. Release frequency. A weekly release with manual regression means paying for regression every week.
  4. State of the documentation. Without requirements, the tester first has to reconstruct them from conversations and from how the system behaves.
  5. Environment availability. A queue for one shared environment can stop testing for days.
  6. Formal requirements. An audit, a regulator or an industry standard requires a trail: who checked what, when, and with what result.
  7. Non-functional testing. Performance, security and accessibility need separate skills and tools.

How to estimate the testing effort

The ISTQB Foundation Level 4.0 syllabus describes four estimation techniques: ratios from previous projects, extrapolation from early results in the current project, Wideband Delphi (several people estimate independently and then reconcile the differences) and three-point estimation. The last one is the easiest to show to management, because it states the uncertainty up front.

For each area, the team gives three numbers: optimistic (a), most likely (m) and pessimistic (b). The estimate is E = (a + 4m + b) / 6, and the standard deviation is (b − a) / 6.

An example for the math: testing a billing module is estimated at a = 20, m = 30 and b = 52 person-days. E = (20 + 120 + 52) / 6 = 32 person-days, with a deviation of about 5. The honest answer for management is roughly 32 person-days, most likely between 27 and 37. A wide gap between a and b is a sign that the area needs to be understood better first, not a reason to write down the average.

An estimate only makes sense next to its assumptions: the number of fix rounds, environment availability, who prepares the data. Those assumptions belong in the test plan, because when they change, the cost changes.

Manual or automated testing in the math

Automation is not cheaper by definition. It is cheaper when a test runs often and the feature is stable. The calculation below is an example for a regression suite that takes 4 person-days by hand, with 24 releases a year.

ItemManual regressionAutomated regression, year 1Automated regression, year 2
Building the framework and scripts040 person-days0
Execution96 person-days0 (run by CI)0
Script maintenance, 1 day per release024 person-days24 person-days
Result analysis, half a day per release012 person-days12 person-days
Total96 person-days76 person-days36 person-days

With 4 releases a year, the same math works against automation in the first year. The second variable is maintenance: flaky tests double the "result analysis" line, because someone has to check every red result. Where to start so the numbers add up is covered in Test automation: where to start.

Pricing models and comparing offers

Testing is usually priced in one of three ways:

  • Fixed price for an agreed scope, for example acceptance testing of one implementation. It works when the scope is known. Every change in scope comes back as a contract amendment.
  • Time and materials, billed for the days actually worked. Flexible when requirements change, but you need your own progress control.
  • A managed testing service with a monthly fee and agreed indicators: regression time, number of releases, response time. It suits a product developed over years. This model is covered in more detail in software testing outsourcing.

When you compare offers, check that each one covers the same things: the number of retest rounds, test data preparation, environments, the final report and ownership of the scripts. An offer that is a third cheaper often simply leaves out regression after fixes.

At B2Bnetwork we have been testing systems for banks, insurers, telecom operators and manufacturers since 2015. When a team wants to cut the cost of manual regression, we start by choosing the scope by risk, and only then build test automation with a framework that stays in the client's repository.

Questions and answers

What percentage of a project budget should go to testing?

There is no single percentage that fits every project. An internal tool with a handful of users needs less testing than a payment system. It is better to start from a list of areas, assess the risk of each and estimate the effort, then calculate the percentage at the end as a sanity check. If it comes out very low, regression or retesting is usually missing.

How can you reduce the cost of testing without increasing risk?

Three approaches work most often. Testing requirements and APIs earlier finds defects before they travel through later stages. Automating a stable regression suite takes repetitive work off people. Automated setup of environments and data cuts idle time. Cutting scope without a risk analysis lowers the cost only on paper, because the defect comes back later as an incident.

Can you get a testing quote without analyzing the system?

You can get a range, but not a reliable budget. A quote needs a list of areas, integrations and test types, the release frequency and the state of environments and data. A sensible first step is a short analysis, after which the quote rests on written assumptions rather than guesses.

When does test automation start to pay off?

When the manual regression hours you save exceed the cost of building and maintaining the scripts. With frequent releases and stable features this usually happens within the first year; with rare releases it happens later or not at all. Count the regression hours per release, multiply by the number of releases and compare with the build and maintenance cost.

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

Let's talk

Read more: Testing and quality

All in Testing and quality →