Where the Terminology Confusion Comes From
Most introductory test material treats “test level”, “test type”, “test phase” and “test technique” as if they were synonyms. They are not. They answer four different questions, and a test plan that doesn’t separate them produces the same defect being chased three times in three places while an entire quality attribute goes untested.
Here are the four questions, in the order you actually ask them:
- Level — how big is the piece under test?
- Type — which quality characteristic am I verifying?
- Technique — where do my test cases come from?
- Stage — when in the delivery process does this run?
“I wrote an integration test” answers one question. “I wrote a performance integration test derived from boundary values, running on every pull request” answers all four — and only the second sentence can be reviewed, estimated or argued with.
One Map for Four Concepts
Every test you ever write sits at one coordinate on each of these four axes. The axes are independent: choosing a level does not choose a type, and choosing a technique does not choose a stage.

When a team argues about testing, the argument is almost always about one axis while both sides think they are talking about the same one. “We need more integration tests” (level) is answered with “but we already check performance” (type). The map exists to stop that.
Test Levels: Unit, Integration, System, Acceptance
A level is defined by scope: how much of the system is live while the test runs. Scope then determines owner, environment and runtime.
Unit. One function, class or module, in memory, with everything external replaced by a test double. Owned by the developer who wrote the code. Runtime in milliseconds. Finds: wrong branches, wrong arithmetic, mishandled nulls, off-by-one errors, bad state transitions. Does not find: anything caused by the way two components agree — wrong column names, serialization mismatches, transaction boundaries, wrong HTTP status codes. A unit test passes happily against a mock that lies.
Integration. Two or more components talking to each other, usually with at least one real dependency: a database, a message broker, a neighbouring service. Owned by the developer or an automation engineer. Runtime in hundreds of milliseconds to seconds. Finds: contract mismatches, schema drift, connection and transaction handling, error mapping between layers. Does not find: whether the business flow as a whole makes sense to a user.
System. The whole deployed application in a test environment, driven through its public surfaces — UI, public API, scheduled jobs. Owned by the test team. Runtime in seconds to minutes per case. Finds: broken end-to-end flows, configuration errors, environment-specific failures, non-functional problems under realistic conditions. Does not find: algorithmic errors cheaply. A rounding bug in an interest calculation will eventually surface here, but you’ll see it as “the invoice total is wrong” and spend an hour locating it — information a unit test would have given you in 40 milliseconds with the exact input.
Acceptance. The same system, but the question changes from “does it work?” to “is this what was asked for?” Owned by the product owner, the business user, or a contract. Runtime: whatever a human needs, plus whatever the automated acceptance suite costs. Finds: misunderstood requirements, missing cases nobody specified. Does not find: defects in code paths the business never thinks about.

How to Draw the Boundary of Each Level
Use a mechanical rule, not a feeling: if a test crosses a process boundary, it is no longer a unit test. Another service, a real database, a file system, a clock you don’t control, a browser — any one of these moves the test up a level.
The rule matters because boundary drift is paid for twice. First in duration: a suite of 800 “unit” tests that each open a database connection runs in minutes instead of seconds, and a suite that takes minutes stops being run on every save. Second in stability: every crossed boundary adds a source of non-determinism — network timeouts, shared test data, leftover state from the previous test. A test that fails for a reason unrelated to the code under test teaches the team to re-run instead of investigate, and from that point the suite no longer protects anything. (On diagnosing that failure mode in practice: flaky testleri teşhis etmek, in Turkish.)

