What is the difference between functional and non-functional testing?
FundamentalsJunior
In shortFunctional testing checks what the product does, against the requirements. Non-functional testing checks how well it does it, such as speed, usability, accessibility, security and compatibility.
Model answer
Functional testing checks what the product does: I tap Add to cart and the item is in the cart, with the right price. The reference is the requirements and acceptance criteria.
Non-functional testing checks how well it does it:
| Type | Question | Example finding |
|---|---|---|
| Performance | Is it fast enough? | The cart takes 9 seconds to open on mobile data |
| Usability | Is it easy to use? | Users can’t find where to enter a coupon |
| Accessibility | Can everyone use it? | A screen reader announces the Pay button as just “button” |
| Security | Is it protected? | Changing an id in the URL shows another user’s order |
| Compatibility | Does it work on our devices and browsers? | The Pay button is hidden under Safari’s toolbar on iPhone |
| Reliability | Does it keep working? | The app crashes after returning from the background |
A feature can be functionally perfect and still fail. A checkout that charges the right amount but takes 14 seconds to load will lose customers.
In my daily work I do both on the same story: functional test cases first, then quick non-functional checks that cost little, such as a slow-network run, large text, a screen reader pass on the main button and a second browser or device. Deep performance and security testing usually needs specialists and tools, and my job is to notice the problem and raise it early.
Non-functional requirements are often missing from stories, so I ask in refinement: “How fast should this be? Which devices? What happens offline?”
Learn more: Types of Testing
What they're looking for
A clear "what vs how well" distinction, a few non-functional types with examples, and the point that a feature can be functionally correct and still fail.
Common mistakes
- Calling everything that isn't a test case "non-functional".
- Treating non-functional testing as optional or as someone else's job.
- Naming types without saying what each one would find.