SlideShare une entreprise Scribd logo
1  sur  36
Télécharger pour lire hors ligne
Software quality assurance
McGill ECSE 321
Intro to Software Engineering
Radu Negulescu
Fall 2003
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 2
About this module
There is a difference between software that just happens to work and
software that is known to work with a high degree of confidence
Here we discuss
• Concepts of software quality assurance
• Activities of software quality assurance
• Reliability and release decision
We do not discuss testing
• Next module – a whole topic by itself
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 3
Some terms to master
Bugs and defects
• Bug: Mark I malfunction caused by a moth
• Failure: deviation from specified behavior
• Defect (fault): cause of a failure
Some sources also distinguish
• Error: system state that leads to a failure [BD]
• Fault vs. defect: before or after release [Pressman]
Graphical impression of defects, errors, and failures [after BD]
Defect (fault) Error Failure
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 4
SQA techniques
Main types of SQA
• Verification
Meaning: the program conforms to specification
“Are we building the product right?”
Examples: testing, formal verification
• Validation
Meaning: the specified system is what the customer wants built
“Are we building the right product?”
Examples: prototyping, derivation of user acceptance tests
• Fault prevention
Meaning: decrease the chance of occurrence of faults
Examples: using a modular structure, documenting assertions, etc.
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 5
SQA techniques
Debugging
• Fault search, location, repair
Testing
• Unit, integration, system, …
• Alpha, beta, …
• Functional, performance, usability, …
Manual checks
• Reviews, inspections, walkthroughs, …
Modeling and prototyping
Reliability measurement
Formal methods
Defect management
…
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 6
Relative effectiveness
Low Med High
Personal design checking 15% 35% 70%
Design reviews 30% 40% 60%
Design inspections 35% 55% 75%
Code inspections 30% 60% 70%
Prototyping 35% 65% 80%
Unit testing 10% 25% 50%
Group-test related routines 20% 35% 55%
System testing 25% 45% 60%
Field testing 35% 50% 65%
Cumulative 93% 99% 99%
[Programming Productivity - Jones 1986]
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 7
Relative effectiveness
Observations
• Individually, none of these techniques has a definite statistical
advantage
They tend to discover different types of faults
Testing: extreme cases and human oversights
Reviews: common errors
Therefore, a combination of techniques is most effective
• Emphasis on upstream SQA
Redistribute resources from debugging into SQA activities in the early stages
of a software project
• Not included in the study
Debugging: triggered by non-systematic, unpredictable fault search
Yet, cannot be completely avoided
Formal methods: limited to small subsystems or high-level interfaces
Useful in some niche applications
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 8
Debugging
Finding faults from an unplanned failure
• Correctness debugging: determine and repair deviations from
specified functional requirements
• Performance debugging: address deviation from non-functional
requirements
Debugging requires skill
• 20:1 difference in effectiveness between best and worst
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 9
Debugging activities
Fault search
• Unpredictable, costly
• Should be replaced by other techniques wherever possible
Fault location
• Can and should be done in a systematic manner
• Use tool assistance
Fault repair
• May introduce new faults
Discuss in
the following
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 10
Debugging pitfalls
Don’t do this!
• Locate faults by guessing without a rational basis for the guess
“Superstition debugging”
Do not confuse with “educated guess”
• Fix the symptom without locating the bug
Branching on the “problem input” creates numerous problems by itself
• Become depressed if you can’t find the bug
This can be avoided by staying in control with systematic techniques
Programmer statistics: 20:1 differences in effectiveness at debugging!
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 11
Debugging pitfalls
Is it a horse?
No!
Is it a chair?
No!
Is it a pencil?
No!
...
How to lose the “20 questions” game
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 12
Locating a fault
Steps in locating a fault
• Stabilize the failure
Determine symptom: observed output =/= expected output
Determine inputs on which the failure occurs predictably
• Simplify the failure
Experiment with simpler data
See if the failure still happens
• Progressively reduce the scope of the fault
Some form of binary search works best
Weighted binary trees
• The “scientific method” works for all of the above
This is how science is produced since ancient days
Elaborate “design of experiment” techniques in manufacturing QA
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 13
“Scientific method”
Steps in the scientific method
• Examine data that reveals a phenomenon
• Form a hypothesis to explain the data
• Design an experiment that can confirm or disprove the hypothesis
• Perform the experiment and either adopt or discard the hypothesis
• Repeat until a satisfactory hypothesis is found and adopted
Example
• Hypothesis: the memory access violation occurs in module A
• Experiment: run with a breakpoint at the start of module A
Or, insert a print statement at the start of A
Example
• Hypothesis: the fault was introduced by Joe
• Experiment: compare Joe’s source code to previous version
E.g. by running diff under UNIX
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 14
Locating a fault
Example
• IntBag: contains unordered integers, some of which may be equal
E.g. {12, 5, 9, 9, 9, -4, 100}
• Suppose that the following failure occurs for an IntBag object:
Methods invoked (“input”):
insert(5); insert(10); insert(10); insert(10); extract(10); extract(10);
total()
Failure symptom:
expected return value for total() = 15; observed value = 5
• Debugging strategy
What would be an effective way to locate the fault?
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 15
“Scientific method” in practice
Use scaffolding to reproduce the error on separate modules
• Scope narrowing: isolate from rest of system
Other examples?
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 16
Using debugging tools
Experiment with debugger features:
• Control: step into, step over, continue, run to cursor, set variable, ...
• Observation: breakpoints, watches (expression displays)
• Advanced: stack, memory leaks, ...
Combine debugging with your own reasoning about correctness
• Example
Infer that i should be ==n after “for (i = 2; i < n; i ++) {…}”
Although some side effects may overwrite i
Step through the code with a debugger
• Watches on
• Assertions enabled
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 17
Repairing faults
Make sure you understand the problem before fixing it
• As opposed to patching up the program to avoid the symptom
• Fix the problem, not the symptom
Always perform regression tests after the fix
• I.e., use debugging in combination with systematic testing
Always look for similar faults
• E.g., by including the fault type on a review checklist
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 18
Miscellaneous debugging tips
Avoid debugging as much as you can!
• Enlightened procrastination
• When you have to debug, debug less and reason more
Talk to others about the failure
See debugging as opportunity
• Learn about the program
• Learn about likely kinds of mistakes
• Learn about how to fix errors
Never debug standing up!
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 19
Manual checks
Manual examination of any software engineering artifacts
• Code
• DD, SRS, TP, ...
Focused on the artifact, not on the author
Different levels of formality:
• Inspections, reviews, walkthroughs, code reads, or simply explaining
the problem to a colleague
• Terminology varies a lot (e.g. McConnell uses term “reviews”
generically)
• Typically involve pre-release of the artifact to the reviewers, and a
moderated meeting to discuss the results of the reviews
Effective at detecting faults early
• NASA SEL study: 3.3 defects per hour of effort for code reads,
compared to testing 1.8 defects per hour of effort
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 20
Checklists
Keep reviews focused, uniform, and manageable
• Based on similar systems, past experience
• Items stated objectively
Example [Sommerville]
Data faults:
Are all program variables initialized before use?
Have all constants been named?
Should the upper bound of the array be equal to size or size – 1?
If character strings are used is a delimiter assigned?
Is there any possibility of buffer overflow?
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 21
Purpose of manual checks
Multiple purposes
• Find different defects than other SQA techniques
Examine artifacts that are beyond the scope of other SQA techniques
Based on the idea that different people have different “blind spots”
• Disseminate corporate culture
“The way we do things around here”
• Measure quality, monitor progress
“If you want something to happen, measure it” – Andrew Grove
• Due to subjectivity and incompleteness, should NOT be used to
evaluate the author’s performance
Nevertheless, reviews do encourage quality work, indirectly
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 22
Manual check processes
Manual check processes
• Roles: moderator, author, reviewer, scribe
Walkthroughs: the author can be the moderator
Review: the author can present the item
Inspections: the artifact should speak for itself
Marginally more effective, but require more practice
• Preparation: individual
The artifact is released in advance to each reviewer
Reviewers look for defects
• Meeting: moderated to proceed at optimal speed
Don’t discuss solutions
The purpose is fault detection, not correction
Never be judgmental
“Everyone knows it’s more efficient to loop from n to 0”
• Record: type and severity of errors; cost statistics
• Informal meetings off-line
• The author decides what to do about each defect
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 23
Fagan’s inspections
Steps
• Overview
• Preparation
• Meeting
• Rework
• Follow-up
Objective: finding errors, deviations, inefficiencies
• But not fixing any of these
Problem: lengthy preparation and inspection meeting phases
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 24
Parnas’ “active design review”
Questionnaire testing the understanding of each reviewer
No general meeting
• Individual meetings between author and each reviewer
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 25
Prototyping
Simplified version of the system for evaluation with a user or manager
• Evolutionary vs. throw-away prototypes
• Horizontal vs. vertical prototypes
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 26
Evolutionary prototyping
Process
• Develop initial implementation
• Expose implementation to user comments
• Enhance the implementation
• Repeat (comment-enhance) until a satisfactory system is obtained
Address so-called “wicked problems”
• Where requirements are discovered only as the system is developed
• E.g. chess-playing program
Downsides
• Absence of quantifiable deliverables
• Maintenance problems
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 27
Throw-away prototyping
Extend the requirements analysis with the production of a prototype
• For evaluation purposes only (will not be incorporated in the system)
• Examples
UI-only
Calibrated stubs
Benefits
• Clarify requirements
• Reduce process risks
Technical risks (performance, feasibility, …)
Suitability risks (functionality, ease of use, …)
Downsides
• Can be misleading as it usually leaves out many features
• Cannot be part of the “contract”
• Cannot really capture reliability requirements
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 28
Prototype tests
Horizontal prototype: UI
• Validate the requirements
Vertical prototype: a complete use case
• Think horizontally
Abstraction
• Do vertically
Use case
Functional requirement
Project risk
Example: embedded server
Application layer
OS layer
Communications
Device I/O
Acquireremotedata
Displayremotedata
Closedloopcontrol
…
Performancetuning
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 29
Software reliability
Probability of failure-free operation
• MTTF = mean time to failure (aka. MTBF)
• Failure intensity (ROCOF) = number of failures per time unit =
1/MTTF (if the system is not changed)
• Probability of availability (AVAIL) = MTTF / (MTTF + repair time
+other downtime)
Reliability depends on the operational profile and number of defects
• ROCOF(t) = Σfeature x (probability of using x at time t) * ROCOFx(t)
• ROCOFx(t) = (failure intensity per defect) * (# of defects in x)
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 30
Software reliability
Steps in determining software reliability
• Determine operational profile (probable pattern of usage)
Or, collect operational data
Reusable; e.g. phone connection data
• Select a set of test data that matches the operational profile
Number of test cases in a given class should be proportional to the likelihood
of inputs in that class
• Apply the test cases to the program
Accelerated testing: virtual time vs. use time (raw time, real time)
Record time to failure
• Compute reliability on a statistically significant sample
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 31
Release decision
When should we turn off testing?
• Never
• When we run out of resources (time & budget)
• When we have achieved complete coverage of our test criteria
• When we hit targeted reliability estimate
Statistics on defects left in code
• Industry average: 15..50 defects/KLOC (including code produced
using bad development practices)
• Best practices: 1..5 defects/KLOC
It is cheaper to build high-quality software than to fix low-quality software
• Reduced rates (0.1..0.5 defects/KLOC) for combinations of QA
techniques and for “cleanroom process”
Justified in special applications
Extra effort is necessary
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 32
Reliability growth models
Predict how software reliability should improve over time as faults are
discovered and repaired
Reliability growth models
• Equal steps: reliability grows by sudden jumps, by a constant amount
after fixing each fault
• Normally distributed steps: non-constant jump
Negative steps: the reliability might actually decrease after fixing a fault
• Continuous models: focus on time as opposed to discrete steps
Recognize that it is increasingly difficult to find new faults
Calibration required for type of application
Target reliability
• No universally applicable model
Highly dependent on type of application, programming language,
development process, testing/QA process
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 33
Reliability growth models
Exponential model
• Fault detection probability
Probability density of finding a fault at time t: f(t) = f0 e-t f0
Fault detection rate (FDR) = f(t) * (initial # of defects)
Cumulative distribution: F(t) = 1-e-t f0
• Sanity checks
Simple assumptions / first approximation
F(0) = 0; F(infinity) = 1
f(0) = f0; f(infinity) = 0
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 34
Reliability growth models
Consequences of the exponential model
• Total (initial) number of faults = N = 1/F(t) * (# faults found)
• Remaining faults = N * (1 – F(t)) = N e-t f0
Rate of finding faults at time t = N * f(t) = f0 * (remaining faults)
• Time (effort) for finding a fault = 1/(N * f(t)) = (1/N) * (et f0/f0)
Inversely proportional to the number of remaining faults
Exponential in t
Compare to a linear (basic) model
f(t) = f0
F(t) = 1 - f0 * t up to time t; = 0 after time t
Time for finding a fault = 1/(N * f0); constant
To probe further: Musa, Ackerman. “Quantifying Software Validation:
When to Stop Testing?”. IEEE Software, May 1989
• More detailed models (log Poisson distribution)
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 35
Reliability growth models
Identifying the parameters
• Interpolation (curve fitting)
• Fault prediction based on past data
QA week #
(normalized)1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Faults found
(log scale)
Interpolated
10
Predicted
Target rate
100
1000
1
McGill University ECSE 321 © 2003 Radu Negulescu
Introduction to Software Engineering Software quality assurance—Slide 36
References
SQA basics
• BD 9.1-9.2
Reviews and inspections:
• BD 3.3.4, 3.4.4, 9.2.2 (p. 333), 9.4.1
• Sommerville 19.2
• McConnell ch. 23
Debugging
• McConnell ch. 26
Reliability
• Sommerville 21.2
Prototyping
• Sommerville ch. 8
• BD p. 124

Contenu connexe

Tendances

Introduction to Software Review
Introduction to Software ReviewIntroduction to Software Review
Introduction to Software ReviewPhilip Johnson
 
Software Quality Assurance
Software Quality Assurance Software Quality Assurance
Software Quality Assurance ShashankBajpai24
 
Software QA Fundamentals by Prabhath Darshana
Software QA Fundamentals by Prabhath DarshanaSoftware QA Fundamentals by Prabhath Darshana
Software QA Fundamentals by Prabhath DarshanaShamain Peiris
 
Software quality assurance lecture 1
Software quality assurance lecture 1Software quality assurance lecture 1
Software quality assurance lecture 1Abdul Basit
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assuranceRameesha Sadaqat
 
Software Quality Plan
Software Quality PlanSoftware Quality Plan
Software Quality Planguy_davis
 
Software quality assurance and cyber security
Software quality assurance and cyber securitySoftware quality assurance and cyber security
Software quality assurance and cyber securityNascenia IT
 
Validation & verification software engineering
Validation & verification software engineeringValidation & verification software engineering
Validation & verification software engineeringSweta Kumari Barnwal
 
A Research Study on importance of Testing and Quality Assurance in Software D...
A Research Study on importance of Testing and Quality Assurance in Software D...A Research Study on importance of Testing and Quality Assurance in Software D...
A Research Study on importance of Testing and Quality Assurance in Software D...Sehrish Asif
 
Rhonda Software Quality Assurance Services
Rhonda Software Quality Assurance ServicesRhonda Software Quality Assurance Services
Rhonda Software Quality Assurance ServicesRhonda Software
 
ST-All about Test Case-p3
ST-All about Test Case-p3ST-All about Test Case-p3
ST-All about Test Case-p3Prachi Sasankar
 
want to contact me login to www.stqa.org
want to contact me login to www.stqa.orgwant to contact me login to www.stqa.org
want to contact me login to www.stqa.orgnazeer pasha
 
Software Engineering Overview
Software Engineering OverviewSoftware Engineering Overview
Software Engineering OverviewPrachi Sasankar
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality AssuranceSiddhesh Palkar
 
Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)Ajeng Savitri
 

Tendances (20)

Introduction to Software Review
Introduction to Software ReviewIntroduction to Software Review
Introduction to Software Review
 
Software Quality Assurance
Software Quality Assurance Software Quality Assurance
Software Quality Assurance
 
Software QA Fundamentals by Prabhath Darshana
Software QA Fundamentals by Prabhath DarshanaSoftware QA Fundamentals by Prabhath Darshana
Software QA Fundamentals by Prabhath Darshana
 
Software quality assurance lecture 1
Software quality assurance lecture 1Software quality assurance lecture 1
Software quality assurance lecture 1
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Qa
QaQa
Qa
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software Quality Plan
Software Quality PlanSoftware Quality Plan
Software Quality Plan
 
Software quality management standards
Software quality management standardsSoftware quality management standards
Software quality management standards
 
Software quality assurance and cyber security
Software quality assurance and cyber securitySoftware quality assurance and cyber security
Software quality assurance and cyber security
 
Unit 8
Unit 8Unit 8
Unit 8
 
Validation & verification software engineering
Validation & verification software engineeringValidation & verification software engineering
Validation & verification software engineering
 
A Research Study on importance of Testing and Quality Assurance in Software D...
A Research Study on importance of Testing and Quality Assurance in Software D...A Research Study on importance of Testing and Quality Assurance in Software D...
A Research Study on importance of Testing and Quality Assurance in Software D...
 
Rhonda Software Quality Assurance Services
Rhonda Software Quality Assurance ServicesRhonda Software Quality Assurance Services
Rhonda Software Quality Assurance Services
 
ST-All about Test Case-p3
ST-All about Test Case-p3ST-All about Test Case-p3
ST-All about Test Case-p3
 
want to contact me login to www.stqa.org
want to contact me login to www.stqa.orgwant to contact me login to www.stqa.org
want to contact me login to www.stqa.org
 
Software Engineering Overview
Software Engineering OverviewSoftware Engineering Overview
Software Engineering Overview
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
 
Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)
 

En vedette

Software and quality assurance
Software and quality assuranceSoftware and quality assurance
Software and quality assuranceyenohhoney
 
Introduction to software quality assurance by QuontraSolutions
Introduction to software quality assurance by QuontraSolutionsIntroduction to software quality assurance by QuontraSolutions
Introduction to software quality assurance by QuontraSolutionsQUONTRASOLUTIONS
 
Understanding software quality assurance in Open Source Software
Understanding software quality assurance in Open Source SoftwareUnderstanding software quality assurance in Open Source Software
Understanding software quality assurance in Open Source SoftwareHwer Aron
 
Term Paper - Quality Assurance in Software Development
Term Paper - Quality Assurance in Software DevelopmentTerm Paper - Quality Assurance in Software Development
Term Paper - Quality Assurance in Software DevelopmentSharad Srivastava
 
Software quality
Software qualitySoftware quality
Software qualityjagadeesan
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testingOana Feidi
 

En vedette (13)

Software and quality assurance
Software and quality assuranceSoftware and quality assurance
Software and quality assurance
 
Introduction to software quality assurance by QuontraSolutions
Introduction to software quality assurance by QuontraSolutionsIntroduction to software quality assurance by QuontraSolutions
Introduction to software quality assurance by QuontraSolutions
 
Understanding software quality assurance in Open Source Software
Understanding software quality assurance in Open Source SoftwareUnderstanding software quality assurance in Open Source Software
Understanding software quality assurance in Open Source Software
 
Quality control
Quality controlQuality control
Quality control
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
 
Sonar Metrics
Sonar MetricsSonar Metrics
Sonar Metrics
 
Term Paper - Quality Assurance in Software Development
Term Paper - Quality Assurance in Software DevelopmentTerm Paper - Quality Assurance in Software Development
Term Paper - Quality Assurance in Software Development
 
Quality management
Quality managementQuality management
Quality management
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
 
Software quality
Software qualitySoftware quality
Software quality
 
Black & White Box testing
Black & White Box testingBlack & White Box testing
Black & White Box testing
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testing
 
Quality by Design : Quality Target Product Profile & Critical Quality Attrib...
Quality by Design : Quality Target Product  Profile & Critical Quality Attrib...Quality by Design : Quality Target Product  Profile & Critical Quality Attrib...
Quality by Design : Quality Target Product Profile & Critical Quality Attrib...
 

Similaire à Intro to Software Engineering - Software Quality Assurance

Software Engineering Practice - Software Quality Management
Software Engineering Practice - Software Quality ManagementSoftware Engineering Practice - Software Quality Management
Software Engineering Practice - Software Quality ManagementRadu_Negulescu
 
Intro to Software Engineering - Software Testing
Intro to Software Engineering - Software TestingIntro to Software Engineering - Software Testing
Intro to Software Engineering - Software TestingRadu_Negulescu
 
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)Atlogys Technical Consulting
 
