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

QA Fundamentals › Types of testing

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.

Figure 1. Both sets of checks concern the same transfer. Neither replaces the other.

The non-functional characteristics of the quality model work well as a "did we think about it" checklist:

CharacteristicQuestionExample for a transfer
PerformanceHow much time and resources it takesp95 response time under load
SecurityWho can see and change whatAccess to another account, a session after logout
UsabilityIs it understandable and accessibleThe error text says what to fix
CompatibilityDoes it work in different environmentsBrowsers, screen sizes, OS versions
ReliabilityDoes it survive failures and recoverA 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

Typical

"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.

Better

"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.

Figure 2. A non-functional requirement is testable only when it has a threshold and conditions.

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.

In the interview. Junior: Functional testing checks what the system does: whether the fee is calculated correctly, whether the transfer goes through. Non-functional testing checks how well: speed, security, usability, compatibility. Middle/Senior: I ask two questions about every feature: does it do the right thing, and does it do it well enough. For the second I require measurable criteria (a threshold and conditions), otherwise it cannot be verified, and I choose depth by risk: where money and data are involved, both performance and security get attention.

More articles in this chapter