Relating Test Results to Defect Counts and Severity

5 minutes 5 Questions

In the ISTQB Advanced Level Test Analyst syllabus, relating test results to defect counts and severity means turning raw execution outcomes into meaningful information about product quality, risk and process improvement. A pass or fail result only matters when it is linked to the defects it reveals, how many there are, and how serious they are. When a test fails, the Test Analyst analyses the failure, confirms it is reproducible and not caused by a test or environment error, and logs a defect report. Each report records a severity, meaning the impact on the system or user, and a priority, meaning the urgency of fixing it. Accurate severity classification is essential, because counts alone mislead: fifty cosmetic defects carry far less risk than two critical defects that corrupt data or block key business processes. Test Analysts therefore track defect metrics such as defects found per test cycle, defect density per module or requirement, open versus closed trends, defect arrival and fix rates, and distribution by severity. These figures are mapped back to test basis items and product risks, which shows which areas are stable and which are clustering defects. Clusters support the defect clustering principle and guide risk-based reprioritisation of further testing. Severity weighted trends also help evaluate exit criteria, for example requiring no open critical defects and a falling arrival rate before release. From a defect prevention perspective, this analysis feeds root cause analysis. By classifying defects by type, the phase in which they were introduced, the phase in which they were detected, and severity, teams identify systemic weaknesses such as unclear requirements or poor design reviews. Metrics like defect detection percentage and phase containment show how effectively early activities, including reviews and static analysis, prevent defects from escaping. Correlating severity with origin highlights where process changes give the greatest benefit, shifting effort from detecting defects toward preventing them and improving future quality.

Relating Test Results to Defect Counts and Severity (ISTQB CTAL-TA: Software Defect Prevention)

Introduction
In the ISTQB Certified Tester Advanced Level Test Analyst (CTAL-TA) syllabus, defect prevention is not only about finding defects. It is about using what testing reveals to stop similar defects from happening again. A key skill here is relating test results to defect counts and severity. This means turning raw test execution data (passed, failed, blocked tests, and the defects they raise) into insight about product quality, process weaknesses and risk. This guide explains why the topic matters, what it is, how it works in practice, and how to handle exam questions on it.

Why It Is Important
1. Objective quality assessment: Test results alone (for example, 95% pass rate) can be misleading. A 95% pass rate with three critical open defects in payment processing is very different from a 95% pass rate where every failure is cosmetic. Relating results to defect count and severity gives a truthful picture.
2. Risk-based decisions: Stakeholders decide on release, further testing or rework based on residual risk. Severity-weighted defect information shows where the real risk lies.
3. Defect prevention: Patterns in defect counts and severity (clusters in certain modules, injection phases or defect types) point to root causes. Fixing those causes, such as unclear requirements, weak design reviews or missing coding standards, prevents future defects.
4. Process improvement: Metrics such as defect density, defect detection percentage (DDP) and severity distribution feed retrospectives and improvement models.
5. Test effectiveness evaluation: Comparing defects found in testing with defects found later (for example in production) shows how effective the test approach and test techniques were.
6. Communication: Test Analysts must report meaningful information to Test Managers and stakeholders, not just numbers.

What It Is
Relating test results to defect counts and severity is the analytical activity of linking:
- Test results: test case outcomes (pass, fail, blocked, not run), coverage achieved, and execution progress.
- Defect counts: number of defects found, open, fixed, retested, closed, rejected or deferred, often broken down by area, type or phase.
- Defect severity: the degree of impact a defect has on the system or its stakeholders (for example critical, major, minor, trivial). It is distinct from priority, which is the urgency of fixing it.

The goal is to answer questions like:
- Where are the defects concentrated (defect clustering)?
- Are high-severity defects decreasing as testing proceeds?
- Which test levels or techniques find the most severe defects?
- In which phase were defects introduced, and in which phase were they detected (phase containment)?
- What does the trend say about readiness for release?