Intro to Software Engineering - Life Cycle Models
Intro to Software Engineering - Life Cycle ModelsIntro to Software Engineering - Life Cycle Models
Intro to Software Engineering - Life Cycle ModelsRadu_Negulescu
 
Testing & implementation system 1-wm
Testing & implementation system 1-wmTesting & implementation system 1-wm
Testing & implementation system 1-wmWiwik Muslehatin
 
International Journal of Soft Computing and Engineering (IJS
International Journal of Soft Computing and Engineering (IJSInternational Journal of Soft Computing and Engineering (IJS
International Journal of Soft Computing and Engineering (IJShildredzr1di
 
#DOAW16 - DevOps@work Roma 2016 - Testing your databases
#DOAW16 - DevOps@work Roma 2016 - Testing your databases#DOAW16 - DevOps@work Roma 2016 - Testing your databases
#DOAW16 - DevOps@work Roma 2016 - Testing your databasesAlessandro Alpi
 
An introduction to Software Testing and Test Management
An introduction to Software Testing and Test ManagementAn introduction to Software Testing and Test Management
An introduction to Software Testing and Test ManagementAnuraj S.L
 
Essential Test Management and Planning
Essential Test Management and PlanningEssential Test Management and Planning
Essential Test Management and PlanningTechWell
 
测试向前一步
测试向前一步测试向前一步
测试向前一步drewz lin
 
Intro to Software Engineering - Software Design
Intro to Software Engineering - Software DesignIntro to Software Engineering - Software Design
Intro to Software Engineering - Software DesignRadu_Negulescu
 
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptxabhivastrad007
 
Making the Unstable Stable - An Intro To Testing
Making the Unstable Stable - An Intro To TestingMaking the Unstable Stable - An Intro To Testing
Making the Unstable Stable - An Intro To TestingCameron Presley
 
SW Verification presentation
SW Verification presentationSW Verification presentation
SW Verification presentationKiril Delovski
 
IT Quality Testing and the Defect Management Process
IT Quality Testing and the Defect Management ProcessIT Quality Testing and the Defect Management Process
IT Quality Testing and the Defect Management ProcessYolanda Williams
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testingmuhamad iqbal
 
Sqa unit1
Sqa unit1Sqa unit1
Sqa unit1kannaki
 

Similaire à Intro to Software Engineering - Software Quality Assurance (20)

Software Engineering Practice - Software Quality Management
Software Engineering Practice - Software Quality ManagementSoftware Engineering Practice - Software Quality Management
Software Engineering Practice - Software Quality Management
 
Intro to Software Engineering - Software Testing
Intro to Software Engineering - Software TestingIntro to Software Engineering - Software Testing
Intro to Software Engineering - Software Testing
 
Testing Plan
Testing PlanTesting Plan
Testing Plan
 
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
 
Intro to Software Engineering - Life Cycle Models
Intro to Software Engineering - Life Cycle ModelsIntro to Software Engineering - Life Cycle Models
Intro to Software Engineering - Life Cycle Models
 
Testing & implementation system 1-wm
Testing & implementation system 1-wmTesting & implementation system 1-wm
Testing & implementation system 1-wm
 
Notes on teaching software testing
Notes on teaching software testingNotes on teaching software testing
Notes on teaching software testing
 
International Journal of Soft Computing and Engineering (IJS
International Journal of Soft Computing and Engineering (IJSInternational Journal of Soft Computing and Engineering (IJS
International Journal of Soft Computing and Engineering (IJS
 
#DOAW16 - DevOps@work Roma 2016 - Testing your databases
#DOAW16 - DevOps@work Roma 2016 - Testing your databases#DOAW16 - DevOps@work Roma 2016 - Testing your databases
#DOAW16 - DevOps@work Roma 2016 - Testing your databases
 
An introduction to Software Testing and Test Management
An introduction to Software Testing and Test ManagementAn introduction to Software Testing and Test Management
An introduction to Software Testing and Test Management
 
Essential Test Management and Planning
Essential Test Management and PlanningEssential Test Management and Planning
Essential Test Management and Planning
 
L software testing
L   software testingL   software testing
L software testing
 
测试向前一步
测试向前一步测试向前一步
测试向前一步
 
Intro to Software Engineering - Software Design
Intro to Software Engineering - Software DesignIntro to Software Engineering - Software Design
Intro to Software Engineering - Software Design
 
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
1779905011SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.pptx
 
Making the Unstable Stable - An Intro To Testing
Making the Unstable Stable - An Intro To TestingMaking the Unstable Stable - An Intro To Testing
Making the Unstable Stable - An Intro To Testing
 
SW Verification presentation
SW Verification presentationSW Verification presentation
SW Verification presentation
 
IT Quality Testing and the Defect Management Process
IT Quality Testing and the Defect Management ProcessIT Quality Testing and the Defect Management Process
IT Quality Testing and the Defect Management Process
 
Fundamentals of testing
Fundamentals of testingFundamentals of testing
Fundamentals of testing
 
Sqa unit1
Sqa unit1Sqa unit1
Sqa unit1
 

Plus de Radu_Negulescu

Intro to Software Engineering - Software Quality Assurance
Intro to Software Engineering - Software Quality AssuranceIntro to Software Engineering - Software Quality Assurance
Intro to Software Engineering - Software Quality AssuranceRadu_Negulescu
 
Final Exam Solutions Fall02
Final Exam Solutions Fall02Final Exam Solutions Fall02
Final Exam Solutions Fall02Radu_Negulescu
 
Final Exam Questions Fall03
Final Exam Questions Fall03Final Exam Questions Fall03
Final Exam Questions Fall03Radu_Negulescu
 
Midterm Exam Solutions Fall03
Midterm Exam Solutions Fall03Midterm Exam Solutions Fall03
Midterm Exam Solutions Fall03Radu_Negulescu
 
Midterm Exam Solutions Fall02
Midterm Exam Solutions Fall02Midterm Exam Solutions Fall02
Midterm Exam Solutions Fall02Radu_Negulescu
 
Intro to Software Engineering - Module Design
Intro to Software Engineering - Module DesignIntro to Software Engineering - Module Design
Intro to Software Engineering - Module DesignRadu_Negulescu
 
Intro to Software Engineering - Requirements Analysis
Intro to Software Engineering - Requirements AnalysisIntro to Software Engineering - Requirements Analysis
Intro to Software Engineering - Requirements AnalysisRadu_Negulescu
 
Intro to Software Engineering - Coding Standards
Intro to Software Engineering - Coding StandardsIntro to Software Engineering - Coding Standards
Intro to Software Engineering - Coding StandardsRadu_Negulescu
 
Software Engineering Practice - Software Metrics and Estimation
Software Engineering Practice - Software Metrics and EstimationSoftware Engineering Practice - Software Metrics and Estimation
Software Engineering Practice - Software Metrics and EstimationRadu_Negulescu
 
Software Engineering Practice - Software Business Basics
Software Engineering Practice - Software Business BasicsSoftware Engineering Practice - Software Business Basics
Software Engineering Practice - Software Business BasicsRadu_Negulescu
 
Software Engineering Practice - Project management
Software Engineering Practice - Project managementSoftware Engineering Practice - Project management
Software Engineering Practice - Project managementRadu_Negulescu
 
Software Engineering Practice - Configuration management
Software Engineering Practice - Configuration managementSoftware Engineering Practice - Configuration management
Software Engineering Practice - Configuration managementRadu_Negulescu
 
Software Engineering Practice - Advanced Development Methodologies
Software Engineering Practice - Advanced Development MethodologiesSoftware Engineering Practice - Advanced Development Methodologies
Software Engineering Practice - Advanced Development MethodologiesRadu_Negulescu
 

Plus de Radu_Negulescu (13)

Intro to Software Engineering - Software Quality Assurance
Intro to Software Engineering - Software Quality AssuranceIntro to Software Engineering - Software Quality Assurance
Intro to Software Engineering - Software Quality Assurance
 
Final Exam Solutions Fall02
Final Exam Solutions Fall02Final Exam Solutions Fall02
Final Exam Solutions Fall02
 
Final Exam Questions Fall03
Final Exam Questions Fall03Final Exam Questions Fall03
Final Exam Questions Fall03
 
Midterm Exam Solutions Fall03
Midterm Exam Solutions Fall03Midterm Exam Solutions Fall03
Midterm Exam Solutions Fall03
 
Midterm Exam Solutions Fall02
Midterm Exam Solutions Fall02Midterm Exam Solutions Fall02
Midterm Exam Solutions Fall02
 
Intro to Software Engineering - Module Design
Intro to Software Engineering - Module DesignIntro to Software Engineering - Module Design
Intro to Software Engineering - Module Design
 
Intro to Software Engineering - Requirements Analysis
Intro to Software Engineering - Requirements AnalysisIntro to Software Engineering - Requirements Analysis
Intro to Software Engineering - Requirements Analysis
 
Intro to Software Engineering - Coding Standards
Intro to Software Engineering - Coding StandardsIntro to Software Engineering - Coding Standards
Intro to Software Engineering - Coding Standards
 
Software Engineering Practice - Software Metrics and Estimation
Software Engineering Practice - Software Metrics and EstimationSoftware Engineering Practice - Software Metrics and Estimation
Software Engineering Practice - Software Metrics and Estimation
 
Software Engineering Practice - Software Business Basics
Software Engineering Practice - Software Business BasicsSoftware Engineering Practice - Software Business Basics
Software Engineering Practice - Software Business Basics
 
Software Engineering Practice - Project management
Software Engineering Practice - Project managementSoftware Engineering Practice - Project management
Software Engineering Practice - Project management
 
Software Engineering Practice - Configuration management
Software Engineering Practice - Configuration managementSoftware Engineering Practice - Configuration management
Software Engineering Practice - Configuration management
 
Software Engineering Practice - Advanced Development Methodologies
Software Engineering Practice - Advanced Development MethodologiesSoftware Engineering Practice - Advanced Development Methodologies
Software Engineering Practice - Advanced Development Methodologies
 

Dernier

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Dernier (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

Intro to Software Engineering - Software Quality Assurance

  • 1. Software quality assurance McGill ECSE 321 Intro to Software Engineering Radu Negulescu Fall 2003
  • 2. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 2 About this module There is a difference between software that just happens to work and software that is known to work with a high degree of confidence Here we discuss • Concepts of software quality assurance • Activities of software quality assurance • Reliability and release decision We do not discuss testing • Next module – a whole topic by itself
  • 3. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 3 Some terms to master Bugs and defects • Bug: Mark I malfunction caused by a moth • Failure: deviation from specified behavior • Defect (fault): cause of a failure Some sources also distinguish • Error: system state that leads to a failure [BD] • Fault vs. defect: before or after release [Pressman] Graphical impression of defects, errors, and failures [after BD] Defect (fault) Error Failure
  • 4. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 4 SQA techniques Main types of SQA • Verification Meaning: the program conforms to specification “Are we building the product right?” Examples: testing, formal verification • Validation Meaning: the specified system is what the customer wants built “Are we building the right product?” Examples: prototyping, derivation of user acceptance tests • Fault prevention Meaning: decrease the chance of occurrence of faults Examples: using a modular structure, documenting assertions, etc.
  • 5. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 5 SQA techniques Debugging • Fault search, location, repair Testing • Unit, integration, system, … • Alpha, beta, … • Functional, performance, usability, … Manual checks • Reviews, inspections, walkthroughs, … Modeling and prototyping Reliability measurement Formal methods Defect management …
  • 6. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 6 Relative effectiveness Low Med High Personal design checking 15% 35% 70% Design reviews 30% 40% 60% Design inspections 35% 55% 75% Code inspections 30% 60% 70% Prototyping 35% 65% 80% Unit testing 10% 25% 50% Group-test related routines 20% 35% 55% System testing 25% 45% 60% Field testing 35% 50% 65% Cumulative 93% 99% 99% [Programming Productivity - Jones 1986]
  • 7. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 7 Relative effectiveness Observations • Individually, none of these techniques has a definite statistical advantage They tend to discover different types of faults Testing: extreme cases and human oversights Reviews: common errors Therefore, a combination of techniques is most effective • Emphasis on upstream SQA Redistribute resources from debugging into SQA activities in the early stages of a software project • Not included in the study Debugging: triggered by non-systematic, unpredictable fault search Yet, cannot be completely avoided Formal methods: limited to small subsystems or high-level interfaces Useful in some niche applications
  • 8. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 8 Debugging Finding faults from an unplanned failure • Correctness debugging: determine and repair deviations from specified functional requirements • Performance debugging: address deviation from non-functional requirements Debugging requires skill • 20:1 difference in effectiveness between best and worst
  • 9. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 9 Debugging activities Fault search • Unpredictable, costly • Should be replaced by other techniques wherever possible Fault location • Can and should be done in a systematic manner • Use tool assistance Fault repair • May introduce new faults Discuss in the following
  • 10. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 10 Debugging pitfalls Don’t do this! • Locate faults by guessing without a rational basis for the guess “Superstition debugging” Do not confuse with “educated guess” • Fix the symptom without locating the bug Branching on the “problem input” creates numerous problems by itself • Become depressed if you can’t find the bug This can be avoided by staying in control with systematic techniques Programmer statistics: 20:1 differences in effectiveness at debugging!
  • 11. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 11 Debugging pitfalls Is it a horse? No! Is it a chair? No! Is it a pencil? No! ... How to lose the “20 questions” game
  • 12. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 12 Locating a fault Steps in locating a fault • Stabilize the failure Determine symptom: observed output =/= expected output Determine inputs on which the failure occurs predictably • Simplify the failure Experiment with simpler data See if the failure still happens • Progressively reduce the scope of the fault Some form of binary search works best Weighted binary trees • The “scientific method” works for all of the above This is how science is produced since ancient days Elaborate “design of experiment” techniques in manufacturing QA
  • 13. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 13 “Scientific method” Steps in the scientific method • Examine data that reveals a phenomenon • Form a hypothesis to explain the data • Design an experiment that can confirm or disprove the hypothesis • Perform the experiment and either adopt or discard the hypothesis • Repeat until a satisfactory hypothesis is found and adopted Example • Hypothesis: the memory access violation occurs in module A • Experiment: run with a breakpoint at the start of module A Or, insert a print statement at the start of A Example • Hypothesis: the fault was introduced by Joe • Experiment: compare Joe’s source code to previous version E.g. by running diff under UNIX
  • 14. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 14 Locating a fault Example • IntBag: contains unordered integers, some of which may be equal E.g. {12, 5, 9, 9, 9, -4, 100} • Suppose that the following failure occurs for an IntBag object: Methods invoked (“input”): insert(5); insert(10); insert(10); insert(10); extract(10); extract(10); total() Failure symptom: expected return value for total() = 15; observed value = 5 • Debugging strategy What would be an effective way to locate the fault?
  • 15. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 15 “Scientific method” in practice Use scaffolding to reproduce the error on separate modules • Scope narrowing: isolate from rest of system Other examples?
  • 16. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 16 Using debugging tools Experiment with debugger features: • Control: step into, step over, continue, run to cursor, set variable, ... • Observation: breakpoints, watches (expression displays) • Advanced: stack, memory leaks, ... Combine debugging with your own reasoning about correctness • Example Infer that i should be ==n after “for (i = 2; i < n; i ++) {…}” Although some side effects may overwrite i Step through the code with a debugger • Watches on • Assertions enabled
  • 17. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 17 Repairing faults Make sure you understand the problem before fixing it • As opposed to patching up the program to avoid the symptom • Fix the problem, not the symptom Always perform regression tests after the fix • I.e., use debugging in combination with systematic testing Always look for similar faults • E.g., by including the fault type on a review checklist
  • 18. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 18 Miscellaneous debugging tips Avoid debugging as much as you can! • Enlightened procrastination • When you have to debug, debug less and reason more Talk to others about the failure See debugging as opportunity • Learn about the program • Learn about likely kinds of mistakes • Learn about how to fix errors Never debug standing up!
  • 19. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 19 Manual checks Manual examination of any software engineering artifacts • Code • DD, SRS, TP, ... Focused on the artifact, not on the author Different levels of formality: • Inspections, reviews, walkthroughs, code reads, or simply explaining the problem to a colleague • Terminology varies a lot (e.g. McConnell uses term “reviews” generically) • Typically involve pre-release of the artifact to the reviewers, and a moderated meeting to discuss the results of the reviews Effective at detecting faults early • NASA SEL study: 3.3 defects per hour of effort for code reads, compared to testing 1.8 defects per hour of effort
  • 20. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 20 Checklists Keep reviews focused, uniform, and manageable • Based on similar systems, past experience • Items stated objectively Example [Sommerville] Data faults: Are all program variables initialized before use? Have all constants been named? Should the upper bound of the array be equal to size or size – 1? If character strings are used is a delimiter assigned? Is there any possibility of buffer overflow?
  • 21. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 21 Purpose of manual checks Multiple purposes • Find different defects than other SQA techniques Examine artifacts that are beyond the scope of other SQA techniques Based on the idea that different people have different “blind spots” • Disseminate corporate culture “The way we do things around here” • Measure quality, monitor progress “If you want something to happen, measure it” – Andrew Grove • Due to subjectivity and incompleteness, should NOT be used to evaluate the author’s performance Nevertheless, reviews do encourage quality work, indirectly
  • 22. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 22 Manual check processes Manual check processes • Roles: moderator, author, reviewer, scribe Walkthroughs: the author can be the moderator Review: the author can present the item Inspections: the artifact should speak for itself Marginally more effective, but require more practice • Preparation: individual The artifact is released in advance to each reviewer Reviewers look for defects • Meeting: moderated to proceed at optimal speed Don’t discuss solutions The purpose is fault detection, not correction Never be judgmental “Everyone knows it’s more efficient to loop from n to 0” • Record: type and severity of errors; cost statistics • Informal meetings off-line • The author decides what to do about each defect
  • 23. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 23 Fagan’s inspections Steps • Overview • Preparation • Meeting • Rework • Follow-up Objective: finding errors, deviations, inefficiencies • But not fixing any of these Problem: lengthy preparation and inspection meeting phases
  • 24. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 24 Parnas’ “active design review” Questionnaire testing the understanding of each reviewer No general meeting • Individual meetings between author and each reviewer
  • 25. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 25 Prototyping Simplified version of the system for evaluation with a user or manager • Evolutionary vs. throw-away prototypes • Horizontal vs. vertical prototypes
  • 26. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 26 Evolutionary prototyping Process • Develop initial implementation • Expose implementation to user comments • Enhance the implementation • Repeat (comment-enhance) until a satisfactory system is obtained Address so-called “wicked problems” • Where requirements are discovered only as the system is developed • E.g. chess-playing program Downsides • Absence of quantifiable deliverables • Maintenance problems
  • 27. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 27 Throw-away prototyping Extend the requirements analysis with the production of a prototype • For evaluation purposes only (will not be incorporated in the system) • Examples UI-only Calibrated stubs Benefits • Clarify requirements • Reduce process risks Technical risks (performance, feasibility, …) Suitability risks (functionality, ease of use, …) Downsides • Can be misleading as it usually leaves out many features • Cannot be part of the “contract” • Cannot really capture reliability requirements
  • 28. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 28 Prototype tests Horizontal prototype: UI • Validate the requirements Vertical prototype: a complete use case • Think horizontally Abstraction • Do vertically Use case Functional requirement Project risk Example: embedded server Application layer OS layer Communications Device I/O Acquireremotedata Displayremotedata Closedloopcontrol … Performancetuning
  • 29. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 29 Software reliability Probability of failure-free operation • MTTF = mean time to failure (aka. MTBF) • Failure intensity (ROCOF) = number of failures per time unit = 1/MTTF (if the system is not changed) • Probability of availability (AVAIL) = MTTF / (MTTF + repair time +other downtime) Reliability depends on the operational profile and number of defects • ROCOF(t) = Σfeature x (probability of using x at time t) * ROCOFx(t) • ROCOFx(t) = (failure intensity per defect) * (# of defects in x)
  • 30. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 30 Software reliability Steps in determining software reliability • Determine operational profile (probable pattern of usage) Or, collect operational data Reusable; e.g. phone connection data • Select a set of test data that matches the operational profile Number of test cases in a given class should be proportional to the likelihood of inputs in that class • Apply the test cases to the program Accelerated testing: virtual time vs. use time (raw time, real time) Record time to failure • Compute reliability on a statistically significant sample
  • 31. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 31 Release decision When should we turn off testing? • Never • When we run out of resources (time & budget) • When we have achieved complete coverage of our test criteria • When we hit targeted reliability estimate Statistics on defects left in code • Industry average: 15..50 defects/KLOC (including code produced using bad development practices) • Best practices: 1..5 defects/KLOC It is cheaper to build high-quality software than to fix low-quality software • Reduced rates (0.1..0.5 defects/KLOC) for combinations of QA techniques and for “cleanroom process” Justified in special applications Extra effort is necessary
  • 32. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 32 Reliability growth models Predict how software reliability should improve over time as faults are discovered and repaired Reliability growth models • Equal steps: reliability grows by sudden jumps, by a constant amount after fixing each fault • Normally distributed steps: non-constant jump Negative steps: the reliability might actually decrease after fixing a fault • Continuous models: focus on time as opposed to discrete steps Recognize that it is increasingly difficult to find new faults Calibration required for type of application Target reliability • No universally applicable model Highly dependent on type of application, programming language, development process, testing/QA process
  • 33. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 33 Reliability growth models Exponential model • Fault detection probability Probability density of finding a fault at time t: f(t) = f0 e-t f0 Fault detection rate (FDR) = f(t) * (initial # of defects) Cumulative distribution: F(t) = 1-e-t f0 • Sanity checks Simple assumptions / first approximation F(0) = 0; F(infinity) = 1 f(0) = f0; f(infinity) = 0
  • 34. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 34 Reliability growth models Consequences of the exponential model • Total (initial) number of faults = N = 1/F(t) * (# faults found) • Remaining faults = N * (1 – F(t)) = N e-t f0 Rate of finding faults at time t = N * f(t) = f0 * (remaining faults) • Time (effort) for finding a fault = 1/(N * f(t)) = (1/N) * (et f0/f0) Inversely proportional to the number of remaining faults Exponential in t Compare to a linear (basic) model f(t) = f0 F(t) = 1 - f0 * t up to time t; = 0 after time t Time for finding a fault = 1/(N * f0); constant To probe further: Musa, Ackerman. “Quantifying Software Validation: When to Stop Testing?”. IEEE Software, May 1989 • More detailed models (log Poisson distribution)
  • 35. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 35 Reliability growth models Identifying the parameters • Interpolation (curve fitting) • Fault prediction based on past data QA week # (normalized)1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Faults found (log scale) Interpolated 10 Predicted Target rate 100 1000 1
  • 36. McGill University ECSE 321 © 2003 Radu Negulescu Introduction to Software Engineering Software quality assurance—Slide 36 References SQA basics • BD 9.1-9.2 Reviews and inspections: • BD 3.3.4, 3.4.4, 9.2.2 (p. 333), 9.4.1 • Sommerville 19.2 • McConnell ch. 23 Debugging • McConnell ch. 26 Reliability • Sommerville 21.2 Prototyping • Sommerville ch. 8 • BD p. 124