Software Quality Assurance
Sakshi Education
To deliver the best quality software is the pivotal aspect of software development life cycle. Here comes the question: what is software quality assurance? And more precise what is quality? Let’s first peep deep in to what is quality then later we will precede further…
1. Quality
As per the definition of American Dictionary, Quality can be defined as “a characteristic or attribute of something.” Here attribute refers to quantity which can be measured within some standards, like length, color, distance etc. There can be two kinds of quality we usually encounter:
User satisfaction = compliant product + good quality + delivery within budget and schedule
1.1 Quality control:
Quality control involves the series of inspections, reviews, and tests used throughout the software process. Quality control includes a feedback loop to the process. A key concept of quality control is that all work products have defined, measurable specifications to which we may compare the output of each process. The feedback loop is essential to minimize the defects produced.
1.2 Quality Assurance
Quality assurance consists of the auditing and reporting functions of management. If the data provided through quality assurance identify problems, it is management’s responsibility to address the problems and apply the necessary resources to resolve quality issues.
1.3 Cost of Quality:
The cost of quality includes all costs incurred in the pursuit of quality or in performing quality-related activities. Quality costs may be divided 3 mode of cost:
Failure costs include two types of costs:
External Failure Cost: These costs incur costs like complaint resolution, product return and replacement, help line support and warranty work
2. Software Quality Assurance (SQA)
Definition:
“Conformance to explicitly stated functional and performance requirements, explicitly documented development standards, and implicit characteristics that are expected of all professionally developed software. “
Definition serves to emphasize three important points:
SQA group made up of software engineers, project managers, customers, salespeople, and the individuals members. Software quality assurance is composed of two different constituencies.
Ensures that deviations in software work and work products are documented and handled according to a documented procedure.
Considers the same conditions except that design and code reviews are conducted as part of each development step. In this case, ten initial preliminary design errors are amplified to 24 errors before testing commences. Only three latent errors exist. Now we can estimate overall cost (with and without review for our hypothetical example) Using these data, the total cost for development and maintenance when reviews are conducted. To conduct reviews, a software engineer must expend time and effort and the development organization must spend money.
4. FORMAL TECHNICAL REVIEWS
It is a software quality assurance activity performed by software engineers. The FTR is actually a class of reviews that includes walkthroughs, inspections, round-robin reviews and other small group technical assessments of software.
Objectives of the FTR are:
Every review meeting should abide by the following constraints:
During the FTR, a reviewer (the recorder) actively records all issues that have been raised. These are summarized at the end of the review meeting and a review issues list is produced. A review summary report answers three questions:
Review Guidelines
1. Quality
As per the definition of American Dictionary, Quality can be defined as “a characteristic or attribute of something.” Here attribute refers to quantity which can be measured within some standards, like length, color, distance etc. There can be two kinds of quality we usually encounter:
- Quality of design of a product increases, if the product is manufactured according to specifications.
- Quality of conformance is the degree to which the design specifications are followed during manufacturing.
User satisfaction = compliant product + good quality + delivery within budget and schedule
1.1 Quality control:
Quality control involves the series of inspections, reviews, and tests used throughout the software process. Quality control includes a feedback loop to the process. A key concept of quality control is that all work products have defined, measurable specifications to which we may compare the output of each process. The feedback loop is essential to minimize the defects produced.
1.2 Quality Assurance
Quality assurance consists of the auditing and reporting functions of management. If the data provided through quality assurance identify problems, it is management’s responsibility to address the problems and apply the necessary resources to resolve quality issues.
1.3 Cost of Quality:
The cost of quality includes all costs incurred in the pursuit of quality or in performing quality-related activities. Quality costs may be divided 3 mode of cost:
- Prevention
- Appraisal
- Failure.
- Quality planning
- Formal technical reviews
- Test equipment
- Training
1.3.2 Appraisal costs:
It include activities to gain insight into product. This process involves following aspects:
It include activities to gain insight into product. This process involves following aspects:
- In-process and Inter-process inspection
- Equipment calibration and maintenance
- Testing
Failure costs include two types of costs:
- Internal failure costs
- External failure costs
External Failure Cost: These costs incur costs like complaint resolution, product return and replacement, help line support and warranty work
2. Software Quality Assurance (SQA)
Definition:
“Conformance to explicitly stated functional and performance requirements, explicitly documented development standards, and implicit characteristics that are expected of all professionally developed software. “
Definition serves to emphasize three important points:
- Software requirements are the foundation from which quality is measured. Lack of conformance to requirements is lack of quality.
- Specified standards define a set of development criteria, If the criteria are not followed, lack of quality will almost surely result.
- A set of implicit requirements often goes unmentioned. If software conforms to its explicit requirements but fails to meet implicit requirements, software quality is suspect
SQA group made up of software engineers, project managers, customers, salespeople, and the individuals members. Software quality assurance is composed of two different constituencies.
- Software engineers who do technical work
- SQA group that has responsibility for quality assurance planning, oversight, record keeping, analysis, and reporting.
Ensures that deviations in software work and work products are documented and handled according to a documented procedure.
- Deviations may be encountered in the project plan, process description, applicable standards, or technical work products. Records any noncompliance and reports to senior management.
- Noncompliance items are tracked until they are resolved.
2.3 Software Review
Software reviews are a "filter" for the software engineering process. That is, reviews are applied at various points during software development and serve to uncover errors and defects that can then be removed. There are two types of reviews:
Informal Review: Meeting around the coffee machine and discussing technical problems.
Formal Review: Formal presentation of software design to an audience of customers, management, and technical staff
A FTR is the most effective filter from a quality assurance standpoint.
3. Cost Impact of Software Defects
The primary objective of formal technical reviews is to find errors during the process so that they do not become defects after release of the software. Direct benefit is early discovery of error; do not propagate to the next step. Design activities introduce between 50 and 65 percent of all errors (and ultimately, all defects) during the software process. However, FTR have been shown to be up to 75 percent effective in uncovering design flaws. FTP substantially reduces the cost of subsequent steps in the development and support phases.
Assume that an error uncovered during design will cost 1.0 monetary unit to correct. Relative to this cost, the same error uncovered just before testing commences will cost 6.5 units; during testing, 15 units; and after release, between 60 and 100 units.
3.1 Defect Amplification and Removal
A defect amplification model can be used to illustrate the generation and detection of errors during the preliminary design, detail design, and coding steps of the software engineering process. A box represents a software development step. During the step, errors may be by mistake generated. Review may fail to uncover newly generated errors and errors from previous steps, resulting in some number of errors that are passed through. In some cases, errors passed through from previous steps are amplified (amplification factor, x) by current work. The box subdivisions represent each of these characteristics and the percent of efficiency for detecting errors.
Defect Amplification model
Defect Amplification – No Review
Software reviews are a "filter" for the software engineering process. That is, reviews are applied at various points during software development and serve to uncover errors and defects that can then be removed. There are two types of reviews:
Informal Review: Meeting around the coffee machine and discussing technical problems.
Formal Review: Formal presentation of software design to an audience of customers, management, and technical staff
A FTR is the most effective filter from a quality assurance standpoint.
3. Cost Impact of Software Defects
The primary objective of formal technical reviews is to find errors during the process so that they do not become defects after release of the software. Direct benefit is early discovery of error; do not propagate to the next step. Design activities introduce between 50 and 65 percent of all errors (and ultimately, all defects) during the software process. However, FTR have been shown to be up to 75 percent effective in uncovering design flaws. FTP substantially reduces the cost of subsequent steps in the development and support phases.
Assume that an error uncovered during design will cost 1.0 monetary unit to correct. Relative to this cost, the same error uncovered just before testing commences will cost 6.5 units; during testing, 15 units; and after release, between 60 and 100 units.
3.1 Defect Amplification and Removal
A defect amplification model can be used to illustrate the generation and detection of errors during the preliminary design, detail design, and coding steps of the software engineering process. A box represents a software development step. During the step, errors may be by mistake generated. Review may fail to uncover newly generated errors and errors from previous steps, resulting in some number of errors that are passed through. In some cases, errors passed through from previous steps are amplified (amplification factor, x) by current work. The box subdivisions represent each of these characteristics and the percent of efficiency for detecting errors.
Defect Amplification model
Defect Amplification – No Review
- Because of no review conducted, Ten preliminary design defects are amplified to 94 errors before testing commences.
- Each test step is assumed to correct 50 percent of all incoming errors without introducing any new errors.
- Twelve latent errors are released to the field or to the customers.
Considers the same conditions except that design and code reviews are conducted as part of each development step. In this case, ten initial preliminary design errors are amplified to 24 errors before testing commences. Only three latent errors exist. Now we can estimate overall cost (with and without review for our hypothetical example) Using these data, the total cost for development and maintenance when reviews are conducted. To conduct reviews, a software engineer must expend time and effort and the development organization must spend money.
4. FORMAL TECHNICAL REVIEWS
It is a software quality assurance activity performed by software engineers. The FTR is actually a class of reviews that includes walkthroughs, inspections, round-robin reviews and other small group technical assessments of software.
Objectives of the FTR are:
- To uncover errors in function, logic, or implementation for any representation of the software;
- To verify that the software under review meets its requirements;
- To ensure that the software has been represented according to predefined standards;
- To achieve software that is developed in a uniform manner;
- To make projects more manageable.
Every review meeting should abide by the following constraints:
- Between three and five people (typically) should be involved in the review.
- Advance preparation should occur but should require no more than two hours of work for each person.
- The duration of the review meeting should be less than two hours.
- FTR focuses on a specific (and small) part of the overall software.
- e.g. rather than attempting to review an entire design, are conducted for each component or small group of components.
- The focus of the FTR is on a work product. (e.g. requirement, analysis, design, coding)
- The producer—informs the project leader that the work product is complete and that a review is required.
- The project leader contacts a review leader, who evaluates the product for readiness, generates copies of product materials, and distributes them to two or three reviewers for advance preparation.
- Each reviewer is expected to spend between one and two hours reviewing the product & making notes.
- Concurrently, the review leader also reviews the product and establishes an agenda for the review meeting, which is typically scheduled for the next day.
- The FTR begins with an introduction of the agenda and a brief introduction by the producer.
- The producer then proceeds to "walk through" the work product, explaining the material, while reviewers raise issues based on their advance preparation.
- When valid problems or errors are discovered, the recorder notes each.
- At the end of the review, all attendees of the FTR must decide whether to
- Accept the product without further modification,
- Reject the product due to severe errors
- Accept the product provisionally
- The decision made, all FTR attendees complete a sign-off, indicating their participation in the review and their concurrence with the review team's findings.
During the FTR, a reviewer (the recorder) actively records all issues that have been raised. These are summarized at the end of the review meeting and a review issues list is produced. A review summary report answers three questions:
- What was reviewed?
- Who reviewed it?
- What were the findings and conclusions?
- To identify problem areas within the product
- To serve as an action item checklist that guides the producer as corrections are made.
Review Guidelines
- Review the product, not the producer. Don’t point out errors harshly. One way to be gentle is to ask a question that enables the producer to discover his or her own error.
- Set an agenda and maintain it.
- An FTR must be kept on track and on schedule.
- Limit debate and rebuttal:
- Rather than spending time debating the question, the issue should be recorded for further discussion off-line
- Enunciate problem areas, but don't attempt to solve every problem noted.
- Review only some small part of component.
- Take written notes.
- make notes on a wall board, so that wording and priorities can be assessed by other reviewers
- Limit the number of participants and insist upon advance preparation.
- Keep the number of people involved to the necessary minimum. However, all review steam members must prepare in advance.
- Develop a checklist for each product that is likely to be reviewed.
- Helps the review leader to structure the FTR meeting and helps each reviewer to focus on important issues.
- Allocate resources and schedule time for FTRs
- Conduct meaningful training for all reviewers.
- To be effective all review participants should receive some formal training
- Review your early reviews.
5. Software Reliability
Software reliability is defined in statistical terms as "the probability of failure-free operation of a computer program in a specified environment for a specified time“.
What is meant by the term failure?
In the context of any discussion of software quality and reliability, failure is nonconformance to software requirements. Correction of one failure may in fact result in the introduction of other errors that ultimately result in other failures. Software reliability can be measured directed and estimated using historical and developmental data.
Measures of Reliability and Availability
A simple measure of reliability is mean-time- between-failure (MTBF), where
MTBF = MTTF + MTTR
The acronyms MTTF and MTTR are mean-time-to-failure and mean-time-to-repair, respectively.
MTBF is a far more useful measure than defects/KLOC or defects/FP. stated simply, an end-user is concerned with failures, not with the total error count. Because each error contained within a program does not have the same failure rate, the total error count provides little indication of the reliability of a system.
In addition to a reliability measure, we must develop a measure of availability. Software availability is the probability that a program is operating according to requirements at a given point in time and is defined as
Availability = [MTTF/(MTTF + MTTR)] 100%
The MTBF reliability measure is equally sensitive to MTTF and MTTR. The availability measure is somewhat more sensitive to MTTR, an indirect measure of the maintainability of software.
Software reliability is defined in statistical terms as "the probability of failure-free operation of a computer program in a specified environment for a specified time“.
What is meant by the term failure?
In the context of any discussion of software quality and reliability, failure is nonconformance to software requirements. Correction of one failure may in fact result in the introduction of other errors that ultimately result in other failures. Software reliability can be measured directed and estimated using historical and developmental data.
Measures of Reliability and Availability
A simple measure of reliability is mean-time- between-failure (MTBF), where
MTBF = MTTF + MTTR
The acronyms MTTF and MTTR are mean-time-to-failure and mean-time-to-repair, respectively.
MTBF is a far more useful measure than defects/KLOC or defects/FP. stated simply, an end-user is concerned with failures, not with the total error count. Because each error contained within a program does not have the same failure rate, the total error count provides little indication of the reliability of a system.
In addition to a reliability measure, we must develop a measure of availability. Software availability is the probability that a program is operating according to requirements at a given point in time and is defined as
Availability = [MTTF/(MTTF + MTTR)] 100%
The MTBF reliability measure is equally sensitive to MTTF and MTTR. The availability measure is somewhat more sensitive to MTTR, an indirect measure of the maintainability of software.
Published date : 08 Apr 2015 05:41PM