









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Unit-4: SOFTWARE QUALITY ASSURANCE Concept of Software Quality, Software Quality Attributes, Software Quality Metrics and Indicators, The SEI Capability Maturity Model (CMM), SQA Activities, Formal SQA Approaches: Proof of Correctness, Statistical Quality Assurance, Product versus process quality management,
Concept of Software Quality:- Software quality in software project management refers to the degree to which a software product meets the required standards, specifications, and expectations of stakeholders, while also performing efficiently, reliably, and securely. It is a key aspect of software development, as it directly impacts customer satisfaction, cost efficiency, and the overall success of a project. Quality Assurance (QA) and Quality Control (QC):- •Quality Assurance (QA):
Security is measured by how well the system protects users, data, and resources from harm and ensures safe operation. Example: Use of passwords, encryption, and OTP verification in applications. Software quality metrics Software Quality Metrics and Indicators are tools used to measure and evaluate the quality of a software product or process. They help teams understand how well the software is performing, identify areas for improvement, and ensure that the software meets the required standards and user expectations. Software quality metrics are a subset of software metrics that focus on the quality aspects of the product, process, and project. These are more closely associated with process and product metrics than with project metrics. Metrics are quantitative measures used to assess various aspects of software quality. Type of software quality metrices To effectively monitor software quality, software quality metrics are classified into three main categories: Product Metrics Product metrics evaluate the inherent quality of the software, focusing on aspects like code structure, defect occurrence, performance, and security vulnerabilities. They help assess how well the software functions and its overall robustness. Process Metrics Process metrics focus on the effectiveness of development and testing workflows, measuring how efficiently software is developed, tested, and maintained. They highlight how well issues are identified, addressed, and resolved. Project Metrics Project metrics assess the overall project health, including software deployment frequency, user satisfaction, and resource management. They help evaluate the efficiency of project execution and its impact on end-users. Common Software Quality Metrics
1. Defect Density Number of defects per unit size of software This metric helps evaluate how many defects are present in the codebase. A higher defect density indicates more issues in the software. Example : If there are 10 defects found in 1,000 lines of code, the defect density is 10 defects/KLOC. 2. Code Coverage:- The percentage of the codebase that is tested by automated tests (unit tests, integration tests, etc.). Formula:- Code Coverage=Number of Lines Executed by Tests/Total Number of Lines of × Code Coverage=Total Lines of Code/Lines of Code Covered by Tests× Purpose : A higher code coverage percentage indicates that more parts of the software are tested, helping to catch bugs early. Example : If 850 out of 1,000 lines of code are tested, the code coverage is 85%. 3 Mean Time to Failure (MTTF):- The average time the software operates before experiencing a failure. Formula : MTTF=Number of Failures/Total Time in Operation Purpose : MTTF helps measure the reliability of the software. A higher MTTF means the software is more reliable and less prone to failure. Example : If a system runs for 1,000 hours and experiences 10 failures, MTTF would be 100 hours. 4.Defect Resolution Time:- The average time taken to fix a defect from the moment it is identified. Formula: Defect Resolution Time=Number of Defects Fixed/Total Time to Fix Defects
Where: E = Number of edges in the control flow graph. N = Number of nodes in the control flow graph. P = Number of connected components (usually 1 for a single program). Purpose : High cyclomatic complexity indicates complex code that may be harder to maintain, test, and debug. Example : A function with several nested loops and conditionals will have a high cyclomatic complexity, indicating it may be difficult to test or maintain. 3.Response Time:- The amount of time it takes for the software to respond to a user action or request. It is an important performance indicator. A low response time is crucial for user satisfaction. Example : If a web page takes more than 3 seconds to load, users may become frustrated and abandon the site. 4.User Satisfaction:- A qualitative indicator of how happy users are with the software, often gathered through surveys, reviews, or feedback. High user satisfaction indicates that the software meets user needs, while low satisfaction suggests areas for improvement. Example : A mobile app that receives positive reviews for its user interface and performance will have high user satisfaction. 5.Availability:- The percentage of time that the software is fully operational and accessible to users. A key indicator of system reliability and uptime. Higher availability means the software is dependable and users can rely on it. Example : A cloud service with 99.9% availability will be down for about 8 hours per year, which is acceptable for most users.
The SEI Capability Maturity Model (CMM)
The SEI Capability Maturity Model (CMM) is a framework that helps organizations improve their software development and maintenance processes. It was developed by the Software Engineering Institute (SEI) at Carnegie Mellon University in the late 1980s. The CMM provides a structured approach to assessing and improving the capabilities of an organization's processes, with the goal of enhancing the quality, efficiency, and predictability of software development. Maturity Levels : The CMM defines five levels of maturity that represent different stages of an organization’s process capability: Level 1: Initial – Processes are unpredictable, poorly controlled, and reactive. There is little to no formal process, and success depends on individual effort. Level 2: Managed – Basic project management processes are established to track cost, schedule, and functionality. The organization begins to implement policies to manage processes. Level 3: Defined – The organization’s processes are well-defined, documented, and standardized across projects. Best practices are established and followed consistently. Level 4: Quantitatively Managed – Processes are measured and controlled using quantitative data. Metrics and statistical techniques are used to improve performance and predict outcomes. Level 5: Optimizing – Continuous process improvement is the focus. The organization strives for ongoing process optimization and innovation, and lessons learned are used to improve both current and future processes.
Unstable environment for software development. No basis for predicting product quality, time for completion, etc. Limited project management capabilities, such as no systematic tracking of schedules, budgets, or progress. We have limited communication and coordination among team members and stakeholders. No formal training or orientation for new team members. Little or no use of software development tools or automation. Highly dependent on individual skills and knowledge rather than standardized processes. High risk of project failure or delays due to a lack of process control and stability. Level-2: Repeatable Focuses on establishing basic project management policies. Experience with earlier projects is used for managing new similar-natured projects. Project Planning- It includes defining resources required, goals, constraints, etc. for the project. It presents a detailed plan to be followed systematically for the successful completion of good-quality software. Configuration Management- The focus is on maintaining the performance of the software product, including all its components, for the entire lifecycle. Requirements Management- It includes the management of customer reviews and feedback which result in some changes in the requirement set. It also consists of accommodation of those modified requirements. Subcontract Management- It focuses on the effective management of qualified software contractors i.e. it manages the parts of the software developed by third parties. Software Quality Assurance- It guarantees a good quality software product by following certain rules and quality standard guidelines while developing. Level- 3 : Managed
At this stage, quantitative quality goals are set for the organization for software products as well as software processes. The measurements made help the organization to predict the product and process quality within some limits defined quantitatively. Software Quality Management: It includes the establishment of plans and strategies to develop quantitative analysis and understanding of the product's quality. Quantitative Management: It focuses on controlling the project performance quantitatively. Level- 4 : Optimizing This is the highest level of process maturity in CMM and focuses on continuous process improvement in the organization using quantitative feedback. The use of new tools, techniques, and evaluation of software processes is done to prevent the recurrence of known defects. Process Change Management: Its focus is on the continuous improvement of the organization's software processes to improve productivity, quality, and cycle time for the software product. Technology Change Management: It consists of the identification and use of new technologies to improve product quality and decrease product development time. Defect Prevention It focuses on the identification of causes of defects and prevents them from recurring in future projects by improving project-defined processes. Formal SQA Approaches: Proof of Correctness Formal SQA Approaches Definition: Formal SQA (Software Quality Assurance) Approaches are structured methods used to ensure that software is correct, reliable, and meets given requirements. These approaches use mathematical and logical techniques to reduce errors. Formal SQA Approaches refer to structured methodologies used to ensure and verify software quality.
Concepts:
Disadvantages
- Requires Data: Needs proper data collection for accurate results. - Not 100% Error-Free: Sampling may miss some defects. Challenges: Data Collection: Collecting the appropriate data and ensuring its accuracy can be difficult, and the effectiveness of the results depends on the quality of the data collected.
Limited Insight into Correctness: Statistical methods mainly focus on process control and defect management, and they do not fully ensure or prove the correctness and functionality of the software. 3.Product versus Process Quality Management: -
Product and process quality management are two different approaches to software quality. Product quality management focuses on the quality of the final software product, while process quality management focuses on the quality of the development and maintenance processes used to create the software.
Product Quality Management:- Focus : Ensuring that the final software product meets the required functional, performance, security, and usability standards.
Activities : Includes product testing (unit testing, integration testing, system testing), validation, and verification of the product against requirements.
Goal : To ensure that the delivered product is defect- free, meets customer needs, and works as expected in real-world environments.
Process Quality Management:- Focus : Ensuring that the processes used to develop, test, and maintain the software are efficient, well-defined, and effective in delivering high-quality results.
Comparison:-
Example: Improving software development procedures.