Key Concepts and Terminology
- Severity vs. Priority: Severity is technical or business impact. Priority is the order of fixing. A spelling error in the company name on the home page may be low severity but high priority. A crash in a rarely used admin function may be high severity but lower priority.
- Defect density: number of defects relative to size (for example per KLOC, per function point or per requirement). It helps compare components fairly.
- Defect Detection Percentage (DDP): defects found by testing divided by (defects found by testing plus defects found afterwards), times 100. It measures test effectiveness.
- Defect clustering: a small number of modules usually contain most of the defects (a testing principle). Severity analysis shows whether those clusters are also high risk.
- Phase of injection vs. phase of detection: recorded in defect reports to support root cause analysis and phase containment metrics.
- Defect classification: attributes such as type (logic, data, interface, GUI), cause, origin, symptoms and impact, often based on taxonomies or standards such as IEEE 1044.
- Defect trends: arrival rate versus closure rate over time. Converging curves suggest stabilisation.
- Root cause analysis (RCA): identifying the underlying reason a defect was introduced, enabling prevention.
- False positives / rejected defects: reported defects that are not real defects. These must be excluded or tracked separately so counts are not distorted.

How It Works
Step 1: Capture good data. Defect reports must contain accurate fields: severity, priority, component, test level, phase introduced, phase detected, defect type, linked test case and linked requirement. Poor data leads to poor conclusions. Test Analysts are responsible for consistent, objective severity assignment.

Step 2: Link defects to tests and requirements. Traceability lets you see which requirements and risk items have failing tests and associated defects of a given severity. This connects results to product risk.

Step 3: Aggregate and classify. Count defects by severity, component, type, test level and phase. Produce severity distributions, for example 2 critical, 10 major, 25 minor and 40 trivial.

Step 4: Normalise. Use defect density to compare components of different size or complexity. A large module with many minor defects may be less concerning than a small module with several critical ones.

Step 5: Analyse trends. Track open high-severity defects over time, the arrival rate of new defects, and the reopen rate. Ideally, as testing progresses, the number of new severe defects declines.

Step 6: Interpret in context. Ask why. A sudden drop in defects may indicate higher quality, or it may indicate blocked tests, reduced testing effort, or testers running only easy tests. A high pass rate with low coverage of high-risk areas is not reassuring. Always consider coverage, test progress and severity together.

Step 7: Feed defect prevention. Use patterns to trigger RCA. For example, many severe defects introduced during requirements suggest better reviews or acceptance criteria. Many interface defects suggest better integration testing or interface specifications. Recurring defect types can lead to checklists, coding standards, static analysis rules or training.

Step 8: Report. Present findings to stakeholders in terms of risk: what is still at risk, how severe it is, and what is recommended (release, delay, add testing, fix specific defects).

Worked Example
Component A: 200 tests, 190 passed, 10 failed, 12 defects (all minor or trivial).
Component B: 50 tests, 48 passed, 2 failed, 3 defects (2 critical, 1 major).
Looking only at pass rates, B (96%) looks better than A (95%). Relating results to severity shows B carries far greater risk. If B is small in size, its defect density of severe defects is very high, which suggests RCA and additional testing (for example more experience-based or boundary testing) in B before release.

Common Pitfalls
- Treating all defects as equal regardless of severity.
- Confusing severity with priority.
- Using raw counts without normalising by size or test effort.
- Judging quality on pass rate without considering coverage and blocked tests.
- Counting duplicates or rejected defects as real defects.
- Using defect counts to evaluate individual developers or testers, which damages reporting honesty.
- Assuming zero defects found means zero defects exist (testing shows presence, not absence, of defects).

