読み物Testing · Quality Engineering

Level: Basic

What Is Software Testing? Understanding QA, QC, and Software Quality

What testing is and isn't, how it differs from quality assurance and quality control, the seven principles that hold on every project, and why quality is the whole team's job.

Edeeson Opina8 min read

A Basic lesson card: lesson 1 of the Software Testing & Quality Engineering series, What Is Software Testing? Understanding QA, QC, and Software Quality, with the Miso fox waving.

What you’ll learn

  • Explain what testing can and can't do
  • Distinguish errors, defects, and failures
  • Tell testing, quality control, and quality assurance apart
  • Apply the seven testing principles

Before you start

No earlier lessons needed. Start here.

On this page
  1. Before you start
  2. What software testing is
  3. Errors, defects, and failures
  4. Testing, quality control, and quality assurance
  5. What "quality" means
  6. Seven testing principles
  7. A realistic example
  8. Who is responsible for quality
  9. How this series is organized
  10. Common mistakes and troubleshooting
  11. Practical exercise: a quality snapshot
  12. Key takeaways
  13. References
  14. What's next

Software fails in ordinary ways: a discount that applies one cent too late, a form that rejects valid names, a page that takes eight seconds on a phone, a feature that works for the developer and nobody else. Testing is how we find those failures before users do. But software quality is much more than running tests, and a passing test suite doesn't mean the software is good. This lesson explains what testing is, how it differs from quality assurance and quality control, the principles that hold across every project, and why quality is something a whole team builds, not something a tester adds at the end.

Before you start

No testing experience is needed. It helps to have written or used a small program and to know what a bug is from the user's side. Later lessons use TypeScript, Rust, and PHP for examples; this one is about the ideas.

What software testing is

Software testing is the activity of evaluating software to find defects and to gain confidence about its quality. That includes running the program (dynamic testing) and examining things without running them, such as reviewing requirements, designs, and code (static testing).

Testing has several goals, and it's worth being explicit about them:

  • Find defects before they reach users.
  • Provide information for decisions: is this ready to release, and what are the risks if it ships now?
  • Prevent defects by questioning requirements and designs early, before anything is built.
  • Build confidence that the software does what it should, in the situations that matter.
  • Check compliance with contracts, regulations, or standards where they apply.

Notice that "prove the software has no bugs" isn't on the list. Testing can't do that.

Errors, defects, and failures

Testing vocabulary separates three things that everyday speech calls "bugs":

  • An error (or mistake) is a human action that produces a wrong result: a developer misreads a requirement or types > instead of >=.
  • A defect (or fault) is the resulting flaw in the code, documentation, or design.
  • A failure is when the system visibly does the wrong thing while running: the customer isn't given the discount they were promised.

The distinction matters because not every defect causes a failure (the faulty line may never run), and failures can also come from the environment: a full disk, a network outage, a misconfigured server. Debugging is the separate activity of finding and fixing the defect behind a failure.

Testing, quality control, and quality assurance

These three terms are often used interchangeably, but they mean different things:

  • Quality control (QC) is product-oriented: checking whether a product meets its quality requirements, and correcting what doesn't. Testing is a major form of quality control, alongside reviews and inspections.
  • Quality assurance (QA) is process-oriented: improving the processes that produce the software so that fewer defects are made in the first place. Code review practices, coding standards, definitions of done, training, and retrospectives are quality assurance.
  • Testing is one set of activities within quality control.

A useful way to remember it: quality control asks "is this product good enough?" Quality assurance asks "is the way we build products good enough to make them good?" A team that only finds bugs, and never asks why they keep making the same kind, is doing quality control without quality assurance.

What "quality" means

Quality isn't one thing. The ISO/IEC 25010 standard describes a product quality model with characteristics such as functional suitability (does it do the right things correctly?), performance efficiency, compatibility, reliability, security, maintainability, and the ease with which people can use it. Its 2023 edition also adds safety and refines several names.

You don't need to memorize the model, but it's a useful checklist when planning testing. A feature can be functionally perfect and still fail its users because it's slow, inaccessible to a screen reader user, insecure, or so tangled that the next change breaks it. Later lessons in this series cover performance, accessibility, and security testing for exactly this reason.

Seven testing principles

