內容課件講稿24.quality management_第1頁
內容課件講稿24.quality management_第2頁
內容課件講稿24.quality management_第3頁
內容課件講稿24.quality management_第4頁
內容課件講稿24.quality management_第5頁
已閱讀5頁,還剩46頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、Chapter 24 - Quality ManagementLecture 11Chapter 24 Quality managementTopics covered Software quality Software standards Reviews and inspections Software measurement and metrics2Chapter 24 Quality managementSoftware quality management Concerned with ensuring that the required level of quality is ach

2、ieved in a software product. Three principal concerns: At the organizational level, quality management is concerned with establishing a framework of organizational processes and standards that will lead to high-quality software. At the project level, quality management involves the application of sp

3、ecific quality processes and checking that these planned processes have been followed. At the project level, quality management is also concerned with establishing a quality plan for a project. The quality plan should set out the quality goals for the project and define what processes and standards

4、are to be used. 3Chapter 24 Quality managementQuality management activities Quality management provides an independent check on the software development process. The quality management process checks the project deliverables to ensure that they are consistent with organizational standards and goals

5、The quality team should be independent from the development team so that they can take an objective view of the software. This allows them to report on software quality without being influenced by software development issues. 4Chapter 24 Quality managementQuality management and software development

6、5Chapter 24 Quality managementQuality planning A quality plan sets out the desired product qualities and how these are assessed and defines the most significant quality attributes. The quality plan should define the quality assessment process. It should set out which organisational standards should

7、be applied and, where necessary, define new standards to be used.6Chapter 24 Quality managementQuality plans Quality plan structure Product introduction; Product plans; Process descriptions; Quality goals; Risks and risk management. Quality plans should be short, succinct documents If they are too l

8、ong, no-one will read them.7Chapter 24 Quality managementScope of quality management Quality management is particularly important for large, complex systems. The quality documentation is a record of progress and supports continuity of development as the development team changes. For smaller systems,

9、 quality management needs less documentation and should focus on establishing a quality culture.8Chapter 24 Quality managementSoftware quality Quality, simplistically, means that a product should meet its specification. This is problematical for software systems There is a tension between customer q

10、uality requirements (efficiency, reliability, etc.) and developer quality requirements (maintainability, reusability, etc.); Some quality requirements are difficult to specify in an unambiguous way; Software specifications are usually plete and often inconsistent. The focus may be fitness for purpos

11、e rather than specification conformance.9Chapter 24 Quality managementSoftware fitness for purpose Have programming and documentation standards been followed in the development process? Has the software been properly tested? Is the software sufficiently dependable to be put into use? Is the performa

12、nce of the software acceptable for normal use? Is the software usable? Is the software well-structured and understandable?10Chapter 24 Quality managementSoftware quality attributesSafetyUnderstandabilityPortabilitySecurityTestabilityUsabilityReliabilityAdaptabilityReusabilityResilienceModularityEffi

13、ciencyRobustnessComplexityLearnability11Chapter 24 Quality managementQuality conflicts It is not possible for any system to be optimized for all of these attributes for example, improving robustness may lead to loss of performance. The quality plan should therefore define the most important quality

14、attributes for the software that is being developed. The plan should also include a definition of the quality assessment process, an agreed way of assessing whether some quality, such as maintainability or robustness, is present in the product. 12Chapter 24 Quality managementProcess and product qual

15、ity The quality of a developed product is influenced by the quality of the production process. This is important in software development as some product quality attributes are hard to assess. However, there is a very complex and poorly understood relationship between software processes and product q

16、uality. The application of individual skills and experience is particularly important in software development; External factors such as the novelty of an application or the need for an accelerated development schedule may impair product quality.13Chapter 24 Quality managementProcess-based quality 14

17、Chapter 24 Quality managementSoftware standards Standards define the required attributes of a product or process. They play an important role in quality management. Standards may be international, national, organizational or project standards. Product standards define characteristics that all softwa

18、re components should exhibit e.g. a common programming style. Process standards define how the software process should be enacted.15Chapter 24 Quality managementImportance of standards Encapsulation of best practice- avoids repetition of past mistakes. They are a framework for defining what quality

19、means in a particular setting i.e. that organizations view of quality. They provide continuity - new staff can understand the organisation by understanding the standards that are used.16Chapter 24 Quality managementProduct and process standards Product standardsProcess standardsDesign review formDes

20、ign review conductRequirements document structureSubmission of new code for system buildingMethod header formatVersion release processJava programming styleProject plan approval processProject plan formatChange control processChange request formTest recording process17Chapter 24 Quality managementPr

