SQA tasks, goals and the SQA plan
Practical, exam-focused notes on Software Quality Assurance (SQA) tasks, goals and how to prepare an SQA plan for a software project.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
SQA tasks and the SQA plan tell engineers what quality work to do, who does it, and how to check the product during development. In industry an engineer uses the SQA plan to schedule reviews, tests, audits and metrics so the product meets customer requirements and is safe to release.
Key ideas
Before using any term, its definition is given in bold and plain language.
Software Quality Assurance (SQA): the set of planned and systematic activities carried out to provide confidence that software processes and products conform to requirements and standards. (Use: SQA coordinates reviews, audits, testing policies.)
Quality: conformance to stated requirements and customer expectations. (Short, practical definition often used in software engineering exams.)
SQA Plan: a document that describes SQA activities, responsibilities, schedule, standards, procedures, metrics, and deliverables for a project. It is the operational plan for doing SQA work. Common structure aligns with IEEE/ISO/IEC 730 (Software Quality Assurance) guidance for SQA plans.
SQA Goals: ensure compliance with applicable standards and procedures; prevent defects proactively (via training, standards, and reviews); provide objective visibility to management through audits and metrics; reduce quality risk and rework; and drive continuous process improvement.
Verification: activity that checks whether work products meet their specified requirements. Question asked: "Are we building the product right?"
Validation: activity that checks whether the product meets the user's needs. Question asked: "Are we building the right product?"
Audit: a formal examination of processes and records to check compliance with standards or procedures.
Review: a human inspection of a document or code to find defects (includes walkthroughs and inspections).
Test: execution of software with the intent to find defects.
Defect (also called fault or bug): a flaw in a work product that can cause a failure when executed.
Defect Prevention: process actions that prevent defects from being introduced (e.g., training, standards).
Defect Removal Efficiency (DRE): a quality metric that measures the ability of the development and test process to remove defects before release. (Defined and derived in Formulas.)
Process Improvement: systematic actions taken to make the development/testing process more effective (examples: root-cause analysis, CMM/CMMI steps).
Key elements and assumptions used in SQA planning (explain plainly):
- SQA works on both process and product. Process controls (like change control, configuration management) reduce product defects.
- SQA must be planned early: an SQA plan should exist before major development starts so reviews and tests are scheduled on time.
- SQA activities include: standards selection, reviews/walkthroughs/inspections, test planning and monitoring, audits, metrics collection and reporting, defect tracking, and configuration management. Define each activity before using the term.
- An SQA plan should state acceptance criteria, entry and exit criteria for phases, roles (who reviews, who audits), and metrics to be collected.
What to draw for exam diagrams (describe exactly):
- Draw a box labelled "SQA Plan" at the top. From it draw arrows down to three boxes left-to-right labelled "Processes/Standards", "Activities & Schedule", "Metrics & Reporting". Under "Activities & Schedule" draw sub-boxes: "Reviews", "Testing", "Audits", "Configuration Management". On the right side draw a feedback arrow from "Metrics & Reporting" back to "Processes/Standards" labelled "Process Improvement". Label the inputs into the top box as "Project Requirements" and "Organizational Standards" and the output as "Quality Assurance Records & Reports".
Exact statements universities expect (short theorem-like statements):
If an SQA plan specifies clear entry and exit criteria for a phase, then the probability of undiscovered defects at phase exit is reduced (assumes sufficient review and testing effort is applied). State assumptions: review/test coverage adequate.
Pareto principle in quality: roughly 80% of defects are caused by 20% of root causes. (State as heuristic, not mathematical law.)
Derivations usually required: the DRE formula and defect density. Both are defined in Formulas below with assumptions.
Formulas
Defect Density = (Number of defects) / (Size of software)
- Number of defects: count of confirmed defects found (unit: defects)
- Size of software: lines of code (LOC) or thousands of lines of code (KLOC) or function points (unit: LOC or KLOC or FP)
- Use: compares defect frequency normalized by size. Apply when size and defect counts are from the same scope and time period.
Defect Density (per KLOC) = (Number of defects) / (KLOC)
- KLOC = LOC/1000, unit: defects per KLOC
- Assumption: LOC is measured consistently.
Defect Removal Efficiency (DRE) = (Defects found before release) / (Defects found before release + Defects found after release)
- All counts are unitless numbers of defects.
- DRE is a ratio in [0,1]; multiply by 100 to get percent.
- Applies when "after release" defects are tracked for the same scope of releases and during a defined observation window.
Defect Leakage = (Defects found after release) / (Total defects)
- Total defects = defects found before release + defects found after release
- Leakage = 1 - DRE
Test Coverage (%) = (Number of covered items / Total number of items) · 100 (items must be defined for the chosen coverage metric: e.g., requirements, statements, branches, paths)
- Items must be defined: e.g., requirements, statements, branches.
Notes on assumptions: metrics are meaningful only if definitions, time windows, and counting rules are consistent and documented in the SQA plan.
Worked examples
Example 1 — DRE calculation (numerical, exam standard)
Project data: During development and testing before release, the team found 150 defects. After release, customers and maintenance teams reported 30 defects in the same release scope.
- Formula:
DRE = defects_before / (defects_before + defects_after) - Numbers:
DRE = 150 / (150 + 30) - Compute:
DRE = 150 / 180 = 0.8333... - Convert to percent:
0.8333... · 100 = 83.33%
Final answer: DRE = 83.33% (interpretation: about 83% of defects were removed before release). Assumption: all reported defects are counted and belong to this release.
Example 2 — Defect density (numerical)
Project data: Module has 12,400 lines of code (LOC) and during system testing the team found 62 confirmed defects in that module.
- Convert LOC to KLOC:
KLOC = 12400 / 1000 = 12.4 KLOC. - Formula:
Defect Density (per KLOC) = defects / KLOC. - Compute:
62 / 12.4 = 5.0defects per KLOC.
Final answer: 5.0 defects/KLOC. Assumption: LOC counted consistently (e.g., physical source lines), defects counted for this module only.
Example 3 — Short model answer: "Outline an SQA plan for a 6‑month student project" (theory step-by-step)
- Begin with a short purpose and scope: state this SQA plan covers the 6-month "Library Management System" project and applies to code, design docs, and test reports.
- Standards and procedures: list coding standard (e.g., GNU style or team style), defect-reporting template, version control policy.
- Roles and responsibilities: name SQA lead, reviewer(s), test lead, configuration manager.
- Activities and schedule: entry-criteria (requirements approved), code review at 30% and 70% completion, unit testing after each module, integration tests at month 4, system tests month 5, acceptance tests month 6, final audit at delivery.
- Metrics to collect: defects per KLOC (target <= 6/KLOC), DRE target >= 85%, test case pass rate target >= 95% at system test.
- Tools and environment: version control system, defect tracker, test environment description.
- Reporting: weekly SQA status to project manager; monthly metrics report; non-conformance reports immediately.
- Process improvement: root-cause analysis for any module with >10 defects, update coding checklist.
A full-marks answer lists the above, ties dates to the 6-month timeline, and gives numeric metric targets.
Common mistakes
- Wrong denominator in DRE (using only defects before release instead of total defects). Always use defects_before + defects_after.
- Counting informal comments or non‑actionable issues as defects when computing metrics; exclude them or define rules in the SQA plan.
- Not documenting the time window for "after release" defects when computing DRE — leads to wrong comparisons.
- Forgetting to state assumptions (for example, scope of measurements) in exam answers.
For your exam
Types of questions you will get: definitions (short), explain differences (e.g., SQA vs testing), list SQA plan contents, derive and compute metrics like DRE and defect density, draw and label a flowchart of an SQA plan or process, and model-answer tasks to prepare an SQA plan for a small project.
What full-marks answers include:
- For definitions: precise short definitions (bold the term) and one-sentence example.
- For metrics: formula, explanation of each symbol, assumptions, and a correct numerical example with units.
- For SQA plan outline: purpose, scope, standards, responsibilities, schedule of activities, metrics and targets, tools, reporting and process-improvement actions. If asked, include entry/exit criteria and sample audit checklists.
- For diagrams: draw labeled boxes and arrows exactly as described in Key ideas.
Quick check
- Give the DRE formula and explain what it measures.
- What is defect density and why do we use KLOC in its denominator?
- Name three activities that an SQA plan must schedule.
Answers: 1) DRE = defects_before / (defects_before + defects_after); it measures the fraction of defects removed before release. 2) Defect density = defects / KLOC; KLOC normalizes defects by size so modules of different sizes can be compared. 3) Reviews/inspections, testing (unit/integration/system), audits and configuration management (any three).
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?