Functional and non-functional testing: what is the difference?
Functional testing checks what the system does: business rules, inputs and outputs, conformance to requirements. Non-functional testing checks how well it does it: speed, security, usability, compatibility and reliability. A non-functional requirement is written with a measurable threshold and conditions, otherwise there is nothing to test it against, and the line between the groups is blurry, so it helps to name the risk a check covers.
QA Fundamentals · Types of testing
The transfer calculates everything correctly, but the confirmation takes 14 seconds. Is that a bug?
The transfer test cases pass: the amount is debited, the recipient sees the money, the 1% fee is exact. Yet at peak hours a user stares at a spinner for fourteen seconds and presses "Confirm" a second time. Functionally everything is fine, but the product is hard to use. This lesson covers the two questions every feature is tested against, why the answers are obtained differently, and how to make sure the second question does not stay without a requirement.
How it works and why. Every feature gets two questions. The first: does it do what it should? That is functional testing: inputs and outputs, business rules, state transitions, conformance to requirements. The second: how well does it do it? That is non-functional testing: speed, security, usability, compatibility, reliability. ISTQB CTFL 4.0 relies on the ISO/IEC 25010 quality model: functional suitability (completeness, correctness, appropriateness) is one characteristic, and the rest are the non-functional ones.
The split is not for the sake of terms. Functional behaviour is checked with a click and a comparison with the expected result, but non-functional behaviour cannot be seen with one click: speed needs load and measurement, security needs attacker scenarios, compatibility needs a set of devices. Different tools, different environment, different timing: so non-functional testing has to be planned on its own rather than hoping it "happens" during functional testing.
One feature, two questions
Functional: "what does it do?"
A transfer of 1000 UAH debits 1000 UAH and a 10 UAH fee.
An amount above the balance is rejected with an explanation.
The recipient sees the money in the history.
Non-functional: "how well?"
95% of transfers confirm within 2 s at a peak of 200 requests per second.
Other people's accounts are not reachable by a swapped id.
The form works in Safari on iOS and with a keyboard.
The non-functional characteristics of the quality model work well as a "did we think about it" checklist:
| Characteristic | Question | Example for a transfer |
|---|---|---|
| Performance | How much time and resources it takes | p95 response time under load |
| Security | Who can see and change what | Access to another account, a session after logout |
| Usability | Is it understandable and accessible | The error text says what to fix |
| Compatibility | Does it work in different environments | Browsers, screen sizes, OS versions |
| Reliability | Does it survive failures and recover | A network drop mid-transfer does not duplicate it |
The 2023 revision of ISO 25010 renamed some of them: usability became "interaction capability", portability "flexibility", and a safety characteristic was added. For an interview it is enough to know the substance: the groups are the same.
Example: from "should be fast" to a testable requirement. The most common reason non-functional testing does not happen is not laziness but a requirement that cannot be verified.
A performance requirement
"A transfer should be fast"
The tester opens a transfer once, on a test stand, and answers "feels fast". A month later someone else says "slow" about production. There is nothing to settle the argument with.
"p95 ≤ 2 s at 200 requests/s"
There is a number, a condition and a way to measure. The test either passes or fails, with the same result for anyone who runs it.
So the first thing a QA Engineer does when a non-functional requirement is missing is ask "how fast? under which conditions? on which device?" and record the answer. If the business does not know, propose a sensible value and ask to confirm it. The second thing: choose depth by risk. For an internal admin panel with ten users a load test is overkill, for a public transfer it is not.
Limits and alternatives. The border between the two groups is blurry. Checking "someone else's order returns 403" is both a business rule about permissions and a security test. In ISTQB a test type is the purpose of a check, types can be combined and performed at any level: functional testing exists in component tests and in system tests alike. Arguing about the label is pointless, naming the risk a check covers is useful. Functional should not be confused with black-box: the first says what we check, the second where the tests come from.
Common mistakes.
- Treating functional green as the end of the job: the system is correct but slow, insecure or inconvenient.
- Postponing non-functional work "for later": architectural performance problems are expensive to fix right before release.
- Equating usability with "looks nice": it also means understandable messages, accessibility and the number of steps.
- Measuring speed on a developer laptop or an empty database: the result does not carry over to real conditions.
- Writing requirements without numbers ("fast", "reliable"): they cannot be verified.
Check yourself
Requirement: "The catalogue should open fast". A tester opened it once on a stand and wrote "passed". Why is that not a check?
Answer
The requirement has no threshold or conditions, so "passed" proves nothing. One opening on an empty stand does not show behaviour under load and with a realistic data volume. Agree on a number (for example p95 ≤ 1.5 s for N users) and measure under those conditions.
A user without rights gets 403 for someone else's order. Is that a functional or non-functional test?
Answer
Both views are valid: it is a business rule about permissions and also a security check. The label matters less than the risk: making sure data does not leak to others. Test types can be combined.