21、oblems with standards They may not be seen as relevant and up-to-date by software engineers. They often involve too much bureaucratic form filling. If they are unsupported by software tools, tedious form filling work is often involved to maintain the documentation associated with the standards.18Cha

22、pter 24 Quality managementStandards development Involve practitioners in development. Engineers should understand the rationale underlying a standard. Review standards and their usage regularly. Standards can quickly e outdated and this reduces their credibility amongst practitioners. Detailed stand

23、ards should have specialized tool support. Excessive clerical work is the most significant complaint against standards. Web-based forms are not good enough.19Chapter 24 Quality managementISO 9001 standards framework An international set of standards that can be used as a basis for developing quality

24、 management systems. ISO 9001, the most general of these standards, applies to organizations that design, develop and maintain products, including software. The ISO 9001 standard is a framework for developing software standards. It sets out general quality principles, describes quality processes in

25、general and lays out the organizational standards and procedures that should be defined. These should be documented in an organizational quality manual.20Chapter 24 Quality managementISO 9001 core processes 21Chapter 24 Quality managementISO 9001 and quality management 22Chapter 24 Quality managemen

26、tISO 9001 certification Quality standards and procedures should be documented in an organisational quality manual. An external body may certify that an organisations quality manual conforms to ISO 9000 standards. Some customers require suppliers to be ISO 9000 certified although the need for flexibi

27、lity here is increasingly recognised.23Chapter 24 Quality managementKey points Software quality management is concerned with ensuring that software has a low number of defects and that it reaches the required standards of maintainability, reliability, portability and so on. SQM includes defining sta

28、ndards for processes and products and establishing processes to check that these standards have been followed. Software standards are important for quality assurance as they represent an identification of best practice. Quality management procedures may be documented in an organizational quality man

29、ual, based on the generic model for a quality manual suggested in the ISO 9001 standard.24Chapter 24 Quality managementChapter 24 - Quality ManagementLecture 225Chapter 24 Quality managementReviews and inspections A group examines part or all of a process or system and its documentation to find pote

30、ntial problems. Software or documents may be signed off at a review which signifies that progress to the next development stage has been approved by management. There are different types of review with different objectives Inspections for defect removal (product); Reviews for progress assessment (pr

31、oduct and process); Quality reviews (product and standards).26Chapter 24 Quality managementQuality reviews A group of people carefully examine part or all of a software system and its associated documentation. Code, designs, specifications, test plans, standards, etc. can all be reviewed. Software o

32、r documents may be signed off at a review which signifies that progress to the next development stage has been approved by management.27Chapter 24 Quality managementThe software review process 28Chapter 24 Quality managementReviews and agile methods The review process in agile software development i

33、s usually informal. In Scrum, for example, there is a review meeting after each iteration of the software has been completed (a sprint review), where quality issues and problems may be discussed. In extreme programming, pair programming ensures that code is constantly being examined and reviewed by

34、another team member. XP relies on individuals taking the initiative to improve and refactor code. Agile approaches are not usually standards-driven, so issues of standards compliance are not usually considered.29Chapter 24 Quality managementProgram inspections These are peer reviews where engineers

35、examine the source of a system with the aim of discovering anomalies and defects. Inspections do not require execution of a system so may be used before implementation. They may be applied to any representation of the system (requirements, design,configuration data, test data, etc.). They have been

36、shown to be an effective technique for discovering program errors.30Chapter 24 Quality managementInspection checklists Checklist of common errors should be used to drive the inspection. Error checklists are programming language dependent and reflect the characteristic errors that are likely to arise

37、 in the language. In general, the weaker the type checking, the larger the checklist. Examples: Initialisation, Constant naming, loop termination, array bounds, etc.31Chapter 24 Quality managementAn inspection checklist (a)Fault classInspection checkData faultsAre all program variables initialized b

38、efore their values are used?Have all constants been named?Should the upper bound of arrays be equal to the size of the array or Size -1?If character strings are used, is a delimiter explicitly assigned?Is there any possibility of buffer overflow? Control faultsFor each conditional statement, is the

39、condition correct?Is each loop certain to terminate?Are compound statements correctly bracketed?In case statements, are all possible cases accounted for?If a break is required after each case in case statements, has it been included?Input/output faultsAre all input variables used?Are all output vari

40、ables assigned a value before they are output?Can unexpected inputs cause corruption?32Chapter 24 Quality managementAn inspection checklist (b)Fault classInspection checkInterface faultsDo all function and method calls have the correct number of parameters?Do formal and actual parameter types match?

