Docsity

SOFTWARE QUALITY ASSURANCE, Papers of Quality Management

Toggle sidebar
bg1
20
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):
1.Proactive Approach: QA focuses on preventing defects before they occur by improving the
development and testing processes.
2.Process-Oriented: QA is primarily concerned with creating and maintaining the right
processes, standards, and guidelines for software development.
3.Continuous Improvement: QA works to improve the overall quality of the product by
refining development processes and ensuring that best practices are followed throughout the
project.
4.Focus on Prevention: It involves activities like process design, audits, and training to
avoid potential issues in the software.
•Quality Control (QC):
1.Reactive Approach: QC focuses on identifying and fixing defects in the finished product
after development is complete.
2.Product-Oriented: QC deals directly with the software product, performing tests and
inspections to identify bugs, errors, or inconsistencies.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download SOFTWARE QUALITY ASSURANCE and more Papers Quality Management in PDF only on Docsity!

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):

  1. Proactive Approach : QA focuses on preventing defects before they occur by improving the development and testing processes.
  2. Process-Oriented: QA is primarily concerned with creating and maintaining the right processes, standards, and guidelines for software development.
  3. Continuous Improvement: QA works to improve the overall quality of the product by refining development processes and ensuring that best practices are followed throughout the project.
  4. Focus on Prevention: It involves activities like process design, audits, and training to avoid potential issues in the software. •Quality Control (QC): 1.Reactive Approach: QC focuses on identifying and fixing defects in the finished product after development is complete. 2.Product-Oriented : QC deals directly with the software product, performing tests and inspections to identify bugs, errors, or inconsistencies.
  1. Defect Detection: QC uses techniques like manual testing, automated testing, and reviews to find defects and ensure the software meets the specified requirements. 4.Final Product Focus: QC activities take place after the product is developed, typically towards the end of the project lifecycle, before release. 5.Ensures Product Quality : It ensures the software works as expected, is free from critical bugs, and meets the customer’s needs and standards. Software Quality Attributes Software Quality Attributes are the non-functional requirements that describe how well a software system performs. They focus on the quality, performance, and behavior of the system. 1Portability A software is said to be portable if it can be easily transferred and operated in different environments, on different machines, and with various operating systems without major changes. Example: Software running on Windows, Linux, and macOS. 2Usability A software has good usability if users (both experienced and beginners) can easily understand, learn, and use its functions without difficulty. Example: Simple and user-friendly interface of a mobile application. 3.Reusability A software has good reusability if its components or modules can be used again in developing other software systems, reducing development time and effort. Example: Using existing code libraries in new projects. 4.Correctness Software is said to be correct if it meets all the requirements specified in the Software Requirements Specification (SRS) document. Example: A billing system generating accurate calculations as per requirements.

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.

  1. Complexity: Proof of correctness can be complex and time-consuming to apply, especially for large systems.
  2. Limited Applicability: Mostly used in critical systems like aerospace or medical software, and not suitable for all types of software. 2. Statistical Quality Assurance (SQA):- Statistical Quality Assurance (SQA) is an approach that uses statistical methods and techniques to monitor, control, and improve the quality of software. It involves gathering data from software processes and products and using statistical analysis to make informed decisions about quality improvements.

Concepts:

  1. Sampling : Instead of testing every part of the software, SQA often uses statistical sampling to select representative parts of the system for testing.
  2. Metrics and Control Charts : Key metrics such as defect rates, code complexity, and test coverage are collected and analyzed to understand quality trends. Control charts and statistical process control (SPC) methods are used to monitor and improve software processes.
  3. Defect Prediction : Statistical models can predict where defects are likely to occur in the software based on historical data.
  4. Advantages - Data-Driven Decisions: Statistical Quality Assurance enables organizations to make objective decisions based on data, helping them identify areas that require improvement. - Continuous Monitoring: It allows continuous monitoring of software quality, which supports ongoing improvement throughout the development process. - Cost-Effective: This approach is more cost-effective compared to exhaustive testing or complete formal verification, as it reduces time and effort.

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:-

  1. Product Quality Management focuses on the end result — ensuring that the final software product meets its quality standards.
  2. Process Quality Management focuses on how the product is made — ensuring that the development and maintenance processes are efficient, controlled, and capable of delivering high-quality software. Advantages of Product Quality Management:  Direct focus on the software’s correctness, functionality, and user experience.  Helps ensure that the software meets customer expectations and performs as intended. Advantages of Process Quality Management:  Long-term improvement of development efficiency and consistency.  Builds an organizational culture focused on continuous improvement, leading to better products in the future. Challenges:  Product Quality Management can be costly and time- consuming, as it requires extensive testing, validation, and verification activities.  Process Quality Management can be hard to implement effectively, especially in organizations that do not have well-established processes or a culture of continuous improvement. Product vs Process Quality Management Product Quality Management Process Quality Management Focuses on the quality of the final product. Focuses on improving the process used to create the product. Ensures the product meets customer requirements. Ensures the process is efficient and error-free. Checks product performance and reliability. Monitors workflow and production methods. Defects are identified in the finished product. Defects are prevented during the production process. Uses product testing and inspection methods. Uses process control and improvement techniques. Customer satisfaction is the main goal. Process efficiency and consistency are the main goals. Example: Testing a software application before release.

Example: Improving software development procedures.