Exam Tips: Answering Questions on Relating Test Results to Defect Counts and Severity
1. Look beyond the numbers. If a scenario gives pass rates or defect totals, the correct answer usually considers severity, coverage and risk, not the raw count alone.
2. Know severity vs. priority cold. Expect questions that describe a defect and ask which attribute applies. Severity is impact, priority is urgency. The Test Analyst typically proposes severity, while priority is often set with business or management input.
3. Watch for the misleading trend. If defects drop suddenly, the best answer often asks to check test progress, blocked tests or coverage before concluding quality improved.
4. Prefer normalised metrics. When comparing components, answers mentioning defect density or size and complexity are usually stronger than raw counts.
5. Link to defect prevention. If asked what to do with defect patterns, choose options involving root cause analysis, process improvement, reviews, or targeting the phase where defects are injected, rather than simply "test more".
6. Remember DDP. Be able to compute it: testing defects divided by total defects (testing plus later), times 100. Example: 80 found in test, 20 in production gives DDP = 80%.
7. Phase containment. Defects that escape their injection phase cost more to fix. Answers that favour earlier detection (static testing, reviews) align with the syllabus.
8. Defect report quality matters. Questions may ask which defect report field enables a given analysis. Phase introduced supports RCA, the component field supports clustering, and severity supports risk assessment.
9. Eliminate extreme answers. Options saying "release because pass rate is above 90%" or "do not release because defects exist" are usually wrong. The syllabus favours risk-informed, context-based decisions.
10. Read the K-level. CTAL-TA questions are often K2 to K4. For analysis questions, compare the scenario data carefully: severity distribution, component size, trend direction and coverage.
11. Avoid blame-oriented options. Using defect metrics to judge individuals is generally considered poor practice.
12. Use keywords as clues. Words like "most effective", "best indicates", "highest risk" or "prevent recurrence" signal that severity-weighted, risk-based or root-cause-based answers are expected.

Summary
Relating test results to defect counts and severity turns test execution data into meaningful information about quality and risk. By combining pass and fail outcomes with severity, density, trends and classification, Test Analysts can give accurate status reports, support release decisions, measure test effectiveness and, most importantly, drive defect prevention through root cause analysis. In the exam, always think in terms of impact and context rather than raw numbers. Distinguish severity from priority, normalise data, question suspicious trends, and favour answers that lead to prevention and improvement.
Test mode:

CTAL-TA - Relating Test Results to Defect Counts and Severity Example Questions

Test your knowledge of Relating Test Results to Defect Counts and Severity

Question 1

A test analyst reviews system test results for a vehicle tax renewal service six weeks after release to decide which improvement to defect detection the next release needs. Payment step: system test found 6 defects, and 4 critical defects escaped, all of them timeouts above 800 concurrent users, a load condition covered by the performance tests that the technical test analyst designs and runs. Fee rules: system test found 3 defects, and 2 critical defects escaped, both wrong fees for one specific combination of vehicle age band and emission band; the test cases had exercised every partition of each parameter at least once, one parameter at a time. Address form: system test found 30 defects, and 11 defects escaped, all of them cosmetic label and alignment issues. Which improvement to defect detection do these results best support?

Question 2

A test analyst reviews system test results for a train seat reservation service before release. The remaining effort allows only one module to be tested more intensively. Seat Map was predicted as the main defect cluster and yielded 64 defects (61 cosmetic, 3 major), and every function changed in the current release was exercised by at least one test. Fare Rules was rated low risk during risk analysis but yielded 4 defects (3 critical, 1 minor); all three critical defects have been fixed and their confirmation tests pass. Two Fare Rules functions were modified in the last iteration and are traced to no executed test. Notifications shows 12 failed tests, all traced to one minor defect, and has the lowest code coverage of all modules, but its code has been unchanged for two years. Which improvement to defect detection do these results support?

Question 3

A test analyst reviews system test results for a student enrolment service to decide where to improve defect detection in the next iteration. The payment module was rated medium risk. 2 of its 40 tests failed, but analysis of these two long end-to-end scenario tests found 6 distinct defects, 4 of them critical. The course catalogue was rated high risk. 18 of its 60 tests failed, tracing to 11 distinct defects, all cosmetic. The enrolment rules module was rated high risk. All 45 of its tests passed. These tests were derived from decision tables covering every rule, and 4 major defects were found and fixed there in the previous iteration. The timetable module was rated low risk. 5 of its 50 tests failed, revealing 5 defects, 1 of them major. Which improvement to defect detection do these results best support?

More Relating Test Results to Defect Counts and Severity questions
26 questions (total)