Module 1. Software testing fundamentals · Lesson 2 of 41 · 10 min
Levels and types of testing
The test pyramid, functional vs. non-functional testing, smoke, regression and retesting.
Test levels
| Level | What it checks | Usually done by |
|---|---|---|
| Component (unit) | A single function or class | Developer |
| Integration | How modules, APIs and the database work together | Developer / QA |
| System | The whole product, as a user sees it | QA |
| Acceptance (UAT) | Whether the product solves the business problem | Client / PO |
The test pyramid: many fast unit tests at the bottom, fewer integration tests, even fewer E2E tests at the top. An inverted pyramid (everything through the UI) is slow and brittle — people call it the "ice cream cone".
Functional and non-functional
- Functional — what the system does: sign-up, checkout, search.
- Non-functional — how it does it: performance, security, usability, accessibility, compatibility.
Types by goal
- Smoke — a quick check that the build is testable at all (login, main pages, the key user journey).
- Sanity — a narrow check of one specific change after a fix.
- Regression — checking that new changes didn't break what used to work.
- Retesting (confirmation testing) — checking that a specific bug has been fixed.
- Exploratory — testing without pre-written steps, learning the product as you go.
Black, white and gray box
- Black box — testing through the interface without knowing the code.
- White box — knowing the code and checking its logic branches.
- Gray box — partial knowledge of the internals (for example, you can see the database or the logs).
How it works in QA Tools
- A smoke suite is assembled automatically from the selected sets: only cases with Critical and High priority.
- A regression suite is all cases of the selected sets, sorted by priority from Critical to Trivial: when time is short, work from the top down.
- Test statuses: Not Run, In Progress, Passed, Failed, Blocked, Skipped, Question.
- Retesting a bug is a bug status, not a test case status.
Key takeaways
- The pyramid: lots of unit tests, fewer integration tests, the fewest E2E tests.
- Smoke checks whether the build is usable; regression checks that nothing broke.
- Retesting verifies the fix of a specific bug; regression checks everything around it.
Check yourself
1. A developer fixed a bug. What do you do first?
2. Checking that a page loads in 2 seconds is…
3. Which test pyramid shape is considered healthy?