Software Quality Assurance W15L30 Instructor: Saliha Zahoor
Software Quality Assurance W15L30 Instructor: Saliha Zahoor
Software Quality Assurance W15L30 Instructor: Saliha Zahoor
Quality Management
Managing the quality of the software process and products
Objectives
To introduce the quality management process and key quality management activities To explain the role of standards in quality management To explain the concept of a software metric, predictor metrics and control metrics To explain how measurement may be used in assessing software quality
Topics covered
Quality assurance and standards Quality planning Quality control Software measurement and metrics
What is quality?
Quality, simplistically, means that a product should meet its specification This is problematical for software systems
Tension between customer quality 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 incomplete and often inconsistent
Quality planning
Select applicable procedures and standards for a particular project and modify these as required
Quality control
Ensure that procedures and standards are followed by the software development team
D1
D2
D3
D4
D5
Quality plan
ISO 9000
International set ofstandards for quality management Applicable to a range of organisations from manufacturing to service industries ISO 9001 applicable to organisations which design, develop and maintain products ISO 9001 is a generic model of the quality process Must be instantiated for each organisation
ISO 9001
Management res ponsi bi li ty Cont rol of non-conforming product s Handli ng, s torage, packaging and del ivery P urchaser-s uppli ed products P rocess control Ins pect ion and test equipment Cont ract revi ew Document cont rol Internal quali ty audit s Servi ci ng Q ual ity s ys tem Des ign control P urchasi ng P roduct i dentificat ion and traceabi lit y Ins pect ion and test ing Ins pect ion and test st at us Correct ive action Qual ity records Training Statis ti cal t echni ques
Supports
Importance of standards
Encapsulation of best practice- avoids repetition of past mistakes Framework for quality assurance process - it involves checking standard compliance Provide continuity - new staff can understand the organisation by understand the standards applied
Standards development
Involve practitioners in development. Engineers should understand the rationale underlying a standard Review standards and their usage regularly. Standards can quickly become outdated and this reduces their credibility amongst practitioners Detailed standards should have associated tool support. Excessive clerical work is the most significant complaint against standards
Documentation standards
Particularly important - documents are the tangible manifestation of the software Documentation process standards
How documents should be developed, validated and maintained
Document standards
Concerned with document contents, structure, and appearance
Documentation process
Create initial draft Stage 1: Creation Review draft Incorporate review comments Approved document Re-draft document
Review layout
Print copies
Document standards
Document identification standards
How documents are uniquely identified
Process-based quality
Straightforward link between process and product in manufactured goods More complex for software because:
The application of individual skills and experience is particularly imporant in software development External factors such as the novelty of an application or the need for an accelerated development schedule may impair product quality
Process-based quality
De velop product Assess product quality
Define process
Improve process
No
Quality OK
Yes
Quality planning
A quality plan sets out the desired product qualities and how these are assessed and define the most significant quality attributes It should define the quality assessment process It should set out which organisational standards should be applied and, if necessary, define new standards
Quality control
Checking the software development process to ensure that procedures and standards are being followed Two approaches to quality control
Quality reviews Automated software assessment and software measurement
Quality reviews
The principal method of validating the quality of a process or of a product Group examined part or all of a process or system and its documentation to find potential problems There are different types of review with different objectives
Inspections for defect removal (product) Reviews for progress assessment(product and process) Quality reviews (product and standards)
Types of review
Review type Des ign or ins pect ions Pri ncipal purpos e program To detect det ail ed errors i n the desi gn or code and to check whet her s tandards have been followed. The review shoul d be dri ven by a checkl is t of poss ible errors. P rogres s revi ews To provide information for management about t he overall progres s of t he project . Thi s is both a process and a product review and i s concerned wit h cost s, plans and s chedules. Qual ity reviews To carry outa technical anal ysi s of product component s or document at ion find fault s to or mis matches bet ween the s pecifi cati on and t he des ign, code or documentat ion. It may also be concerned wi th broader quali ty is sues s uch as adherence t o st andards and other quali ty at tribut es .
Quality 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 or documents may be 'signed off' at a review which signifies that progress to the next development stage has been approved by management.
Select review team Arr ange place and time Distribute documents Hold review
Review functions
Quality function - they are part of the general quality management process Project management function - they provide information for project managers Training and communication function product knowledge is passed between development team members
Quality reviews
Objective is the discovery of system defects and inconsistencies Any documents produced in the process may be reviewed Review teams should be relatively small and reviews should be fairly short Review should be recorded and records maintained
Review results
Comments made during the review should be classified.
No action. No change to the software or documentation is required. Refer for repair. Designer or programmer should correct an identified fault. Reconsider overall design. The problem identified in the review impacts other parts of the design. Some overall judgement must be made about the most cost-effective way of solving the problem.
Software metric
Any type of measurement 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 Measures of the software process or product May be used to predict product attributes or to control the software process
Control measurements
Predictor measurements
Management decisions
Metrics assumptions
A software property can be measured The relationship exists between what we can measure and what we want to know This relationship has been formalized and validated It may be difficult to relate what can be measured to desirable quality attributes
Data collection
A metrics programme should be based on a set of product and process data Data should be collected immediately (not in retrospect) and, if possible, automatically Three types of automatic data collection
Static product analysis Dynamic product analysis Process data collation
Usage data
Fault data
Data accuracy
Dont collect unnecessary data
The questions to be answered should be decided in advance and the required data identified
Product metrics
A quality metric should be a predictor of product quality Classes of product metric
Dynamic metrics which are collected 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
Length of code Cyclomatic complexity Length of identifiers Depth of conditional nesting Fog index
Object-oriented metrics
O bjectorien ted me tric Depth of inheritance t ree Method fanin/fan-out Weighted methods per class Descri ption This represents t he number of discrete levels in the inheritance t ree where sub-classes inherit attributes and operat ions (methods) from super-classes. The deeper the inheritance t ree, the more complex t he design as, potent ially, many different object classes have to be understood to understand the object classes at the leaves of the tree. This is direct ly related to fan-in and fan-out as described above and means essent ially t he same thing. However, it may be appropriate to make a dist inct ion between calls from ot her methods within the object and calls from external methods. This is the number of methods included in a class we ighted by the complexity of each method. T he refore, a simple method may have a complexity of 1 and a large and complex method a much higher value. The larger the value for this met ric, the more complex the object class. Complex objects are more likely to be more difficult to understand. T hey may not be logically cohesive so cannot be reused effect ively as superclasses in an inheritance t ree. These are the number of operat ions in a super-class wh ich are over-ridden in a sub-class. A high value for this metric indicates that t he super-class used may not be an appropriate parent for the sub-class.
Measurement analysis
It is not always obvious what data means
Analysing collected data is very difficult
Professional statisticians should be consulted if available Data analysis must take local circumstances into account
Measurement surprises
Reducing the number of faults in a program leads to an increased number of help desk calls
The program is now thought of as more reliable and so has a wider more diverse market. The percentage of users who call the help desk may have decreased but the total may increase A more reliable system is used in a different way from a system where users work around the faults. This leads to more help desk calls
Key points
Software quality management is concerned with ensuring that software meets its required standards Quality assurance procedures should be documented in an organisational quality manual Software standards are an encapsulation of best practice Reviews are the most widely used approach for assessing software quality
Key points
Software measurement gathers information about both the software process and the software product Product quality metrics should be used to identify potentially problematical components There are no standardised and universally applicable software metrics