Skip to content
Course outline: Foundations

Module 01 · Foundations

Testing principles and key concepts

The seven principles every tester applies, and the five pairs of ideas that come up in every QA conversation.

  • 12 min read
  • Free, no sign-up

What you'll be able to do

  • Explain the seven principles of testing, each with an example from a real product.
  • Decide what to test first when there is far more to test than time allows.
  • Tell quality assurance from quality control, and verification from validation.
  • Choose static or dynamic testing, and manual or automated tests, for a given job.

The Seven Principles of Testing

These fundamental guidelines form the bedrock of effective software testing. Understanding and applying them helps ensure quality and efficiency in the QA process.

01

Testing Shows Presence of Defects

A failing test proves that a defect exists. A passing test proves much less: only that this input, in this setup, behaved as expected. However many tests pass, they cannot prove that no defects are left. What good testing does is lower the risk that a serious one is still hiding.

Example:

Imagine you test a calculator app and find a bug when adding large numbers. This proves there is a defect. However, even after extensive testing, you can’t be absolutely certain that no other defects exist. You’ve shown that problems are present, but you can’t prove that the product is now perfect.

02

Exhaustive Testing is Impossible

Testing every combination of inputs, settings, devices and timings would never finish, even for a small form. So testers choose: risk and priority decide what gets tested first, and test design techniques such as equivalence partitioning and boundary values cover a lot of ground with few cases.

Example:

Consider a login form. If you tried every possible combination of usernames, passwords, special characters, and browser/device variations, you’d never finish testing. Instead, you pick the most important and likely scenarios to test, such as common usernames, boundary-length passwords, and popular browsers.

03

Early Testing

The sooner a mistake is found, the cheaper it is to fix. A wrong requirement caught in a review costs a conversation; the same mistake found after release can cost a redesign, an urgent fix and unhappy customers. That is why testers review requirements and designs before any code exists.

Example:

When designing a new mobile banking feature, you review the requirements before coding begins and identify that the requirement for handling foreign currency conversions is unclear. You clarify and correct this early, preventing a costly code fix later.

04

Defect Clustering

Defects are rarely spread evenly. A few modules, often the most complex or the most often changed, usually hold most of them. Teams often quote the Pareto rule of thumb: about 80% of the defects come from about 20% of the modules. Where you found bugs before, look harder: more are likely nearby.

Example:

In a shopping website, most errors appear in the checkout process (e.g., payment gateway and order summary) rather than in the product listing pages. Focusing testing efforts on checkout-related functionalities helps catch the majority of defects quickly.

05

Pesticide Paradox

Run the same tests over and over and they stop finding new bugs: the code they cover gets fixed, while new defects appear where they never look. Review your tests regularly, then add cases, vary the data and explore new paths. The 2023 ISTQB syllabus calls this principle “tests wear out”.

Example:

You have 10 test cases that find bugs in the first release of your app. When you run the same 10 test cases on the next release, you don’t find new bugs because the old ones were fixed. To uncover new defects, you need to create new or modified test cases.

06

Testing is Context Dependent

There is no single right way to test. A medical device, a banking app and a mobile game differ in risk, rules and pace, so they need different amounts of rigour, documentation and automation. Choose the approach that fits the product, its users and what a failure would cost.

Example:

For a hospital’s patient record system, you use detailed test plans, formal documentation, and multiple review steps because accuracy is critical. For a mobile puzzle game, you might rely on quick, informal testing and user feedback because the stakes are lower.

07

Absence of Errors Fallacy

A product can pass every test and still fail if it is not what its users need. Checking the software against its specification is not enough: check that it solves the right problem in a way people can use. The 2023 ISTQB syllabus calls this the “absence-of-defects fallacy”.

Example:

Your team builds a photo-sharing app with zero reported bugs in the code. However, users uninstall it because it doesn’t allow easy sharing with friends. The software may be “error-free,” but it doesn’t meet the user’s real needs.

Worked example · Cedar Books

Why the shop's search cannot be tested exhaustively

Cedar Books, the Academy's practice shop, has a search page: a box for words, five categories to filter by (or none), four sort orders, and results in pages of 12. It looks small. Count it anyway: the box alone, with only ten lower-case letters, allows 2610, about 141 million million searches. At one test a second that is about 4.5 million years, before the six category choices and the four sort orders multiply it by 24, and before any browser or phone.

So the tester chooses. The requirements REQ-02 (search) and REQ-10 (results) say what matters, and equivalence partitioning turns the endless box into a few kinds of search, each tested once:

Seven kinds of search, one test each
Kind of searchExampleWhy it earns a test
A full titleThe Cedar TreeThe most common search
Part of a titlecedarWhat most shoppers really type
An authorMaya RahalREQ-02 names author search
An ISBN9780000000017REQ-02: exactly one book
A title typed without its accentZahleREQ-02's own example
Words that match nothingdragonThe "no books" message
An empty box(nothing)All 40 books: the longest list

