23b88d81cae9fbb6a762f6500245c341.ppt
- Количество слайдов: 43
COSC 4406 Software Engineering Haibin Zhu, Ph. D. Dept. of Computer Science and mathematics, Nipissing University, 100 College Dr. , North Bay, ON P 1 B 8 L 7, Canada, haibinz@nipissingu. ca, http: //www. nipissingu. ca/faculty/haibinz 1
Lecture 15 Risk Management and Quality Management Ref. Chap. 28, 15 & 16 (7 th Ed. ) 2
Project Risks What can go wrong? What is the likelihood? What will the damage be? What can we do about it? 3
Reactive Risk Management n n project team reacts to risks when they occur mitigation—plan for additional resources in anticipation of fire fighting fix on failure—resource are found applied when the risk strikes crisis management—failure does not respond to applied resources and project is in jeopardy 4
Proactive Risk Management n n formal risk analysis is performed organization corrects the root causes of risk n n n TQM concepts and statistical SQA examining risk sources that lie beyond the bounds of the software developing the skill to manage change 5
Seven Principles n n n n Maintain a global perspective—view software risks within the context of system and the business problem Take a forward-looking view—think about the risks that may arise in the future; establish contingency plans Encourage open communication—if someone states a potential risk, don’t discount it. Integrate—a consideration of risk must be integrated into the software process Emphasize a continuous process—the team must be vigilant throughout the software process, modifying identified risks as more information is known and adding new ones as better insight is achieved. Develop a shared product vision—if all stakeholders share the same vision of the software, it likely that better risk identification and assessment will occur. Encourage teamwork—the talents, skills and knowledge of all stakeholder should be pooled 6
Risk Management Paradigm control track RISK identify plan analyze 7
Risk Identification n n n Product size—risks associated with the overall size of the software to be built or modified. Business impact—risks associated with constraints imposed by management or the marketplace. Customer characteristics—risks associated with the sophistication of the customer and the developer's ability to communicate with the customer in a timely manner. Process definition—risks associated with the degree to which the software process has been defined and is followed by the development organization. Development environment—risks associated with the availability and quality of the tools to be used to build the product. Technology to be built—risks associated with the complexity of the system to be built and the "newness" of the technology that is packaged by the system. Staff size and experience—risks associated with the overall technical and project experience of the software engineers who will do the work. 8
Assessing Project Risk-I 1. 2. 3. 4. 5. Have top software and customer managers formally committed to support the project? Are end-users enthusiastically committed to the project and the system/product to be built? Are requirements fully understood by the software engineering team and their customers? Have customers been involved fully in the definition of requirements? Do end-users have realistic expectations? 9
Assessing Project Risk-II 6. 7. 8. 9. 10. 11. Is project scope stable? Does the software engineering team have the right mix of skills? Are project requirements stable? Does the project team have experience with the technology to be implemented? Is the number of people on the project team adequate to do the job? Do all customer/user constituencies agree on the importance of the project and on the requirements for the system/product to be built? 10
Risk Components n n performance risk—the degree of uncertainty that the product will meet its requirements and be fit for its intended use. cost risk—the degree of uncertainty that the project budget will be maintained. support risk—the degree of uncertainty that the resultant software will be easy to correct, adapt, and enhance. schedule risk—the degree of uncertainty that the project schedule will be maintained and that the product will be delivered on time. 11
Risk Projection n Risk projection, also called risk estimation, attempts to rate each risk in two ways n n n the likelihood or probability that the risk is real the consequences of the problems associated with the risk, should it occur. There are four risk projection steps: n n establish a scale that reflects the perceived likelihood of a risk delineate the consequences of the risk estimate the impact of the risk on the project and the product, note the overall accuracy of the risk projection so that there will be no misunderstandings. 12
Building a Risk Table Risk Mitigation Monitoring & Management 1: Catastrophic 2: Critical 3: marginal 4: negligible 13
Building the Risk Table n n Estimate the probability of occurrence Estimate the impact on the project on a scale of 1 to 4, where n n n 4 = low impact on project success 1= catastrophic impact on project success Sort the table by probability and impact 14
Risk Exposure (Impact) The overall risk exposure, RE, is determined using the following relationship [HAL 98]: RE = P x C where P is the probability of occurrence for a risk, and C is the cost to the project should the risk occur. 15
Risk Exposure Example n n Risk identification. Only 70 percent of the software components scheduled for reuse will, in fact, be integrated into the application. The remaining functionality will have to be custom developed. Risk probability. 80% (likely). Risk impact. 60 reusable software components were planned. If only 70 percent can be used, 18 components would have to be developed from scratch (in addition to other custom software that has been scheduled for development). Since the average component is 100 LOC and local data indicate that the software engineering cost for each LOC is $14. 00, the overall cost (impact) to develop the components would be 18 x 100 x 14 = $25, 200. Risk exposure. RE = 0. 80 x 25, 200 ~ $20, 200. 16
Risk Mitigation, Monitoring, and Management n n n mitigation—how can we avoid the risk? monitoring—what factors can we track that will enable us to determine if the risk is becoming more or less likely? management—what contingency plans do we have if the risk becomes a reality? 17
Risks due to n n n Product Size Business Impact the Customer Process Maturity Technology Staff/People 18
Risk Due to Product Size Attributes that affect risk: • estimated size of the product in LOC or FP? • estimated size of product in number of programs, files, transactions? • percentage deviation in size of product from average for previous products? • size of database created or used by the product? • number of users of the product? • number of projected changes to the requirements for the product? before delivery? after delivery? • amount of reused software? 19
Risk Due to Business Impact Attributes that affect risk: • affect of this product on company revenue? • visibility of this product by senior management? • reasonableness of delivery deadline? • number of customers who will use this product interoperability constraints sophistication of end users? • amount and quality of product documentation that must be produced and delivered to the customer? • governmental constraints costs associated with late delivery? • costs associated with a defective product? 20
Risks Due to the Customer Questions that must be answered: • • Have you worked with the customer in the past? Does the customer have a solid idea of requirements? Has the customer agreed to spend time with you? Is the customer willing to participate in reviews? • Is the customer technically sophisticated? • Is the customer willing to let your people do their job—that is, will the customer resist looking over your shoulder during technically detailed work? • Does the customer understand the software engineering process? 21
Risks Due to Process Maturity Questions that must be answered: • Have you established a common process framework? • Is it followed by project teams? • Do you have management support for software engineering • Do you have a proactive approach to SQA? • Do you conduct formal technical reviews? • Are CASE tools used for analysis, design and testing? • Are the tools integrated with one another? • Have document formats been established? 22
Technology Risks Questions that must be answered: • Is the technology new to your organization? • Are new algorithms, I/O technology required? • Is new or unproven hardware involved? • Does the application interface with new software? • Is a specialized user interface required? • Is the application radically different? • Are you using new software engineering methods? • Are you using unconventional software development methods, such as formal methods, AI-based approaches, artificial neural networks? • Are there significant performance constraints? • Is there doubt the functionality requested is "do-able? " 23
Staff/People Risks Questions that must be answered: • • Are the best people available? Does staff have the right skills? Are enough people available? Are staff committed for entire duration? Will some people work part time? Do staff have the right expectations? Have staff received necessary training? Will turnover among staff be low? 24
Quality n The American Heritage Dictionary defines quality as n n “a characteristic or attribute of something. ” For software, two kinds of quality may be encountered: n n n Quality of design encompasses requirements, specifications, and the design of the system. Quality of conformance is an issue focused primarily on implementation. user satisfaction = compliant product + good quality + delivery within budget and schedule 26
Software Quality Conformance to explicitly stated functional and performance requirements, explicitly documented development standards, and implicit characteristics that are expected of all professionally developed software. 27
Cost of Quality n Prevention costs include n n n Internal failure costs include n n quality planning formal technical reviews test equipment Training rework repair failure mode analysis External failure costs are n n complaint resolution product return and replacement help line support warranty work 28
Software Quality Assurance Process Definition & Standards Formal Technical Reviews Analysis & Reporting Measurement Test Planning & Review 29
Role of the SQA Group-I n Prepares an SQA plan for a project. n The plan identifies n n n n evaluations to be performed audits and reviews to be performed standards that are applicable to the project procedures for error reporting and tracking documents to be produced by the SQA group amount of feedback provided to the software project team Participates in the development of the project’s software process description. n The SQA group reviews the process description for compliance with organizational policy, internal software standards, externally imposed standards (e. g. , ISO-9001), and other parts of the software project plan. 30
Role of the SQA Group-II n Reviews software engineering activities to verify compliance with the defined software process. n n Audits designated software work products to verify compliance with those defined as part of the software process. n n identifies, documents, and tracks deviations from the process and verifies that corrections have been made. reviews selected work products; identifies, documents, and tracks deviations; verifies that corrections have been made periodically reports the results of its work to the project manager. Ensures that deviations in software work and work products are documented and handled according to a documented procedure. Records any noncompliance and reports to senior management. n Noncompliance items are tracked until they are resolved. 31
Why SQA Activities Pay Off? cost to find and fix a defect 100 40 -100 log scale 10 1 30 -70 1 Req. 3 -6 10 Design 15 -40 test system code test field use 32
What Are Reviews? n n a meeting conducted by technical people for technical people a technical assessment of a work product created during the software engineering process a software quality assurance mechanism a training ground 34
What Reviews Are Not n n n A project summary or progress assessment A meeting intended solely to impart information A mechanism for political or personal reprisal! 35
The Players review leader standards bearer (SQA) producer maintenance oracle reviewer recorder user rep 36
Conducting the Review 1. be prepared—evaluate product before the review 2. review the product, not the producer 3. keep your tone mild, ask questions instead of making accusations 4. stick to the review agenda 5. raise issues, don't resolve them 6. avoid discussions of style—stick to technical correctness 7. schedule reviews as project tasks 8. record and report all review results 37
Sample-Driven Reviews (SDRs) SDRs attempt to quantify those work products that are primary targets for full FTR (Formal Technical Review)s. To accomplish this … n Inspect a fraction ai of each software work product, i. Record the number of faults, fi found within ai. n Develop a gross estimate of the number of faults within work product i by multiplying fi by 1/ai. n Sort the work products in descending order according to the gross estimate of the number of faults in each. n Focus available review resources on those work products that have the highest estimated number of faults. n 39
Metrics Derived from Reviews inspection time per page of documentation inspection time per KLOC or FP inspection effort per KLOC or FP errors uncovered per reviewer hour errors uncovered per preparation hour errors uncovered per SE task (e. g. , design) number of minor errors (e. g. , typos) number of major errors (e. g. , nonconformance to req. ) number of errors found during preparation 40
Statistical SQA Product & Process Collect information on all defects Find the causes of the defects Move to provide fixes for the process measurement Page 728 -729 . . . an understanding of how to improve quality. . . 41
Six-Sigma for Software Engineering n n The term “six sigma” is derived from six standard deviations— 3. 4 instances (defects) per million occurrences—implying an extremely high quality standard. The Six Sigma methodology defines three core steps: n n Define customer requirements and deliverables and project goals via well-defined methods of customer communication Measure the existing process and its output to determine current quality performance (collect defect metrics) Analyze defect metrics and determine the vital few causes. Two additional: n n Improve the process by eliminating the root causes of defects. Control the process to ensure that future work does not reintroduce the causes of defects. http: //mathworld. wolfram. com/Standard. Deviation. html 42
Software Reliability n A simple measure of reliability is mean-time-betweenfailure (MTBF), where MTBF = MTTF + MTTR n n The acronyms MTTF and MTTR are mean-time-to-failure and mean-time-to-repair, respectively. 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)] x 100% 43
Software Safety n n Software safety is a software quality assurance activity that focuses on the identification and assessment of potential hazards that may affect software negatively and cause an entire system to fail. If hazards can be identified early in the software process, software design features can be specified that will either eliminate or control potential hazards. 44
ISO 9001: 2000 Standard n n n ISO 9001: 2000 is the quality assurance standard that applies to software engineering. The standard contains 20 requirements that must be present for an effective quality assurance system. The requirements delineated by ISO 9001: 2000 address topics such as n management responsibility, quality system, contract review, design control, document and data control, product identification and traceability, process control, inspection and testing, corrective and preventive action, control of quality records, internal quality audits, training, servicing, and statistical techniques. 45
Summary n n n n n Reactive/proactive Risk Strategies Risk Identification Risk Projection Risk Mitigation, Monitoring and Management Quality Concepts SQA Software reviews Statistical SQA Software reliability and safety ISO 9000 Quality Standards 46
23b88d81cae9fbb6a762f6500245c341.ppt