Development Basics

Types of Software Testing: Unit, Integration, System, Acceptance

Types of Software Testing: Unit, Integration, System, Acceptance

Software testing types get sorted in more than one way. You can group tests by the scope they cover or by the quality characteristic they verify, and there’s a separate split based on how much of the code the tester can see.

Developers usually write the component-level checks. Test teams take the system-wide runs, and business users decide at acceptance whether the product meets the requirements.

Most explainers squash all of this into one flat list. The ISTQB Foundation Level syllabus v4.0 (2023) keeps the axes apart, with five test levels running from component to acceptance testing and four test types, namely functional, non-functional, black-box and white-box testing.

What Are the Types of Software Testing?

A single test can be described by its level, by how much code the tester gets to see, by the quality characteristic it checks, and by the reason it was run in the first place. Each of those is a separate question, and the table pairs every question with the types that answer it. No single type covers everything, which is why teams combine them.

All of these sit inside the wider software quality assurance process, as one activity among many.

AxisQuestion it answersExample types
Test levelHow much of the system is under test?Component, integration, system, acceptance
Code visibilityHow much code does the tester see?Black box, white box, grey box
Quality characteristicWhich property is checked?Functional, performance, security, usability
Test objectiveWhy does this run happen?Regression, confirmation, smoke, sanity

In the ISTQB Foundation Level syllabus v4.0 (2023), levels and types are kept apart on purpose. A level is about how test work gets organized across a project. A type is about which quality characteristic the work goes after. Most types can run at any level.

Nobody agrees on the count either. Indeed lists 24 types, TestGrid counts 30+, and Brainhub claims over 100. Frankly, the 100+ figure says more about padding than about testing.

The gap mostly comes from lists that mix levels with techniques and methods in one pile.

What Are the Test Levels, and Are There Four or Five?

YouTube player

Five, going by the ISTQB Foundation Level syllabus v4.0. Those are component, component integration, system, system integration and acceptance testing.

Four-level versions (unit, integration, system, acceptance) fold both integration levels into one. The syllabus outline groups them the same way, under a single integration subsection. The ladder is the same either way.

LevelTest objectTypically run byTool examples
ComponentSingle functions, classes, modulesDevelopersJUnit, pytest, Jest
Component integrationInterfaces between componentsDeveloperspytest, Postman
SystemThe assembled applicationTest teamSelenium, Cypress, Playwright
System integrationLinks to other systems and servicesTest teamPostman
AcceptanceThe product in its business contextUsers, product ownerCucumber

ISTQB tells one level from the next using a list of attributes that it says is not exhaustive. The test object is whatever is under test, anywhere from one function to the full system. Test objectives say what the level is meant to find or confirm, and the test basis is the document the tests derive from, such as an interface specification or a business requirement. Then there are the defects and failures a level typically exposes, plus the approach and responsibilities, meaning how the testing is done and by whom.

In sequential development models, the exit criteria of one level often serve as the entry criteria for the next. Iterative models don’t always work that way, and levels can overlap in time.

Most unit tests are written by developers right beside the code, and stubs or mocks stand in for anything slow or external.

Mismatched data formats and wrong field names tend to surface in integration tests, which check the seams between components. Timing problems show up there too.

Acceptance testing validates the product against business needs rather than the specification. Business users run user acceptance testing to confirm the system fits their work. Administrators handle operational acceptance, checking backup, recovery and maintenance. Contractual and regulatory acceptance measures the product against contract terms or legal rules, and alpha and beta testing put it in front of potential or existing customers before release.

Teams outside ISTQB use their own words. Google calls tests small, medium and large. Small covers unit tests and medium covers integration tests, while end-to-end or system tests land in large (Google Testing Blog, 2010).

How Do Black Box, White Box and Grey Box Testing Differ?

Only in how much code the tester gets to see. Black box shows none of it, white box shows all of it, and grey box sits in between.

Black box testing

A black box tester never looks at the code. Behavior gets checked from the outside, and test cases are derived from the software requirement specification, user stories or interface descriptions.

It finds wrong or missing behavior without anyone needing code access. The catch is that code paths no requirement mentions go untested, so black box on its own leaves gaps. You’ll see it mostly at the system and acceptance levels.

White box testing

YouTube player

In white box testing the tests are designed from the internal structure, so they follow the code.

Coverage is how it’s measured. Statement coverage counts the share of statements executed. Branch coverage works on decision outcomes taken instead, and code coverage tools report both as percentages.

ISTQB lists white-box testing as a test type, and the syllabus says all four test types can be applied at every test level. In practice it’s used most often at component level, where developers can see the code.

