A product that is delivered on time but fails in use does not satisfy anyone. Quality must be built into the software from the start and cannot be added at the end.
Quality Concepts
Quality of software is its fitness for use. It has two sides. Quality of design is the degree to which the design meets the specification, and quality of conformance is the degree to which the product follows the design. A product has high quality when it meets the stated requirements, follows good practice in its development, and satisfies the implicit expectations of its users, such as ease of use. Quality is controlled by the whole team, and not only by the testers.
Quality Control and Quality Assurance
Quality control is a set of inspections, reviews and tests used throughout the process to find defects in the product. Quality assurance is broader. It is the set of activities that audit the process itself to give confidence that the product will meet the standards. Control looks at the product and assurance looks at the process. Cost of quality includes the cost of prevention, such as training and planning, the cost of appraisal, such as reviews and tests, and the cost of failure, which has an internal part, such as rework before delivery, and an external part, such as complaints and repairs after delivery. External failure costs the most, and the cost of fixing a defect rises steeply the later it is found.
Definition: Software quality assurance. A planned set of activities that audits the software process and its products to give confidence that the software conforms to its requirements and standards.
Activities of SQA
The SQA group acts as the customer's representative within the developer's organisation. Its tasks include preparing an SQA plan for the project, taking part in the development of the process description, reviewing the software engineering activities to check that they follow the defined process, auditing work products to check compliance, and making sure that deviations are documented and handled. It also records any non-compliance and reports the results to management. Standards such as ISO 9001 and the Capability Maturity Model Integration, CMMI, guide the work.
Table 4.1: Quality control and quality assurance
| Aspect | Quality control | Quality assurance |
|---|---|---|
| Focus | The product | The process |
| Method | Inspection and testing | Audits and process review |
| Timing | During and after building | Throughout the project |
| Aim | Find defects | Prevent defects |
Example 4.1: Cost of fixing a defect
Problem: A defect costs 1 unit to fix in the requirements phase, 10 units in coding and 100 units after release. A review at the requirements phase finds 20 defects that would otherwise reach the user. Find the saving.
Solution:
- Fixing 20 defects after release costs 20 × 100 = 2000 units.
- Fixing them in the requirements phase costs 20 × 1 = 20 units.
- Saving = 2000 - 20.
Result: The review saves 1980 units, which shows why early reviews are worthwhile.
Common mistakes
- Thinking that quality is the job of the testers alone.
- Confusing quality control, which checks the product, with quality assurance, which checks the process.
- Leaving quality activities until the end of the project.
Key takeaways
- Quality is fitness for use, and it covers design and conformance.
- Quality control checks the product, quality assurance checks the process.
- The cost of a defect rises sharply the later it is found.
- The SQA group audits the process and reports deviations.
Practice questions
- Distinguish quality control and quality assurance.
- Name the parts of the cost of quality.
- What does the SQA group do?
Answers to the practice questions
- Quality control inspects and tests the product, quality assurance audits the process.
- Prevention, appraisal and failure costs.
- Plans, reviews and audits the process and work products and reports deviations.
Sources
- Official BCA syllabus Software Engineering, course code 26BCA403DS03, Unit IV
