Knowledge / Computer Applications / Software quality assurance: metrics, reviews and standards

Software quality assurance: metrics, reviews and standards

Computer Applications (MCA) · Software engineering · free study notes for exams, placements and interviews

In short

Software quality assurance (SQA) is the planned, systematic set of activities that gives confidence a product and its process conform to requirements — as distinct from quality control, which inspects the product that was built. It rests on three legs: metrics (measure quality objectively), reviews (find defects statically, before execution), and standards and models (ISO/IEC, CMMI, Six Sigma) that define what "good" means. Indian IT services firms — TCS, Infosys, Wipro, HCLTech, Cognizant, LTIMindtree, Tech Mahindra — run large dedicated SQA/quality functions and are among the world's heaviest users of CMMI and ISO certification, so this topic appears in almost every campus placement technical round for QA, developer and business-analyst roles. In exams it is standard in AICTE/CBCS "Software Engineering" and "Software Quality Assurance and Testing" papers, and GATE CS asks the computable parts: cyclomatic complexity, function points, defect density and reliability.

Explained

Quality, QA and QC: definitions and the V&V frame

Quality models and attributes

Software metrics: classification and the core set

Reviews: types, the inspection process and metrics

Standards, models and certification

Key points

Formulas and examples

Cyclomatic complexity: V(G) = E − N + 2P = (number of binary decisions) + 1 = (number of bounded regions) + 1
E = edges, N = nodes of the control flow graph, P = connected components (P = 1 for a single program)
Defect density = Total defects ÷ Size (defects per KLOC, or defects per function point)
Defect Removal Efficiency, DRE = E ÷ (E + D) × 100%
E = defects found before delivery of that phase/product, D = defects found after (escaped)
Function points: UFP = Σ (count of each function type × its weight); VAF = 0.65 + 0.01 × Σ Fi (14 GSCs, each 0-5); FP = UFP × VAF
Productivity = FP ÷ person-months; Cost per FP = total cost (₹) ÷ FP; Documentation = pages ÷ FP
Halstead: vocabulary n = n1 + n2; length N = N1 + N2; Volume V = N × log₂ n (bits); Difficulty D = (n1/2) × (N2/n2) (equivalently D = (N2 × n1) ÷ (2 × n2)); Effort E = D × V; Estimated bugs B ≈ V ÷ 3000
Reliability: MTBF = MTTF + MTTR; Availability = MTTF ÷ (MTTF + MTTR) × 100%; Failure rate λ = 1 ÷ MTTF; R(t) = e−λt
Test coverage = (items exercised ÷ total items) × 100% (items = statements, branches, paths)
Six Sigma: DPMO = (defects ÷ (units × opportunities per unit)) × 1,000,000
Cost of quality = Prevention + Appraisal + Internal failure + External failure; COQ% = CoQ ÷ total project cost × 100%

Example 1 — Cyclomatic complexity and basis-path tests. A control flow graph for a module has N = 12 nodes and E = 16 edges, one connected component.

Example 2 — Function points, productivity and cost (₹). A college-ERP module: EI = 22 (average, weight 4), EO = 16 (average, 5), EQ = 10 (simple, 3), ILF = 6 (average, 10), EIF = 3 (average, 7). The 14 GSCs sum to Σ Fi = 42.

Example 3 — Defect density and DRE across phases. A 45,000-LOC (45 KLOC) release. Defects found: requirements review 30, design review 48, code review 90, unit testing 72, system testing 60, UAT 25; field defects in the first 3 months = 15.

Example 4 — Review economics and inspection rate. An SRS of 60 pages is inspected by 4 inspectors: preparation 2 h each, meeting 3 h with all 4 plus a moderator (5 people), rework 10 h by the author.

Example 5 — Reliability, availability and DPMO. A payment gateway logs 6 failures in 3,000 operating hours, with an average repair time of 1.5 h.

AspectWalkthroughTechnical reviewInspection (Fagan)Audit
Led byAuthorModerator or lead peerTrained moderatorIndependent auditor
FormalityLowMediumHighHigh, external
Checklist and entry/exit criteriaNoSometimesMandatoryCriteria are the standard/contract
Defects loggedInformallyYes, defect listYes, classified and countedNon-conformance report
Metrics collectedNoSomeYes (rates, density, yield)Findings, corrective actions
Primary purposeUnderstanding, consensus, trainingConformance and suitabilityDefect removal and process dataCompliance evidence
MetricFormulaGood directionTypical use
Defect densitydefects ÷ KLOC or FPLowerRelease readiness
DREE ÷ (E+D)Higher (→100%)Process capability
V(G)E − N + 2PLower (≤10)Unit test count, refactor trigger
Code coverageexercised ÷ total × 100HigherBuild quality gate
MTTF / availabilityhours ÷ failuresHigherSLA, reliability claims
Review yielddefects found ÷ total defectsHigherReview effectiveness

Where it is used

Interview questions

Common mistakes

Related topics

Software testing: levels and techniques · Test tools: Selenium, JMeter and Postman · SDLC and Agile · Software project management and estimation · Software configuration management and DevOps · Software reliability and maintenance

Open in the Knowledge reader →Find jobs →