A project can hit 100% coverage and still be wrong, because that number proves every line ran, not that the product does what the customer asked. I’ve never trusted a coverage figure on its own.

Grey box testing

Grey box gives the tester some internal knowledge, like the database schema or an API contract, but the test itself still goes through the external interface.

A typical check sends a request with Postman, reads the response, then queries the database to confirm the record was written.

It suits web apps with a database behind them. It also works for API checks where the contract is known but the code isn’t, and for security probes by a tester who got partial architecture notes.

For service-based systems, it’s often the practical middle ground. The contract is public and the code isn’t. It’s the least glamorous of the three and probably the most useful day to day.

Functional Testing and What It Verifies at Each Level

YouTube player

What the system does, measured against stated requirements, is the subject of functional testing. It applies at every level from component through acceptance.

Every functional test traces to a requirement, so the line between functional and non-functional requirements decides which tests belong here and which move to the next section.

Each test needs a test oracle, a source that defines the correct result. That’s usually the expected result written into the requirement or into the acceptance criteria on a user story.

A test passes when the actual result matches the expected result. It fails when it doesn’t.

Take a checkout feature. At component level, the discount function returns 10% off for a valid code. At integration level, the cart service sends the correct total to the payment service. A system test has a customer complete checkout from cart to confirmation email, and at acceptance the finance team confirms that invoices follow the agreed pricing rules.

Functional tests confirm what was specified. A requirement nobody wrote has no test.

Non-Functional Testing Types, Mapped to Quality Characteristics

Non-functional testing is about how well the system works, not what it does. Each type targets one quality characteristic.

The ISO/IEC 25010 quality model defines those characteristics, which are functional suitability, performance efficiency, compatibility, interaction capability, reliability, security, maintainability, flexibility and safety. The 2023 revision renamed usability to interaction capability and portability to flexibility, and it added safety (ISO/IEC, 2023).

Not every characteristic has a well-established test type of its own. The table covers the ones that do.

CharacteristicTest typeQuestion answered
Performance efficiencyPerformance, load, stressHow fast is it, and how much load can it take?
SecuritySecurity, penetrationCan an attacker read or change data?
Interaction capabilityUsability, accessibilityCan users finish their tasks?
CompatibilityCompatibilityDoes it work across browsers, devices and operating systems?

Performance, load and stress testing

Sources split this family differently.

Microsoft’s performance testing guidance lists capacity testing and treats spike testing as a subset of stress testing, while Salesforce Trailhead names load and stress as the two main types.

Load testing applies the expected user load and measures what happens. Stress testing pushes past that load until something breaks. Performance testing is the general term that covers both.

Apache JMeter simulates heavy load on a server, a group of servers or a network, per the project’s documentation.

A 2015 survey of load testing in IEEE Transactions on Software Engineering noted that load testing is often used interchangeably with performance testing and stress testing, and then set out its own working definition to tell them apart. So write the load profile into the software test plan instead of relying on the label.

Security and penetration testing

As of November 2026, the OWASP Web Security Testing Guide is at version 4.2 (December 2020), with version 5.0 in development.

That guide is the reference method for testing web applications and web services. Security testing looks for weaknesses that let an attacker read, change or disable data. Penetration testing is the active version, where the tester actually tries the exploit instead of just listing the flaw.

ZAP (formerly OWASP ZAP) is a dynamic application security testing tool, which means it probes a running application from the outside, much like a black box tester would. The project left OWASP in 2023, and Checkmarx has developed it as ZAP since September 2024. It’s still an independent open-source project and doesn’t belong to any foundation (ZAP project documentation).

Usability, compatibility and accessibility testing

In usability testing, real users attempt set tasks while someone records where they stall. Compatibility testing just runs the same build across combinations of browsers, devices and operating systems. Accessibility testing checks the product against WCAG success criteria.

WCAG 2.2 became a W3C Recommendation in October 2023. It defines conformance levels A, AA and AAA, and each level includes every criterion of the levels below it (W3C).

ISO/IEC 25010 now files usability under interaction capability, though the test keeps its old name in most explainers.

Regression, Confirmation, Smoke and Sanity Testing

Confirmation checks a single fix. Regression checks whatever that fix could have touched. Smoke and sanity runs are there to decide whether a build deserves any further testing at all.

TypeTriggerScopeDepth
ConfirmationA defect fixThe one failed testExact repeat of the failure
RegressionAny change to code or environmentPreviously tested behaviorExisting tests, re-run
SmokeA new buildMain functionsWide and shallow
SanityA small changeA few related functionsNarrow and shallow