Then each of the four sort orders once on the full list, and page 2 of it. Twelve tests instead of millions of years. They cannot prove that the search has no bugs (principle 1), but they put the first hours where bugs are most likely and would cost the most.

Try it: Equivalence partitioning tool · The journey lab

Worked example · Cedar Books

Where the shop's bugs cluster

The bug tracker in the Academy's templates holds the eight bugs found while testing Cedar Books release 2.4. Sorted by the part of the shop they are in, they are not spread evenly:

The eight bugs of release 2.4 by module
ModuleBugsWhich
Coupons2BUG-05, BUG-07
Checkout2BUG-04, BUG-06
Orders1BUG-08
Basket1BUG-01
Account1BUG-02
Search1BUG-03

Coupons, checkout and orders are one path: everything between the basket total and the confirmation of what the shopper paid. That path holds five of the eight bugs, and all three with the highest severity (High or Critical). It is also the part of the shop with the most rules: discounts, delivery and three kinds of test card.

So the plan for the next round gives that path more time: every coupon code against REQ-03 and REQ-06, every test card against REQ-07, and the confirmation checked against the amount really paid (REQ-08). The rest of the shop keeps its tests. Clustering tells you where to look harder, not where to stop looking: one open bug, BUG-03, is in the search.

Try it: The bug tracker template · The exploratory session lab

Worked example · Cedar Books

A coupon suite that stopped finding bugs

For a year, Cedar Books checked its coupons with the same three tests before every release: apply CEDAR10 once, apply the expired EXPIRED24, and apply a code that does not exist. They passed every time, and the team read the green results as "coupons work".

Before release 2.4, a tester reviewed the three against the requirements (REQ-03 and REQ-06) and against what shoppers really do. The review added new cases:

  • Apply clicked twice within a second, by a shopper unsure that the first click worked.
  • A second code typed after the first: it must replace the first, not add to it.
  • A code that has been used up (SPRING25), and WELCOME5 below 25.00 or used a second time.
  • A book removed after the code is applied: the discount must follow the new total.

The first of them, TC-09 in the template test cases, failed on its first run: the discount was counted twice. That is BUG-07 in the template bug tracker. The three old tests were not wrong. They had worn out: the paths they walked had long been fixed, while new bugs grew on paths they never took.

To keep a suite fresh: after each release, look at the tests that have found nothing for a long time and ask what they never try; vary the data (other codes, books and amounts); add a test for every bug you find; and explore around each change.

Try it: The regression suite lab

Why These Principles Matter

Understanding these principles helps QA professionals establish realistic expectations about testing and build effective test strategies. They guide testing efforts to be more efficient, focused, and valuable to the overall software development process.

These principles should influence all testing activities, from test planning and design to execution and reporting. They help balance thoroughness with practicality in the testing approach.

Key QA Concepts

Grasp these core definitions to build a solid foundation for understanding software quality assurance practices and discussions.

Testing

The process of checking that software meets its requirements and its users' needs, and of finding the defects that stop it doing so, including in exceptional and boundary cases. Testing can show that defects are present, never that none are left.

Debugging

The process of identifying, analyzing, and removing errors (bugs) in the software after it fails to execute correctly. It's a complex activity aimed at solving the root cause of a problem.

Product

Software developed for multiple customers based on consolidated requirements, intended for broad use.

Project

Software developed for a single customer based on their specific requirements, intended for use only by that customer.

Bugs / Issues

A coding error causing an unexpected defect, fault, flaw, or imperfection. If a program doesn't perform as intended, it likely has a bug.

Quality Assurance vs Quality Control

Learn the crucial differences between QA (process-oriented, preventive) and QC (product-oriented, detective) and how they work together.

Software Quality Assurance (SQA)

A proactive process focused on preventing defects by ensuring adherence to defined standards and processes throughout the SDLC.

SQA incorporates all software development processes, from requirements definition to release, aiming to ensure quality is built-in.

Example:

For an online banking app, QA activities include establishing coding standards, requiring code reviews, and ensuring all requirements are clear and approved before development starts. This prevents defects proactively.

Software Quality Control (SQC)

A reactive process focused on identifying defects in the actual product by monitoring and verifying deliverables against defined quality standards.

QC involves testing the product to find defects. It's about detection rather than prevention and happens after QA activities have defined the standards.

Example:

After the banking app is developed, QC testers execute test cases (e.g., trying valid/invalid logins) to find issues like incorrect error messages or lockout failures. This finds defects before release.

QA vs QC Comparison

AspectQuality Assurance (QA)Quality Control (QC)
FocusPrevent defectsIdentify & fix defects
NatureProactiveReactive
GoalProcess improvementProduct quality verification
TechniquePreventiveCorrective
InvolvementFull SDLCTesting phase (STLC)
Activity TypeVerification (Are we doing it right?)Validation (Did we do the right thing?)
ExecutionDoes not involve program executionInvolves program execution
TeamWhole teamTesting team

