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

QA Fundamentals › Testing basics

What are the objectives of testing?

The objectives of testing are to find defects, assess quality, reduce risk, confirm requirements and inform the release decision. The objective depends on the context: component testing aims at finding failures and coverage, acceptance testing at confidence that the system works as expected. Testing only shows the presence of defects, so a report states what is covered and what is not.

QA Fundamentals · Testing basics

The test plan says "find all the bugs". Why is that a poor objective for testing?

A manager asks to write "find all the bugs" into the test plan as the objective. The tester writes it, the run finishes, and after the release users find bugs. The interview question "what are the objectives of testing" looks like something to memorise, but behind it is another one: what exactly do you consider the result of your work. This lesson lays out the objectives per ISTQB CTFL 4.0, shows why there are several, and how they change with the context.

How it works

ISTQB CTFL 4.0 lists the typical objectives of testing. They are easier to remember grouped by the question each one answers:

QuestionObjectiveExample of an action
What is broken?Trigger failures and find defectsBoundary amounts in a fee calculation
Is it well described?Evaluate work products: requirements, user stories, design, codeReviewing requirements before development starts
Does it meet the requirements?Verify that specified requirements are fulfilled, including contractual, legal and regulatory ones; ensure the required coverageEvery requirement has at least one case
Is it what is needed?Validate that the test object is complete and works as stakeholders expectRunning a scenario together with the customer
How risky is it?Reduce the risk of inadequate qualityMore checks where a failure costs more
What to decide?Give stakeholders information for informed decisions and build confidence in the qualityA report before the "ship or not" decision

Why there are several. Testing does not improve the product by itself: a developer fixes the defect and a person decides on the release. That is why the thread running through all the objectives is information. Finding defects is only one way to get it, while checking requirements and assessing risk give other parts of the picture. A team that knows only about finding bugs reports the number of defects found, while a team that knows all the objectives answers the questions the business actually brings.

The objectives depend on the context. At component level the main ones are to find as many failures as possible, so that defects are found and fixed as early as possible, and to increase code coverage. In acceptance testing the main ones are to confirm that the system works as expected and satisfies the requirements, and to give confidence that it can be accepted. In a regulated field, compliance with a law or a contract becomes an explicit objective.

Example: from "find all the bugs" to release objectives

Before: one phrase that can be neither achieved nor verified. After: four objectives, each of which can be proved or disproved.

Before:
  Test objective: find all the bugs.

After (a release with a changed fee calculation):
  1. Find defects in the fee calculation: equivalence classes
     and boundary amounts, two currencies.
  2. Confirm requirements REQ-12..18: each has a case, the result
     for each is known.
  3. Assess the residual risk in payments and report before the
     "ship or not" decision: what is covered, what is not, what is open.
  4. Review the requirements for ambiguity before development starts.

Why this version is right and the first is not. "Find all the bugs" contradicts the principle that exhaustive testing is impossible: an objective that cannot be reached gives no completion criterion. The new objectives are tied to a result visible in the report and to the decision that follows from it.

Limits and alternatives

  • Testing and debugging are different activities. Testing shows a failure, debugging finds the cause in the code and fixes it. So "fix the bugs" is not an objective of testing.
  • The objectives of testing are not the same as the goals of QA as a process approach. In ISTQB, testing is part of quality control, while defect prevention belongs to the process as a whole.
  • Not all objectives matter equally in every project. In a startup with frequent releases, fast feedback and risk come first, in a banking product it is compliance and the evidence trail.

Common mistakes

  • The objective "find all the bugs". It is unreachable, and the absence of the goal in the report reads as "we did not do enough". Consequence: pressure on a number instead of on information.
  • The objective "prove that it works". Testing shows the presence of defects, not their absence. Consequence: cases are chosen to succeed, and bugs remain.
  • Measuring testing by the number of bugs found. Consequence: trivia is inflated, or the absence of findings is not reported, although it is information too.
  • Forgetting the objectives before testing starts. Without them there is no completion criterion: testing goes on until the time runs out.

Check yourself

A report says: "All 120 cases passed, there are no critical bugs". Which objectives does it really cover and which not?

Answer

It covers verification of the requirements within those cases and gives information for the decision. It does not prove that there are no defects and says nothing about risk where there are no cases. It is more honest to write what is covered, what is not and what the residual risk is, instead of "there are no bugs".

How do the main objectives of component testing and acceptance testing differ?

Answer

In component testing the main ones are to find as many failures as early as possible and to increase code coverage, because fixing is cheapest here. In acceptance testing they are to confirm that the system works as stakeholders expect and to give confidence for accepting it. So the same testing has different objectives depending on the level and context.

In an interview. Junior: The objectives of testing are to find defects, assess quality and reduce risk, confirm that the requirements are met and give information for the release decision. Middle/Senior: I add that the objectives depend on the context: at component level it is finding failures and coverage, in acceptance it is confidence and compliance. I do not promise to "find all the bugs", I formulate verifiable release objectives and show in the report what is covered, what is not and what the residual risk is.

More articles in this chapter