Good quality does not happen by chance. It is the result of planned activities, which are the work of software quality assurance.
Quality Control and Assurance
Quality control checks the product, by reviews and tests, to find defects. Software quality assurance (SQA) is a set of planned and systematic activities that give confidence that the product will meet its requirements and standards, by checking that the process is followed. SQA looks at the process, and control looks at the product. SQA is applied at every stage of the project.
Definition: Software quality assurance. A planned and systematic pattern of activities that gives confidence that a software product conforms to its requirements and to the standards of its development.
The SQA Plan
The SQA plan is a document that sets out how quality will be assured in a project. The IEEE standard 730 gives the usual contents. The plan states the purpose and scope, the management structure and the responsibilities, the documentation that will be produced and checked, the standards, practices and conventions to be followed, the reviews and audits to be held, the testing that will be done, the way that problems will be reported and corrected, the tools and techniques, the control of the code, media and suppliers, the records that will be kept, and the training needed. It is prepared early and is updated as the project proceeds.
SQA Activities
The SQA group has several activities. It prepares the SQA plan. It takes part in the development of the process description and checks it against the standards. It reviews the engineering activities to confirm that they follow the process. It audits the work products to check that they match the standards. It makes sure that deviations are recorded and corrected, and reports to senior management. It also uses metrics to measure the quality and the process, and works with configuration management to control changes. Formal technical reviews, with a small group, find defects early, and inspections and walkthroughs are common forms.
Table 4.6: Activities of SQA
| Activity | Purpose | Output |
|---|---|---|
| Plan | Define how quality will be assured | SQA plan |
| Review | Find defects in work products | Review report |
| Audit | Check that standards are followed | Audit findings |
| Metrics | Measure product and process | Quality data |
| Reporting | Inform management | Status and deviation reports |
Example 4.6: Review effectiveness
Problem: Reviews of the design find 36 defects. Testing then finds 9 more defects that came from the design. Find the defect removal efficiency of the reviews.
Solution:
- Total design defects = 36 + 9 = 45.
- Efficiency = 36 / 45.
Result: The reviews removed 80 percent of the design defects.
found_review, found_test = 36, 9
print(found_review / (found_review + found_test) * 100, "percent")
Output
80.0 percent
Common mistakes
- Preparing an SQA plan and then not following it.
- Making the SQA group part of the development team, so that it loses independence.
- Treating quality assurance as testing at the end.
Key takeaways
- SQA checks the process, and quality control checks the product.
- The SQA plan follows the IEEE 730 contents.
- SQA activities include reviews, audits, metrics and reporting.
- Defect removal efficiency = defects found in review / total defects.
Practice questions
- What is software quality assurance?
- What is the SQA plan?
- Name two activities of the SQA group.
Answers to the practice questions
- Planned and systematic activities that give confidence that the product conforms to its requirements and standards.
- A document stating how quality will be assured in a project.
- Reviews and audits (also preparing the plan and reporting deviations).
Sources
- Official BCA syllabus Advanced Software Engineering, course code 25BCA405DS01, Unit IV