The honest alternative to the rule is a test double. Replacing the dependency keeps the test at unit level and keeps it fast; it also means you must cover the real integration somewhere else. (Mocking ve stubbing, in Turkish.)
Test Types: Functional and Non-Functional
A type answers: which quality characteristic are you verifying?
Functional tests ask does it produce the right result? Given a cart with two items and a 10% coupon, is the total correct? Given an expired token, is the response 401? Functional testing is what most people mean by “testing”, and it is the only type many teams ever do.
Non-functional tests ask how well does it do it? This is a family, not a single thing:
- Performance — response time under expected and peak load, throughput, resource usage.
- Security — authorization on every endpoint, injection resistance, secret handling.
- Usability — can a first-time user complete the flow without instruction?
- Compatibility — browsers, screen sizes, OS versions, older API clients.
- Accessibility — keyboard navigation, contrast, screen-reader labels, focus order.
- Reliability — behaviour when a dependency is slow or down.
Non-functional requirements are rarely written down, which is exactly why they are never tested. “The page must load” is in the story; “within 2 seconds on a 3G connection” is not. If it isn’t written, write it — that’s a static testing finding, and the next section explains why that’s the cheapest kind.
Structural tests ask did I exercise the structure of the code? Coverage-driven testing lives here: you look at which branches no test touches and add cases for them. Coverage is a gap-finder, not a goal.
Change-related tests ask did the change do what it promised and nothing else?
Regression and Re-testing Are Not the Same
Re-testing (confirmation testing) runs the exact steps that reproduced the defect, on the build that contains the fix. It answers one question: is this specific bug gone?
Regression testing runs tests around the fix — the same module, callers of the changed function, flows that share the modified data — to answer a different question: did the fix break something that used to work?
Confusing the two is the most common reason a closed bug reopens. The tester re-tests, sees the original symptom gone, closes the ticket, and the side effect introduced by the fix ships. The discipline is simple: every defect fix gets both, and the re-test case usually becomes a permanent member of the regression suite, which is also how the suite grows out of control if nobody prunes it.
Levels and Types Are Orthogonal Axes
Every type can be applied at every level. The type stays the same; the scope and the tooling change. Take one feature — search returns results for a query — and watch it split across four levels:
- Unit, functional: the query parser turns
"red shoes" -size:42into the expected filter object. - Integration, functional: the search service called with that filter object returns the three matching rows from a seeded database.
- System, functional: typing
red shoesin the UI and pressing Enter shows three result cards. - Acceptance, functional: a product owner confirms that the ranking of those three results matches what the business considers relevant.
Now hold the level axis still and move along the type axis for performance on the same feature:
- Unit: a benchmark asserting the parser handles a 500-character query in under 5 ms.
- Integration: the search endpoint responds in under 200 ms for a seeded dataset.
- System: 200 concurrent users searching for 10 minutes, p95 under 1 second, no error rate increase.
Three different tests, one type, three levels, three different defects found. This is why “we test performance” is not a plan.
Test Techniques: Where Your Cases Come From
A technique is a case-derivation method. It is independent of level — you can apply equivalence partitioning to a unit test and to a UI test.
Black-box techniques derive cases from the specification:
- Equivalence partitioning — group inputs that the system should treat identically, test one value per group.
- Boundary value analysis — test the edges of those groups, where the bugs live.
- Decision tables — for rules with several conditions: “premium customer AND order over 100 AND domestic address → free shipping”. Each rule combination is a row, each row is a test.
- State transition testing — for anything with a lifecycle: order states, subscription states. Test valid transitions and the invalid ones that should be rejected.
White-box techniques derive cases from the code: statement coverage (every line executed at least once) and branch coverage (every decision taken both ways). Useful for finding untested paths, worthless as a target — 100% coverage with no assertions proves nothing.
Experience-based techniques derive cases from the tester: exploratory testing in time-boxed sessions with a charter, and error guessing based on where this team’s defects usually hide. These find what the specification never mentioned, which is why they cannot be replaced by automation.
Boundary Value Analysis with a Small Example
Rule: an applicant is eligible if their age is between 18 and 65 inclusive.
Three equivalence classes: too young (≤17), valid (18–65), too old (≥66). One value per class gives three tests — and those three tests pass even if the developer wrote > instead of >=. Off-by-one errors live on the edges, so you test the edges: 17, 18, 65, 66. Add an invalid-input case, and you have a complete small suite. Random values add runtime, not information.
// eligibility.ts
export function isEligible(age: number): boolean {
if (!Number.isInteger(age) || age < 0) {
throw new RangeError("age must be a non-negative integer");
}
return age >= 18 && age <= 65;
}
// eligibility.test.ts (vitest)
import { describe, expect, it } from "vitest";
import { isEligible } from "./eligibility";
describe("isEligible — equivalence classes", () => {
it.each([
[10, false], // too young
[30, true], // valid
[80, false], // too old
])("age %i -> %s", (age, expected) => {
expect(isEligible(age)).toBe(expected);
});
});
describe("isEligible — boundary values", () => {
it.each([
[17, false], // just below lower bound
[18, true], // lower bound
[65, true], // upper bound
[66, false], // just above upper bound
])("age %i -> %s", (age, expected) => {
expect(isEligible(age)).toBe(expected);
});
});
describe("isEligible — invalid input", () => {
it.each([-1, 3.5, NaN])("rejects %s", (age) => {
expect(() => isEligible(age)).toThrow(RangeError);
});
});
Seven value-based cases plus three invalid-input cases, each one justified by the specification. Deriving test data this way also keeps each test independent of shared fixtures — see test verisi yönetimi (in Turkish).
Static Testing: Finding Defects Without Running Anything
Static testing examines artifacts without executing them: requirement reviews, design reviews, code review, linters and static analyzers, dependency and secret scanning.
It is the cheapest place to find a defect because nothing has been built yet. An ambiguous acceptance criterion — “the system should respond quickly”, “handle invalid input gracefully” — is a defect in the requirement. Report it before the sprint starts, not after you’ve written a test you can’t assert on.
Two rules make static testing real rather than ceremonial. First, reviewing a user story must produce written output: either a clarified criterion or a logged question. Second, static analysis runs in CI and blocks, otherwise its warnings become background noise within a week.
How to Use This Map on a Real Project
Take one user story and run it through the four axes before writing any code.
- Review the acceptance criteria statically. Every criterion must be observable and have a concrete expected value. Rewrite the ones that don’t. Missing non-functional criteria get added here — response time, authorization, accessibility.
- List the testable behaviours, one per criterion, plus the error paths the criteria forgot.
- Assign a level to each behaviour using the process-boundary rule. Pure calculation and validation → unit. Anything that depends on a contract between components → integration. Anything that only makes sense as a whole flow → system. Business confirmation → acceptance.
- Assign a type. Most behaviours are functional. Explicitly ask which non-functional types apply to this story; write “none, and here’s why” if that’s the answer.
- Pick a technique per behaviour. Input ranges → boundary values. Rule combinations → decision table. Lifecycles → state transitions. Novel or risky UI → an exploratory session.
- Assign a stage. Fast and deterministic → every commit. Slower integration → pull request. Full system suite and load tests → nightly or pre-release.
How many tests per level? The answer is risk, not a pyramid shape. A payment calculation with twelve rules deserves thirty unit tests and one system test. A thin CRUD screen over a well-tested API may deserve one system test and nothing else. The pyramid is a description of what usually results from this reasoning, not a quota to fill.
One more thing to watch for when the map is missing: the same behaviour gets tested at two levels by two people who never spoke, while some area — typically authorization on non-happy paths, or error handling when a dependency times out — belongs to nobody and gets tested at no level at all. Writing the level/type assignment down, even in a plain table attached to the story, is what makes those gaps visible.
For the underlying process these steps plug into, see temel test süreçleri and test seviyeleri (both in Turkish).
Four Mistakes Beginners Make Most Often
Testing everything at the UI level. A browser test for a validation rule is a hundred times slower and far less stable than the unit test that covers the same rule. Fix: push each check to the lowest level that can still fail for the right reason.
Saying “I wrote tests” without naming a type. It almost always means functional only, so performance, security and accessibility ship untested. Fix: state level, type and technique in the test name or the story’s test plan.
Growing the regression suite forever. Every fixed bug adds a case, nothing is ever removed, and eventually the suite takes so long nobody waits for it. Fix: review the suite on a schedule and delete cases whose risk no longer exists or whose coverage is duplicated at a lower level.
Never testing non-functional requirements. They aren’t in the story, so they’re not in the plan, so they surface in production. Fix: make “which non-functional types apply?” a required question in story refinement.
What to Do Next
Open your issue tracker and take the last 20 closed defects. For each one, write two columns: at which level could this have been caught, and which type of test would have caught it. Spend ten minutes per defect, no more.
The result is a distribution, and the distribution tells you where your suite has a hole. If twelve of twenty were logic errors caught in system testing, your unit layer is thin. If five were timeouts and schema mismatches, your integration layer barely exists. If three were accessibility or performance complaints from users, you have a type gap, not a level gap. Add tests to the level that let each class of defect through — not to the level you are most comfortable writing in.
Then continue with the pieces this map points at: API test otomasyonu for the integration level, and neden test ederiz if you want the risk argument behind step 6 above (both in Turkish).