Confirmation testing, also called retesting, re-runs the test that failed once the fix lands. All it tells you is whether that one defect is gone.

Regression testing hunts for defects that a change introduced or uncovered in areas nobody touched, which is how ISTQB defines this change-related type. A fix can pass confirmation and still break a neighbor.

Because the same checks repeat on every change, regression testing is the first candidate for automation.

Sources don’t agree on smoke versus sanity. The ISTQB glossary lists sanity test as a synonym of smoke test and gives both one definition, a suite covering the main functions that shows whether a build is fit for planned testing to begin.

Many QA explainers split the terms anyway. They call smoke testing broad and scripted, and sanity testing narrow and often unscripted.

Pick one meaning per team and write it into the test plan, because the label alone doesn’t carry the scope. The split causes more arguments than it settles, so whichever you choose, stick with it.

Smoke on every new build, regression before every release. Confirmation goes after each fix, obviously.

A green smoke run proves the build starts and the main paths load. It says nothing about whether the product behaves correctly.

Manual and Automated Testing: Where Each Fits

Automate what repeats and stays stable, and keep people on what needs judgment. Unit tests, API checks, regression suites and load or stress runs all automate well. Exploratory sessions, usability observation, and accessibility calls such as whether alt text actually describes the image need a person.

Exploratory testing is not clicking around. ISTQB describes it as test design, execution and evaluation happening together, with the tester learning the product while the session runs (CTFL v4.0.1).

Session-based test management, developed by Jonathan Bach and James Bach in 2000, made the session the unit of work, meaning an uninterrupted, chartered block of reviewable test effort that produces a session sheet (Bach, STQE, 2000).

A charter fits in one sentence, along the lines of explore a target, with certain resources, to discover certain information. For example, explore the refund flow with a partially shipped order to discover whether the refund matches what shipped.

Manual testing needs no framework before the first test, and it turns up problems no script anticipated. What hurts is that you pay for it again on every run, and the results depend on how closely the tester is paying attention.

Automation flips the cost side. The same check runs at every commit at the same speed, which frees testers for exploratory work, but scripts break when the interface changes and setup and maintenance take real time.

Where does automation stall? The World Quality Report 2024-25 (OpenText, Capgemini, Sogeti) points at two things. 57% of respondents cite the lack of a test automation strategy, and 64% cite legacy systems.

Where Each Test Type Runs: Test Pyramid, CI Pipeline and Tools

The fast tests that pinpoint a fault run first, and there are a lot of them. Slow tests that cover whole user journeys run later, and there are far fewer.

Test pyramid proportions

YouTube player

Mike Cohn introduced the test pyramid in his book Succeeding with Agile (2009).

Unit tests form the base, since they show a programmer exactly where a failure sits. Automated UI tests go at the top, and the aim there is to run as few as possible.

The pyramid fixes a shape, not a percentage. Projects with many integrations or complex interfaces carry more integration and end-to-end tests than a simple service does.

The usual way this goes wrong is the hourglass, with strong unit and end-to-end layers and almost nothing between them, so every integration defect surfaces in slow browser tests.

Pipeline stages

Each stage gates the next, cheapest first. A continuous integration server runs the stages in order and stops at the first red one.

  1. Static analysis comes first. SonarQube inspects code without running it, and its recommended Sonar way quality gate asks for at least 80% test coverage on new code (SonarSource documentation).
  2. Unit tests with JUnit, pytest or Jest run on every commit.
  3. Integration and API tests follow. Postman tests are JavaScript assertions that run after each request returns, and a collection runner executes the whole set (Postman documentation).
  4. End-to-end tests come next, with Selenium, Cypress or Playwright driving a real browser through a complete journey.
  5. Acceptance scenarios run in Cucumber, which reads plain-text Gherkin scenarios and reports pass or fail for each one (Cucumber documentation).
  6. Performance checks with JMeter, Gatling or k6 go on a schedule or before release, not on every push.

Jenkins defines the pipeline as code in a Jenkinsfile, with stages such as Build, Test and Deploy (Jenkins documentation). GitHub Actions starts workflows on events such as a push or a pull request.

Tools per type

ToolTargetsHow it runs
SeleniumWeb browsersWebDriver drives the browser natively
CypressWeb apps, end-to-end and component testsTest code runs inside the browser
PlaywrightChromium, Firefox, WebKitOne API across all three engines
AppiumiOS, Android and desktop appsWebDriver-based, no app recompile

Selenium WebDriver became a W3C Recommendation in June 2018, with Mozilla, Google, Apple and Microsoft supporting it (Selenium documentation).