41、 Are the parameters in the right order? If components access shared memory, do they have the same model of the shared memory structure?Storage management faultsIf a linked structure is modified, have all links been correctly reassigned?If dynamic storage is used, has space been allocated correctly?I

42、s space explicitly deallocated after it is no longer required?Exception management faultsHave all possible error conditions been taken into account?33Chapter 24 Quality managementAgile methods and inspections Agile processes rarely use formal inspection or peer review processes. Rather, they rely on

43、 team members cooperating to check each others code, and informal guidelines, such as check before check-in, which suggest that programmers should check their own code. Extreme programming practitioners argue that pair programming is an effective substitute for inspection as this is, in effect, a co

44、ntinual inspection process. Two people look at every line of code and check it before it is accepted.34Chapter 24 Quality managementSoftware measurement and metrics Software measurement is concerned with deriving a numeric value for an attribute of a software product or process. This allows for obje

45、ctive comparisons between techniques and processes. Although some companies have introduced measurement programmes, most organisations still dont make systematic use of software measurement. There are few established standards in this area.35Chapter 24 Quality managementSoftware metric Any type of m

46、easurement which relates to a software system, process or related documentation Lines of code in a program, the Fog index, number of person-days required to develop a component. Allow the software and the software process to be quantified. May be used to predict product attributes or to control the

47、software process. Product metrics can be used for general predictions or to identify anomalous components.36Chapter 24 Quality managementPredictor and control measurements 37Chapter 24 Quality managementUse of measurements To assign a value to system quality attributes By measuring the characteristi

48、cs of system components, such as their cyclomatic complexity, and then aggregating these measurements, you can assess system quality attributes, such as maintainability. To identify the system components whose quality is sub-standard Measurements can identify individual components with characteristi

49、cs that deviate from the norm. For example, you can measure components to discover those with the highest complexity. These are most likely to contain bugs because the complexity makes them harder to understand. 38Chapter 24 Quality managementMetrics assumptions A software property can be measured.

50、The relationship exists between what we can measure and what we want to know. We can only measure internal attributes but are often more interested in external software attributes. This relationship has been formalised and validated. It may be difficult to relate what can be measured to desirable ex

51、ternal quality attributes.39Chapter 24 Quality managementRelationships between internal and external software 40Chapter 24 Quality managementProblems with measurement in industry It is impossible to quantify the return on investment of introducing an organizational metrics program. There are no stan

52、dards for software metrics or standardized processes for measurement and analysis. In many companies, software processes are not standardized and are poorly defined and controlled. Most work on software measurement has focused on code-based metrics and plan-driven development processes. However, mor

53、e and more software is now developed by configuring ERP systems or COTS. Introducing measurement adds additional overhead to processes. 41Chapter 24 Quality managementProduct metrics A quality metric should be a predictor of product quality. Classes of product metric Dynamic metrics which are collec

54、ted by measurements made of a program in execution; Static metrics which are collected by measurements made of the system representations; Dynamic metrics help assess efficiency and reliability Static metrics help assess complexity, understandability and maintainability.42Chapter 24 Quality manageme

55、ntDynamic and static metrics Dynamic metrics are closely related to software quality attributes It is relatively easy to measure the response time of a system (performance attribute) or the number of failures (reliability attribute). Static metrics have an indirect relationship with quality attribut

56、es You need to try and derive a relationship between these metrics and properties such as complexity, understandability and maintainability.43Chapter 24 Quality managementStatic software product metricsSoftware metricDescriptionFan-in/Fan-outFan-in is a measure of the number of functions or methods

57、that call another function or method (say X). Fan-out is the number of functions that are called by function X. A high value for fan-in means that X is tightly coupled to the rest of the design and changes to X will have extensive knock-on effects. A high value for fan-out suggests that the overall

58、complexity of X may be high because of the complexity of the control logic needed to coordinate the called components.Length of codeThis is a measure of the size of a program. Generally, the larger the size of the code of a component, the more complex and error-prone that component is likely to be.

59、Length of code has been shown to be one of the most reliable metrics for predicting error-proneness in components.44Chapter 24 Quality managementStatic software product metricsSoftware metricDescriptionCyclomatic complexity This is a measure of the control complexity of a program. This control compl

60、exity may be related to program understandability. I discuss cyclomatic complexity in Chapter 8.Length of identifiersThis is a measure of the average length of identifiers (names for variables, classes, methods, etc.) in a program. The longer the identifiers, the more likely they are to be meaningfu

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論