+ All Categories
Home > Documents > Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS...

Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS...

Date post: 28-May-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
42
SOFTWARE QUALITY ASSURANCE Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT Department of CS and IT The University of Lahore
Transcript
Page 1: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

SOFTWARE QUALITY ASSURANCE

Lecture 5(20-March-2013)

Instructor: Mr. Natash Ali Mian

Department of CS and ITDepartment of CS and ITThe University of Lahore

Page 2: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

`

Switch off mobile phones during lectures or put them into silent modelectures, or put them into silent mode

Page 3: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

CONTENTS

Term PaperQuality Measurements

Page 4: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

Please Obey Traffic Signals

Page 5: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put
Page 6: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

KEEP YOUR SURROUNDING CLEAN

Page 7: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

Give Way to Ambulance because its destination is more important than yoursdestination is more important than yours

7

Page 8: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

TERM PAPER

Finalize Group Members 26-Feb-2013Finalize Topic 12-Mar-2013

Search Papers and Sort Selected (TODAY) 20-Mar-2013Search Papers and Sort Selected (TODAY) 20 Mar 2013Go Through the Abstract and Introduction of Selected Papers 26-Mar-2013Submit a Summary and Comments on related papers TBDSubmit Initial Draft TBDFinal Paper Submission TBDFinal Presentation TBD

Please note that Every Phase has Marks

Page 9: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

QUALITY MEASUREMENTSQ

9

Page 10: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

QUALITY MEASUREMENT QUESTIONS

What should be measured for quality?q y

How often should quality measurement be taken and reported?

10

Page 11: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

QUALITY MEASUREMENT CATEGORIES

Measurement of defects or bugs in softwareg100% of software projects

Measurement of user-satisfaction levelsOnly for software projects where clients can be queried

11

Page 12: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

SOFTWARE DEFECT QUALITYMEASUREMENTS - 1

Defect volumes (by product, by time period, by ( y p , y p , ygeographic region)Defect severity levelsSpecial categories (invalid defects, duplicates, un-duplicatable problems)Defect origins (i e requirements design code Defect origins (i.e., requirements, design, code, documents, or bad fixes)

12

Page 13: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

SOFTWARE DEFECT QUALITYMEASUREMENTS - 2

Defect discovery points (i.e., inspections, tests, y p ( , p , ,customer reports, etc.)Defect removal efficiency levelsNormalized data (i.e., defects per function point or per KLOC)Other factors (i e complexity creeping Other factors (i.e., complexity, creeping requirements, etc.)

13

Page 14: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

SOFTWARE DEFECT QUALITYMEASUREMENTS - 3

Defect repair speeds or intervals from the first p preport to the release of the fix

14

Page 15: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

SOFTWARE USER-SATISFACTION QUALITYMEASUREMENTS - 1

User perception of quality and reliabilityp p q y yUser perception of features in the software productUser perception of ease of learningUser perception of ease of useU ti f t tUser perception of customer supportUser perception of speed of defect repairs

15

Page 16: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

SOFTWARE USER-SATISFACTION QUALITYMEASUREMENTS - 2

User perception of speed of adding new featuresp p p gUser perception of virtues of competitive productsUser perception of the value versus the cost of the package

16

Page 17: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

WHO MEASURES USER-SATISFACTION?Marketing or sales organization of the software g gcompanyUser associationsSoftware magazinesDirect competitorsU th i t t tUser groups on the internet, etc.Third-party survey groups

17

Page 18: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

GATHERING USER-SATISFACTION DATA

Focus groups of customersg pFormal usability laboratoriesExternal beta testsR t f i ti f Requests from user associations for improvements in usabilityImitation of usability features of competitive or ysimilar products by other vendors

18

Page 19: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

BARRIERS TO SOFTWARE QUALITYMEASUREMENT

Lack of understanding of need to measure qualityg q yOften technical staff shies away from getting their work measuredHistorically “lines of code” or LOC and “cost per Historically, lines of code or LOC and cost per defect” metrics have been used, which are a poor way of measuring software quality

19

Page 20: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

OBJECT-ORIENTED QUALITY LEVELS

OO technology is being adopted world-wide with gy g pa claim that it produces better quality software productsOO technology has a steep learning curve and as OO technology has a steep learning curve, and as a result it may be difficult to achieve high quality softwareMore data needs to be reportedMore data needs to be reportedUML may play a significant role

20

Page 21: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

OUTSOURCING AND SOFTWARE QUALITY

Outsourcing in software industry is done in a g yvariety of waysEvery situation introduces new challenges for d l t f hi h lit ftdevelopment of high quality softwareSoftware quality metrics must be mentioned in the outsourcing contractthe outsourcing contract

21

Page 22: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

QUALITY ESTIMATING TOOLS - 1Estimating defect potentials for bugs in five g p gcategories (requirements, design, coding, documentation, and bad fixes)E ti ti d f t it l l i t f Estimating defect severity levels into four categories, ranging from 1 (total or catastrophic failure) to severity 4 (minor or cosmetic problem)

22

Page 23: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

QUALITY ESTIMATING TOOLS - 2Estimating the defect removal efficiency levels of g yvarious kinds of design reviews, inspections, and a dozen kinds of testing against each kind and severity of defectsseverity of defectsEstimating the number and severity of latent defects present in a software application when it is delivered to users

23

Page 24: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

QUALITY ESTIMATING TOOLS - 3Estimating the number of user-reported defects g pon an annual basis for up to 20 yearsEstimating the reliability of software at various i t l i ti t f il (MTTF)intervals using mean-time to failure (MTTF)mean-time between failures (MTBF) metrics

24

Page 25: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

QUALITY ESTIMATING TOOLS - 4Estimating the “stabilization period” or number g pof calendar months of production before users can execute the application without encountering severe errorssevere errors.Estimating the efforts and costs devoted to various kinds of quality and defect removal efforts such as inspections, test-case preparation, defect removal, etc.

25

Page 26: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

QUALITY ESTIMATING TOOLS - 5Estimating the number of test cases and test gruns for all testing stagesEstimating maintenance costs for up to 20 years for fixing bugs (also for additions)for fixing bugs (also for additions)Estimating special kinds of defect reports including duplicates and invalid reports which trigger investigative costs but no repair coststrigger investigative costs but no repair costs

26

Page 27: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

QUALITY PROCESS METRICS

Defect arrival rateTest effectivenessDefects by phasey pDefect removal effectivenessDefect backlogBacklog management indexFix response timePercent delinquent fixesDefective fixes

27

Page 28: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

PRODUCT METRICS

Defect densityyDefects by severityMean time between failuresCustomer-reported problemsCustomer satisfaction

28

Page 29: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

FUNCTION POINT METRIC - 1It was developed at IBM and reported to public in p p p1979It is a way of determining the size of a software

li ti b ti d dj ti fi application by enumerating and adjusting five visible aspects that are of significance to both users and developers

29

Page 30: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

FUNCTION POINT METRIC - 2Inputs that enter the application (i.e., Input p pp ( , pscreens, forms, commands, etc.)Outputs that leave the application (i.e., Output screens reports etc )screens, reports, etc.)Inquiries that can be made to the application (i.e., Queries for information)L i l fil i i d b h li i (i Logical files maintained by the application (i.e., Tables, text files, etc.)

30

Page 31: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

FUNCTION POINT METRIC - 3Interfaces between the application and others pp(i.e., shared data, messages, etc.)Once the raw total of these five factors has been

t d th dditi l t f 14 enumerated, then an additional set of 14 influential factors are evaluated for impact using a scale that runs from 0 (no impact) to 5 (major impact)

31

Page 32: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

SCHEDULE PRESSURE AND QUALITY

Healthy pressurey pMotivates and keeps morale of the personnel high

Excessive pressureHas serious negative impact on the morale of personnelCan lead to low quality softwareq y

32

Page 33: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

WHO WILL MEASURE QUALITY AND WHEN

The SQA planners for a project are required to Q p p j qdetermine

The list of quality assurance activities needed for a projectjFor each quality assurance activity

TimingWho performs the activity and the resources neededResources required for removal of defects and introduction of changes

33

Page 34: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

A WORD OF CAUTION

Some development plans, QA activities p p , Qare spread throughout the process, but without any time allocated for their

e fo a ce o fo the b e e t performance or for the subsequent removal of defects. As nothing is achieved without time, the almost guaranteed , gresult is delay, caused by “unexpectedly” long duration of the QA processH th ti ll t d f QA ti iti Hence, the time allocated for QA activities and the defects corrections work that follow should be examined

34

Page 35: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

PROJECT FACTORS

Magnitude of the projectg p jTechnical complexity and difficultyExtent of reusable software componentsSeverity of failure outcomes if the project fails

35

Page 36: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

TEAM FACTORS

Professional qualification of the team Professional qualification of the team membersTeam acquaintance with the project and q p jits experience in the areaAvailability of staff members who can yprofessionally support the teamFamiliarity with team members, in other words the percentage of new staff members in the team

36

Page 37: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

WHY ERROR-PRONE MODULES?Excessive schedule pressure on the programmersp p gPoor training or lack of experience in structured methodsRapidly creeping requirements which trigger late Rapidly creeping requirements which trigger late changesHigh complexity levels with cyclomatic ranges

t th 15greater than 15

37

Page 38: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

“GOOD ENOUGH” SOFTWARE QUALITY - 1Rather than striving for zero-defect levels or gstriving to exceed in 99% in defect removal efficiency, it is better to ship software with some defects still present in order to speed up or defects still present in order to speed up or shorten time to market intervalsDeveloped by the fact that major commercial software companies have latent software bugs in their released products

38

Page 39: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

“GOOD ENOUGH” SOFTWARE QUALITY - 2Major commercial software companies have j pcumulative defect removal efficiency of 95% (and 99% on their best projects)This concept is very hazardous for ordinary This concept is very hazardous for ordinary companies, which usually have their defect removal efficiency level between 80%-85%Quality will be decrease for these companies Quality will be decrease for these companies

39

Page 40: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

DATA QUALITY - 1Extremely important to understand issues of y pdata qualityData results in (useful | useless) informationUsually, governments are holders of largest data banks (are they consistent?)Companies are increasingly using data to their Companies are increasingly using data to their advantage over competitors

40

Page 41: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

DATA QUALITY - 2Data warehouses present a unique challenge to p q gkeep data consistentAnother problem is the interpretation of data

41

Page 42: Lecture 5 (20-mar-2013)Lecture 5 (20-March-2013) Instructor: Mr. Natash Ali Mian Department of CS and IT The University of Lahore ` Switch off mobile phones during lectures or put

Recommended