The ISTQB Certified Tester Foundation Level syllabus (version 4.0), a widely used reference for testing concepts, lists seven principles that hold across projects:

  1. Testing shows the presence, not the absence, of defects. Tests can show that defects exist; they can't prove that none are left.
  2. Exhaustive testing is impossible. Except in trivial cases, there are too many inputs and paths to try them all. Use risk and test design techniques (lesson 3) to choose.
  3. Early testing saves time and money. A defect found while reviewing a requirement costs minutes; the same defect found in production can cost days and customers.
  4. Defects cluster together. A small number of components usually contain most of the defects. Look harder where problems have appeared before.
  5. Tests wear out. Repeating the same tests finds fewer new defects over time. Keep updating and adding tests as the software and its risks change.
  6. Testing is context dependent. A medical device, a game, and a marketing site need very different testing.
  7. Absence of defects is a fallacy. Software can pass every test and still be useless if it doesn't meet the users' real needs. Verifying that it was built right isn't the same as validating that the right thing was built.

A realistic example

Imagine an online shop that offers 10% off orders of 5,000 cents (50.00) or more. The developer writes:

cart.tsTypeScript
return subtotal > 5000 ? Math.round(subtotal * 0.9) : subtotal;

The requirement says "or more," but the code says "more than." An order of exactly 50.00 gets no discount: an error (misreading), a defect (> instead of >=), and a failure (an unhappy customer who did the math). A test written from the requirement, with a value right at the boundary, catches it in seconds. Lesson 4 runs exactly this test and shows the failure and the fix.

Now notice what testing alone wouldn't catch: if the business actually wanted the discount to apply after tax, both the code and a test written from the same wrong understanding would agree, and both would be wrong. That's why quality also depends on clear requirements, conversations with the people who know the domain, and reviews.

Who is responsible for quality

On modern teams, quality is everyone's job:

  • Developers write automated tests for their code, review each other's work, and fix the causes of defects.
  • Testers and QA engineers bring testing expertise: designing tests, exploring the product, building test infrastructure, and asking the questions others miss.
  • Product owners define what "correct" means and accept the work.
  • Operations and support see how the software behaves in production and feed that back.

"Throwing code over the wall" to a separate test team at the end tends to find problems late, when they're most expensive. Testing works best spread across the whole process: reviewing requirements, testing as code is written, and verifying behavior in production (lesson 15).

How this series is organized

  • Basic: what testing is, testing levels, test case design, your first automated unit tests, and manual and exploratory testing.
  • Intermediate: unit testing in real applications, integration testing, end-to-end testing with Playwright, test-driven development, and testing in CI/CD.
  • Pro: performance and reliability, accessibility and cross-browser testing, property-based testing, fuzzing and mutation testing, security testing, and production quality engineering.

The tools in the examples (Vitest, Playwright, cargo test, PHPUnit, k6, axe-core) are examples, not requirements. Every lesson explains the principle first, so you can apply it with the tools your project uses.

Common mistakes and troubleshooting

  • Treating testing as a phase at the end. Test from the start, including requirements and designs.
  • Equating "all tests pass" with "good software". Tests check what someone thought to check. Ask what isn't tested.
  • Measuring testers by bug counts. It rewards finding trivial issues and discourages prevention.
  • Confusing QA with testing. If the same kind of bug keeps appearing, fix the process, not just the bug.
  • Testing everything equally. Spend effort where the risk is: important features, complex code, and areas with a history of defects.

If a team argues about whether something is "a bug," check the requirement. Often the code is consistent and the requirement was ambiguous, and the fix is a conversation and a clearer specification, then a test.

Practical exercise: a quality snapshot

For a small application you use or build:

  1. Write down three things it must do correctly (functional) and three other qualities that matter to its users, such as speed, accessibility, or security.
  2. Find one requirement that's ambiguous, and write the question you'd ask to clarify it.
  3. List where defects have appeared before. Which component would you test first, and why?
  4. Describe one error, the defect it could cause, and the failure a user would see.
  5. Name one process change (quality assurance) that would prevent a whole class of defects you've seen.

Key takeaways

  • Testing evaluates software to find defects and provide information for decisions; it can't prove there are no defects.
  • Errors cause defects; defects can cause failures.
  • Quality control checks the product; quality assurance improves the process; testing is part of quality control.
  • Quality has many characteristics beyond correct functions, including performance, reliability, security, maintainability, and usability.
  • The seven principles: presence not absence, no exhaustive testing, test early, defects cluster, tests wear out, context matters, and absence of defects is a fallacy.

References

What's next

Next, Understanding Testing Levels: Unit, Integration, System, and End-to-End Testing explains the different scales at which software is tested, and when to use each.

See every lesson in Software Testing & Quality Engineering: From Fundamentals to Production-Ready Software