Cypress runs in Firefox and Chrome-family browsers, including Edge and Electron, and offers only experimental WebKit support, while Playwright ships a WebKit build as one of its three engines.

Gatling and k6 take the code-first route to load testing. Gatling tests are written in Java, JavaScript, TypeScript, Kotlin or Scala, and k6 scripts are JavaScript or TypeScript (vendor documentation).

k6’s documentation treats spike, stress and soak testing as separate guides, so its taxonomy is wider than Salesforce’s two main types.

On the unit side, JUnit covers Java, and JUnit Vintage runs older JUnit tests on the same platform. pytest handles Python with plain assert statements and modular fixtures. Jest is the JavaScript option, built to work with little or no configuration.

How to Choose the Types a Project Needs

Start from risk and release rhythm instead of a list of types. The minimum mix is the smallest set that catches the failures your product can’t afford.

Score each feature by likelihood and impact on a risk assessment matrix, and test the top of the list first.

The length of the software release cycle sets how much manual regression a team can afford. Weekly releases need automated smoke and regression layers, while quarterly releases can carry more manual checking.

SituationMinimum mixAdd next
Two-person team, weekly releasesUnit tests, a smoke gate, two or three end-to-end journeysRegression suite, then a load test before launch
Public API used by partnersAPI and integration tests, regression suiteSecurity testing, load testing
Regulated product (medical, finance)All levels, requirement-to-test traceability, documented test planSecurity and accessibility testing
Site with traffic spikes (ticketing, sales)Smoke gate, compatibility testsLoad and stress testing before each peak

For formal vocabulary there’s ISO/IEC/IEEE 29119. Part 2 covers test processes and Part 3 covers test documentation. Part 4 is test design techniques, Part 5 is keyword-driven testing, and reviews fall under ISO/IEC 20246 (ISO JTC 1/SC 7).

TestRail is one place to record the choice. It organizes test cases into suites and sections and groups runs into plans and milestones. Reports cover traceability and coverage (TestRail documentation).

When a Testing Type Stops Paying Off

A testing type stops paying off when its upkeep costs more than the failures it catches.

End-to-end suites tend to go first. They get slow and flaky, and engineers end up rerunning instead of investigating. Coverage targets mislead in a quieter way, since a percentage shows which lines ran, not whether any assertion checked the result.

Load tests on unstable builds measure defects, not capacity. Acceptance testing without pass criteria is stuck too, because nobody can fail the build and nobody signs off with confidence. And UI automation on a moving interface loses its savings to maintenance, with scripts breaking on each redesign.

Flakiness isn’t a small problem at scale. Atlassian reports that flaky tests caused as much as 21% of master build failures in its Jira Frontend repository and about 15% of Jira backend repository failures, with the reruns wasting over 150,000 developer hours a year (Atlassian Engineering).

The company built Flakinator to detect and manage flaky tests across its codebases.

A neglected end-to-end suite becomes technical debt that slows every merge.

Before adding new tests, prune the ones that never fail and quarantine the ones that flake.

Software Testing Types FAQ

What is the difference between static and dynamic testing?

Static testing examines code and documents without running anything, through reviews and static analysis. Dynamic testing is the one that executes the software and compares actual results to expected ones.

Static checks find defects before a build exists, while only dynamic tests expose runtime behavior such as memory leaks or slow responses.

Is API testing functional or non-functional?

Mostly functional, since it sends requests and checks responses against the specification. The same interface can also be tested for performance and security.

Postman’s documentation lists integration, end-to-end, regression and performance testing among the main types of API testing, so the label depends on what the test measures.

How does end-to-end testing differ from system testing?

System testing covers the assembled application against its requirements, and that includes paths that never touch the interface. End-to-end testing is narrower, following a single complete user journey through the UI, services and database.

The two overlap heavily, and many teams run their system tests as end-to-end tests in a browser.

Can one test belong to several types at once?

Yes. The axes classify different attributes, so one test carries a label from each.

An automated browser script that replays checkout after every release is functional, black box, system level and regression testing in a single run.

Keeping the Test Mix Right as Releases Speed Up

Software testing types stay matched to a product when the team reviews the mix after every release against two inputs: which defects escaped, and how long the pipeline took.

Order matters in that review. Repair or quarantine flaky tests first, because a suite that fails at random hides the signal everything else needs. Next, add a test at the lowest level that would have caught each escaped defect. Last, set a runtime budget for every pipeline stage.

There’s a trade-off, though. A curated suite runs faster, and it also leaves uncaught some defects that a larger suite would have found.

This sequence was checked on 8 November 2026 against ISTQB CTFL v4.0.1. A new syllabus edition would rename levels and types, while the order of review stays the same.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.