Static vs Dynamic Testing

Compare the two fundamental approaches to software testing that complement each other throughout the development lifecycle.

Static Testing

  • Performed without executing code
  • Reviews, walkthroughs, inspections
  • Focuses on prevention rather than detection
  • Finds defects rather than failures
  • Can improve product quality early in the lifecycle

Examples: Code reviews, document analysis, static analysis tools

Dynamic Testing

  • Requires execution of the software
  • Functional, non-functional, and structural testing
  • Focuses on behavior of the software
  • Detects failures in the software
  • Verifies the functionality works as expected

Examples: Unit testing, integration testing, system testing

When to use each approach

Both static and dynamic testing are complementary and should be used together for effective quality assurance:

  • Early development phases: Focus on static testing to prevent defects
  • Later development phases: Focus on dynamic testing to validate functionality
  • Critical systems: Use both extensively throughout development

Benefits of Static Testing

  • Early defect detection, reducing cost of fixes
  • Identifies issues that might be missed during execution
  • Improves code maintainability and readability
  • Finds defects in documents and specifications
  • Enhances team communication and knowledge sharing

Benefits of Dynamic Testing

  • Validates actual behavior of the software
  • Catches runtime and integration issues
  • Tests the user experience and performance
  • Verifies functionality against requirements
  • Builds confidence in the system before release

Manual vs Automation Testing

Compare manual testing (human-driven) and automation testing (tool-driven) to determine the best strategy for different testing needs.

Manual vs Automation Testing

Compare the two primary testing methods to understand their appropriate applications and how to balance them in your testing strategy.

Manual Testing

  • Performed by human testers
  • Best for exploratory, usability, and ad-hoc testing
  • No scripting knowledge required
  • Time-consuming for regression testing
  • Great for UX evaluation and visual verification

When to use: New features, complex scenarios, infrequently changing features

Automation Testing

  • Executed by tools and scripts
  • Ideal for regression, load, and performance testing
  • Requires programming or scripting skills
  • Time-efficient for repetitive tasks
  • Good test coverage with consistent execution

When to use: Regression testing, load testing, frequently changing features

Best Practices for Testing Strategy

A balanced approach using both manual and automated testing provides optimal results:

  • Automate: Repetitive tasks, regression tests, data-driven tests
  • Manual: New features, exploratory testing, usability testing
  • Hybrid: Use automation to set up test data/environment, then manual testing for verification

Choosing the Right Testing Approach

Use Manual Testing When

  • •Exploratory testing is needed
  • •Testing UI/UX and visual aspects
  • •Short-term projects with changing requirements
  • •Usability testing with user feedback

Use Automation Testing When

  • •Regression testing is frequent
  • •Load and performance testing is required
  • •Repetitive test cases with consistent data
  • •Long-term projects with stable requirements

Best Balance

  • •Automated smoke and sanity tests
  • •Manual exploratory and UX testing
  • •Automated API and integration tests
  • •Manual complex scenario testing

Verification vs Validation

Distinguish between Verification ("Are we building the product right?") and Validation ("Are we building the right product?") and see how they apply across the SDLC.

Verification vs Validation

Understand the distinction between building the product right (verification) and building the right product (validation).

Verification

"Are we building the product right?"

  • Evaluates documents, code, and plans
  • Static testing techniques
  • Performed without executing code
  • Reviews, walkthroughs, inspections
  • Ensures compliance with specifications

Examples: Requirements reviews, design reviews, code reviews

Validation

"Are we building the right product?"

  • Evaluates the product itself
  • Dynamic testing techniques
  • Requires executing the software
  • Testing against user requirements
  • Ensures the product meets user needs

Examples: User acceptance testing, system testing, beta testing

SDLC Integration

Both verification and validation are essential throughout the software development lifecycle:

Requirements Phase

Verification

Review requirements for consistency, completeness, and clarity

Validation

Confirm requirements actually meet user needs and business goals

Design Phase

Verification

Ensure design aligns with requirements specifications

Validation

Review design with stakeholders to confirm it meets expectations

Implementation Phase

Verification

Code reviews, static analysis, unit tests to verify against design

Validation

Component/integration tests to validate against requirements

Testing Phase

Verification

System testing, test coverage analysis, compliance checking

Validation

User acceptance testing, beta testing, usability testing

Sign in to keep your progress: a tick here lives in this browser only.

Test yourself

Quiz: Principles and concepts

10 questions, about 8 minutes. Sign in to take the quiz.

Sign inRequest accessStart freeGet started

10 questions, about 8 minutes, no time limit. 7 right answers pass, and passing marks the lesson as read. Every new quiz draws new questions.

Put the lessons to work on a real site

Describe a user journey in plain English. QAIA walks it in a real browser and hands back the test cases, the automation code and the evidence of every step.