SlideShare ist ein Scribd-Unternehmen logo
1 von 41
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 1
Verification and Validation
with edits by Dan Fleck
Coming up: Objectives
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 2
Objectives
To introduce software verification and validation and
to discuss the distinction between them
To describe the program inspection process and its
role in V & V
To explain static analysis as a verification technique
Coming up: Topics covered
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 3
Topics covered
Verification and validation planning
Software inspections
Automated static analysis
Coming up: Verification vs validation
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 4
Verification:
"Are we building the product right”.
• The software should conform to its specification.
Validation:
"Are we building the right product”.
• The software should do what the user really
wants.
Verification vs validation
Coming up: The V & V process
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 5
Is a whole life-cycle process - V & V must be
applied at each stage in the software
process.
Has two principal objectives
• The discovery of defects in a system;
• The assessment of whether or not the system is
useful and useable in an operational situation.
The V & V process
Coming up: V & V goals
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 6
V & V goals
Verification and validation should establish
confidence that the software is fit for
purpose.
This does NOT mean completely free of
defects.
Rather, it must be good enough for its
intended use and the type of use will
determine the degree of confidence that is
needed.
Coming up: V & V confidence
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 7
V & V confidence
Depends on system’s purpose, user
expectations and marketing environment
• Software function
• The level of confidence depends on how critical the
software is to an organisation.
• User expectations
• Users may have low expectations of certain kinds of
software.
• Marketing environment
• Getting a product to market early may be more
important than finding defects in the program.
Coming up: IV & V: Independent Validation
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 8
IV & V: Independent Validation
and Verification
Can be done by another internal team or
external (other company)
developerdeveloper independent testerindependent tester
Understands the systemUnderstands the system
but, will test "gently"but, will test "gently"
and, is driven by "delivery"and, is driven by "delivery"
Must learn about the system,Must learn about the system,
but, will attempt to break itbut, will attempt to break it
and, is driven by qualityand, is driven by quality
Coming up: Static and dynamic verification
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 9
Software inspections. Concerned with analysis of
the static system representation to discover
problems (static verification)
• May be supplement by tool-based document and code
analysis
Software testing. Concerned with exercising and
observing product behaviour (dynamic verification)
• The system is executed with test data and its operational
behaviour is observed
Static and dynamic verification
Coming up: Static and dynamic V&V
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 10
Static and dynamic V&V
QuickTime™ and a
decompressor
are needed to see this picture.
Coming up: Program testing
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 11
Can reveal the presence of errors NOT their
absence.
The only validation technique for non-
functional requirements is the software has
to be executed to see how it behaves.
Should be used in conjunction with static
verification to provide full V&V coverage.
Program testing
Coming up: Types of testing
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 12
Defect testing
• Tests designed to discover system defects.
• A successful defect test is one which reveals the
presence of defects in a system.
• Covered in next lecture
Validation testing
• Intended to show that the software meets its
requirements.
• A successful test is one that shows that a requirements
has been properly implemented.
Types of testing
Coming up: Testing and debugging
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 13
Defect testing and debugging are distinct
processes.
Verification and validation is concerned with
establishing the existence of defects in a program.
Debugging is concerned with locating and
repairing these errors.
Debugging involves formulating a hypothesis
about program behaviour then testing these
hypotheses to find the system error.
Testing and debugging
Coming up: The debugging process
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 14
The debugging process
QuickTime™ and a
decompressor
are needed to see this picture.
Coming up: Debugging Techniques
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 15
Debugging Techniques
brute forcebrute force
backtrackingbacktracking
Cause eliminationCause elimination
When all else fails, ask for
help!
Coming up: V & V planning
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 16
Careful planning is required to get the most
out of testing and inspection processes.
Planning should start early in the
development process.
The plan should identify the balance
between static verification and testing.
Test planning is about defining standards for
the testing process rather than describing
product tests.
V & V planning
Coming up: The V-model of development
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 17
The V-model of development
QuickTime™ and a
decompressor
are needed to see this picture.
Coming up: The structure of a software test
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 18
The structure of a software test plan
The testing process.
Requirements traceability.
Tested items.
Testing schedule.
Test recording procedures.
Hardware and software requirements.
Constraints.
Coming up: The software test plan
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 19
The software test plan
Coming up: Software inspections
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 20
Software inspections
These involve people examining the source
representation with the aim of discovering anomalies
and defects.
Inspections do not require execution of a system so
may be used before implementation.
They may be applied to any representation of the
system (requirements, design,configuration data,
test data, etc.).
They have been shown to be an effective technique
for discovering program errors.
Coming up: Inspection success
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 21
Inspection success
Many different defects may be discovered in
a single inspection. In testing, one defect
may mask another so several executions are
required.
Reuse and programming patterns are
common so reviewers are likely to have seen
the types of error that commonly arise.
Coming up: Inspections and testing
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 22
Inspections and testing
Inspections and testing are complementary and not
opposing verification techniques.
Both should be used during the V & V process.
Inspections can check conformance with a
specification but not conformance with the
customer’s real requirements.
Inspections cannot check non-functional
characteristics such as performance, usability, etc.
Coming up: Program inspections
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 23
Program inspections
Formalised approach to document reviews
Intended explicitly for defect detection (not
correction).
Defects may be logical errors, anomalies in
the code that might indicate an erroneous
condition (e.g. an uninitialised variable) or
non-compliance with standards.
Coming up: Inspection pre-conditions
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 24
Inspection pre-conditions
A precise specification must be available.
Team members must be familiar with the
organisation standards.
Syntactically correct code or other system
representations must be available.
An error checklist should be prepared.
Management must accept that inspection will
increase costs early in the software process.
Management should not use inspections for staff
appraisal ie finding out who makes mistakes.
Coming up: The inspection process
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 25
The inspection process
QuickTime™ and a
decompressor
are needed to see this picture.
Coming up: Inspection procedure
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 26
Inspection procedure
System overview presented to inspection
team.
Code and associated documents are
distributed to inspection team in advance.
Inspection takes place and discovered errors
are noted.
Modifications are made to repair discovered
errors.
Re-inspection may or may not be required.
Coming up: Inspection roles
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 27
Inspection checklists
Checklist of common errors should be used to
drive the inspection.
Error checklists are programming language
dependent and reflect the characteristic errors that
are likely to arise in the language.
In general, the 'weaker' the type checking, the larger
the checklist.
Examples: Initialisation, Constant naming, loop
termination, array bounds, etc.
Coming up: Inspection checks 1
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 28
Inspection checks 1
Coming up: Inspection checks 2
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 29
Inspection checks 2
Coming up: Inspection rate
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 30
Inspection rate
500 statements/hour during overview.
125 source statement/hour during individual
preparation.
90-125 statements/hour can be inspected.
Inspection is therefore an expensive
process.
Inspecting 500 lines costs about 40
man/hours effort - about £2800 at UK rates.
Coming up: Automated static analysis
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 31
Automated static analysis
Static analysers are software tools for source
text processing.
They parse the program text and try to
discover potentially erroneous conditions and
bring these to the attention of the V & V
team.
They are very effective as an aid to
inspections - they are a supplement to but
not a replacement for inspections.
Coming up: Static analysis checks
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 32
Static analysis checks
Coming up: Stages of static analysis
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 33
Stages of static analysis
Control flow analysis. Checks for loops with
multiple exit or entry points, finds unreachable
code, etc.
Data use analysis. Detects uninitialised
variables, variables written twice without an
intervening assignment, variables which are
declared but never used, etc.
Coming up: Stages of static analysis
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 34
Stages of static analysis
Information flow analysis. Identifies the
dependencies of output variables. Does not
detect anomalies itself but highlights
information for code inspection or review
Path analysis. Identifies paths through the
program and sets out the statements
executed in that path. Again, potentially
useful in the review process
Both these stages generate vast amounts of
information. They must be used with care.
Coming up: LINT static analysis
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 35
LINT static analysis
Coming up: Static Analysis Tools
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 36
Static Analysis Tools
FindBugs - Finds MANY categories of bugs
Checkstyle - coding standard violations
PMD - Maybe a lot more, but seems to be
mainly unused variables it seems, also cut-n-
paste code.
Jamit - Java Access Modifier Inference Tool
- find tighter access modifiers
Coming up: Verification and formal methods
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 37
Verification and formal methods
Formal methods can be used when a
mathematical specification of the system is
produced.
They are the ultimate static verification
technique.
They involve detailed mathematical analysis
of the specification and may develop formal
arguments that a program conforms to its
mathematical specification.
Coming up: Arguments for formal methods
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 38
Arguments for formal methods
Producing a mathematical specification
requires a detailed analysis of the
requirements and this is likely to uncover
errors.
They can detect implementation errors
before testing when the program is analyzed
alongside the specification.
Coming up: Arguments against formal
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 39
Arguments against formal methods
Require specialized notations that cannot be understood by
domain experts.
Very expensive to develop a specification and even more
expensive to show that a program meets that specification.
It may be possible to reach the same level of confidence in a
program more cheaply using other V & V techniques.
Formal specification using a state transition model.
Incremental development where the customer prioritises
increments.
Structured programming - limited control and abstraction
constructs are used in the program.
Static verification using rigorous inspections.
Statistical testing of the system.
Coming up: Key points
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 40
Key points
Verification and validation are not the same
thing. Verification shows conformance with
specification; validation shows that the
program meets the customer’s needs.
Test plans should be drawn up to guide the
testing process.
Static verification techniques involve
examination and analysis of the program for
error detection.
Coming up: Key points
©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 41
Key points
Program inspections are very effective in discovering
errors.
Program code in inspections is systematically
checked by a small team to locate software faults.
Static analysis tools can discover program
anomalies which may be an indication of faults in the
code.
End of presentation

Weitere ähnliche Inhalte

Was ist angesagt?

V model in software testing
V model in software testingV model in software testing
V model in software testingAbdullah Al Rumy
 
Types of Software Testing | Edureka
Types of Software Testing | EdurekaTypes of Software Testing | Edureka
Types of Software Testing | EdurekaEdureka!
 
Legacy systems modernisation
Legacy systems modernisationLegacy systems modernisation
Legacy systems modernisationProfinit
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Edureka!
 
Continuous Testing- A Key Ingredient for Success in Agile & DevOps
Continuous Testing- A Key Ingredient for Success in Agile & DevOpsContinuous Testing- A Key Ingredient for Success in Agile & DevOps
Continuous Testing- A Key Ingredient for Success in Agile & DevOpsSmartBear
 
Integration testing
Integration testingIntegration testing
Integration testingVaibhav Dash
 
Difference between functional testing and non functional testing
Difference between functional testing and non functional testingDifference between functional testing and non functional testing
Difference between functional testing and non functional testingpooja deshmukh
 
11 steps of testing process - By Harshil Barot
11 steps of testing process - By Harshil Barot11 steps of testing process - By Harshil Barot
11 steps of testing process - By Harshil BarotHarshil Barot
 
What is Regression Testing? | Edureka
What is Regression Testing? | EdurekaWhat is Regression Testing? | Edureka
What is Regression Testing? | EdurekaEdureka!
 
Software Quality Assurance
Software Quality Assurance Software Quality Assurance
Software Quality Assurance ShashankBajpai24
 
тестирование по
тестирование потестирование по
тестирование поIon Griu
 
Top ten software testing tools
Top ten software testing toolsTop ten software testing tools
Top ten software testing toolsJanBask Training
 
Public and private APIs: differences and challenges
Public and private APIs: differences and challengesPublic and private APIs: differences and challenges
Public and private APIs: differences and challengesRestlet
 
Software Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsSoftware Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsKMS Technology
 

Was ist angesagt? (20)

V model in software testing
V model in software testingV model in software testing
V model in software testing
 
Types of Software Testing | Edureka
Types of Software Testing | EdurekaTypes of Software Testing | Edureka
Types of Software Testing | Edureka
 
Ch 3 software quality factor
Ch 3 software quality factorCh 3 software quality factor
Ch 3 software quality factor
 
Legacy systems modernisation
Legacy systems modernisationLegacy systems modernisation
Legacy systems modernisation
 
Verification and validation
Verification and validationVerification and validation
Verification and validation
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software Verification and Validation
Software Verification and Validation Software Verification and Validation
Software Verification and Validation
 
Software Verification & Validation
Software Verification & ValidationSoftware Verification & Validation
Software Verification & Validation
 
Software Testing or Quality Assurance
Software Testing or Quality AssuranceSoftware Testing or Quality Assurance
Software Testing or Quality Assurance
 
Continuous Testing- A Key Ingredient for Success in Agile & DevOps
Continuous Testing- A Key Ingredient for Success in Agile & DevOpsContinuous Testing- A Key Ingredient for Success in Agile & DevOps
Continuous Testing- A Key Ingredient for Success in Agile & DevOps
 
Integration testing
Integration testingIntegration testing
Integration testing
 
Difference between functional testing and non functional testing
Difference between functional testing and non functional testingDifference between functional testing and non functional testing
Difference between functional testing and non functional testing
 
11 steps of testing process - By Harshil Barot
11 steps of testing process - By Harshil Barot11 steps of testing process - By Harshil Barot
11 steps of testing process - By Harshil Barot
 
What is Regression Testing? | Edureka
What is Regression Testing? | EdurekaWhat is Regression Testing? | Edureka
What is Regression Testing? | Edureka
 
Software Quality Assurance
Software Quality Assurance Software Quality Assurance
Software Quality Assurance
 
тестирование по
тестирование потестирование по
тестирование по
 
Top ten software testing tools
Top ten software testing toolsTop ten software testing tools
Top ten software testing tools
 
Public and private APIs: differences and challenges
Public and private APIs: differences and challengesPublic and private APIs: differences and challenges
Public and private APIs: differences and challenges
 
Software Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsSoftware Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing Trends
 

Andere mochten auch

9-Software Verification and Validation (Object Oriented Software Engineering ...
9-Software Verification and Validation (Object Oriented Software Engineering ...9-Software Verification and Validation (Object Oriented Software Engineering ...
9-Software Verification and Validation (Object Oriented Software Engineering ...Hafiz Ammar Siddiqui
 
Lou wheatcraft vv
Lou wheatcraft vvLou wheatcraft vv
Lou wheatcraft vvNASAPMC
 
Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19koolkampus
 
Complex System Engineering
Complex System EngineeringComplex System Engineering
Complex System EngineeringEmmanuel Fuchs
 
Software Testing
Software TestingSoftware Testing
Software TestingKiran Kumar
 
Poole.eric
Poole.ericPoole.eric
Poole.ericNASAPMC
 

Andere mochten auch (6)

9-Software Verification and Validation (Object Oriented Software Engineering ...
9-Software Verification and Validation (Object Oriented Software Engineering ...9-Software Verification and Validation (Object Oriented Software Engineering ...
9-Software Verification and Validation (Object Oriented Software Engineering ...
 
Lou wheatcraft vv
Lou wheatcraft vvLou wheatcraft vv
Lou wheatcraft vv
 
Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19
 
Complex System Engineering
Complex System EngineeringComplex System Engineering
Complex System Engineering
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Poole.eric
Poole.ericPoole.eric
Poole.eric
 

Ähnlich wie Verifcation and Validation

Dr. Jonathan validation verification.ppt
Dr. Jonathan validation verification.pptDr. Jonathan validation verification.ppt
Dr. Jonathan validation verification.pptPhial
 
Software engineering testing and types
Software engineering testing and typesSoftware engineering testing and types
Software engineering testing and typesDr. Anthony Vincent. B
 
Dr.Jonathan Software verification validation.ppt
Dr.Jonathan Software verification validation.pptDr.Jonathan Software verification validation.ppt
Dr.Jonathan Software verification validation.pptPhial
 
functional testing
functional testing functional testing
functional testing bharathanche
 
Basic of Software Testing.pptx
Basic of Software Testing.pptxBasic of Software Testing.pptx
Basic of Software Testing.pptxaparna14patil
 
Software-Testing.pdf
Software-Testing.pdfSoftware-Testing.pdf
Software-Testing.pdfSalim533277
 
Quality Assurance with Manual Testing
Quality Assurance with Manual TestingQuality Assurance with Manual Testing
Quality Assurance with Manual TestingEdureka!
 
Software testing
Software testingSoftware testing
Software testingMahfuz1061
 
Sqa unit1
Sqa unit1Sqa unit1
Sqa unit1kannaki
 
Ian Sommerville, Software Engineering, 9th EditionCh 8
Ian Sommerville,  Software Engineering, 9th EditionCh 8Ian Sommerville,  Software Engineering, 9th EditionCh 8
Ian Sommerville, Software Engineering, 9th EditionCh 8Mohammed Romi
 
Quality assuarance bharath anche (1)
Quality assuarance bharath anche (1)Quality assuarance bharath anche (1)
Quality assuarance bharath anche (1)bharathanche
 
testing.ppt
testing.ppttesting.ppt
testing.pptSampa21
 
The Role of Verification and Validation in System Development Life Cycle
The Role of Verification and Validation in System Development Life CycleThe Role of Verification and Validation in System Development Life Cycle
The Role of Verification and Validation in System Development Life CycleIOSR Journals
 

Ähnlich wie Verifcation and Validation (20)

Dr. Jonathan validation verification.ppt
Dr. Jonathan validation verification.pptDr. Jonathan validation verification.ppt
Dr. Jonathan validation verification.ppt
 
Software Verification & Validation
Software Verification & ValidationSoftware Verification & Validation
Software Verification & Validation
 
Software engineering testing and types
Software engineering testing and typesSoftware engineering testing and types
Software engineering testing and types
 
Dr.Jonathan Software verification validation.ppt
Dr.Jonathan Software verification validation.pptDr.Jonathan Software verification validation.ppt
Dr.Jonathan Software verification validation.ppt
 
functional testing
functional testing functional testing
functional testing
 
Ch23
Ch23Ch23
Ch23
 
Basic of Software Testing.pptx
Basic of Software Testing.pptxBasic of Software Testing.pptx
Basic of Software Testing.pptx
 
Software Processes
Software ProcessesSoftware Processes
Software Processes
 
Software-Testing.pdf
Software-Testing.pdfSoftware-Testing.pdf
Software-Testing.pdf
 
Quality Assurance with Manual Testing
Quality Assurance with Manual TestingQuality Assurance with Manual Testing
Quality Assurance with Manual Testing
 
Introduction to Software Enigneering
Introduction to Software Enigneering Introduction to Software Enigneering
Introduction to Software Enigneering
 
0273710133 pp01v2
0273710133 pp01v20273710133 pp01v2
0273710133 pp01v2
 
Software testing
Software testingSoftware testing
Software testing
 
Sqa unit1
Sqa unit1Sqa unit1
Sqa unit1
 
sftware cst est
sftware cst estsftware cst est
sftware cst est
 
Ian Sommerville, Software Engineering, 9th EditionCh 8
Ian Sommerville,  Software Engineering, 9th EditionCh 8Ian Sommerville,  Software Engineering, 9th EditionCh 8
Ian Sommerville, Software Engineering, 9th EditionCh 8
 
Quality assuarance bharath anche (1)
Quality assuarance bharath anche (1)Quality assuarance bharath anche (1)
Quality assuarance bharath anche (1)
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
testing.ppt
testing.ppttesting.ppt
testing.ppt
 
The Role of Verification and Validation in System Development Life Cycle
The Role of Verification and Validation in System Development Life CycleThe Role of Verification and Validation in System Development Life Cycle
The Role of Verification and Validation in System Development Life Cycle
 

Mehr von SaggitariusArrow

Mehr von SaggitariusArrow (6)

Flowchartarray
FlowchartarrayFlowchartarray
Flowchartarray
 
Hta
HtaHta
Hta
 
Human computer interaction
Human computer interactionHuman computer interaction
Human computer interaction
 
Laporan latihan industri ddpc
Laporan latihan industri ddpcLaporan latihan industri ddpc
Laporan latihan industri ddpc
 
Takwim latihan industri (21617)
Takwim latihan industri  (21617)Takwim latihan industri  (21617)
Takwim latihan industri (21617)
 
Human Factors and User Interface Design
Human Factors and User Interface DesignHuman Factors and User Interface Design
Human Factors and User Interface Design
 

Kürzlich hochgeladen

Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...kalichargn70th171
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfVishalKumarJha10
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfproinshot.com
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024Mind IT Systems
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...software pro Development
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 

Kürzlich hochgeladen (20)

Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 

Verifcation and Validation

  • 1. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 1 Verification and Validation with edits by Dan Fleck Coming up: Objectives
  • 2. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 2 Objectives To introduce software verification and validation and to discuss the distinction between them To describe the program inspection process and its role in V & V To explain static analysis as a verification technique Coming up: Topics covered
  • 3. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 3 Topics covered Verification and validation planning Software inspections Automated static analysis Coming up: Verification vs validation
  • 4. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 4 Verification: "Are we building the product right”. • The software should conform to its specification. Validation: "Are we building the right product”. • The software should do what the user really wants. Verification vs validation Coming up: The V & V process
  • 5. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 5 Is a whole life-cycle process - V & V must be applied at each stage in the software process. Has two principal objectives • The discovery of defects in a system; • The assessment of whether or not the system is useful and useable in an operational situation. The V & V process Coming up: V & V goals
  • 6. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 6 V & V goals Verification and validation should establish confidence that the software is fit for purpose. This does NOT mean completely free of defects. Rather, it must be good enough for its intended use and the type of use will determine the degree of confidence that is needed. Coming up: V & V confidence
  • 7. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 7 V & V confidence Depends on system’s purpose, user expectations and marketing environment • Software function • The level of confidence depends on how critical the software is to an organisation. • User expectations • Users may have low expectations of certain kinds of software. • Marketing environment • Getting a product to market early may be more important than finding defects in the program. Coming up: IV & V: Independent Validation
  • 8. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 8 IV & V: Independent Validation and Verification Can be done by another internal team or external (other company) developerdeveloper independent testerindependent tester Understands the systemUnderstands the system but, will test "gently"but, will test "gently" and, is driven by "delivery"and, is driven by "delivery" Must learn about the system,Must learn about the system, but, will attempt to break itbut, will attempt to break it and, is driven by qualityand, is driven by quality Coming up: Static and dynamic verification
  • 9. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 9 Software inspections. Concerned with analysis of the static system representation to discover problems (static verification) • May be supplement by tool-based document and code analysis Software testing. Concerned with exercising and observing product behaviour (dynamic verification) • The system is executed with test data and its operational behaviour is observed Static and dynamic verification Coming up: Static and dynamic V&V
  • 10. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 10 Static and dynamic V&V QuickTime™ and a decompressor are needed to see this picture. Coming up: Program testing
  • 11. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 11 Can reveal the presence of errors NOT their absence. The only validation technique for non- functional requirements is the software has to be executed to see how it behaves. Should be used in conjunction with static verification to provide full V&V coverage. Program testing Coming up: Types of testing
  • 12. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 12 Defect testing • Tests designed to discover system defects. • A successful defect test is one which reveals the presence of defects in a system. • Covered in next lecture Validation testing • Intended to show that the software meets its requirements. • A successful test is one that shows that a requirements has been properly implemented. Types of testing Coming up: Testing and debugging
  • 13. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 13 Defect testing and debugging are distinct processes. Verification and validation is concerned with establishing the existence of defects in a program. Debugging is concerned with locating and repairing these errors. Debugging involves formulating a hypothesis about program behaviour then testing these hypotheses to find the system error. Testing and debugging Coming up: The debugging process
  • 14. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 14 The debugging process QuickTime™ and a decompressor are needed to see this picture. Coming up: Debugging Techniques
  • 15. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 15 Debugging Techniques brute forcebrute force backtrackingbacktracking Cause eliminationCause elimination When all else fails, ask for help! Coming up: V & V planning
  • 16. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 16 Careful planning is required to get the most out of testing and inspection processes. Planning should start early in the development process. The plan should identify the balance between static verification and testing. Test planning is about defining standards for the testing process rather than describing product tests. V & V planning Coming up: The V-model of development
  • 17. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 17 The V-model of development QuickTime™ and a decompressor are needed to see this picture. Coming up: The structure of a software test
  • 18. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 18 The structure of a software test plan The testing process. Requirements traceability. Tested items. Testing schedule. Test recording procedures. Hardware and software requirements. Constraints. Coming up: The software test plan
  • 19. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 19 The software test plan Coming up: Software inspections
  • 20. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 20 Software inspections These involve people examining the source representation with the aim of discovering anomalies and defects. Inspections do not require execution of a system so may be used before implementation. They may be applied to any representation of the system (requirements, design,configuration data, test data, etc.). They have been shown to be an effective technique for discovering program errors. Coming up: Inspection success
  • 21. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 21 Inspection success Many different defects may be discovered in a single inspection. In testing, one defect may mask another so several executions are required. Reuse and programming patterns are common so reviewers are likely to have seen the types of error that commonly arise. Coming up: Inspections and testing
  • 22. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 22 Inspections and testing Inspections and testing are complementary and not opposing verification techniques. Both should be used during the V & V process. Inspections can check conformance with a specification but not conformance with the customer’s real requirements. Inspections cannot check non-functional characteristics such as performance, usability, etc. Coming up: Program inspections
  • 23. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 23 Program inspections Formalised approach to document reviews Intended explicitly for defect detection (not correction). Defects may be logical errors, anomalies in the code that might indicate an erroneous condition (e.g. an uninitialised variable) or non-compliance with standards. Coming up: Inspection pre-conditions
  • 24. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 24 Inspection pre-conditions A precise specification must be available. Team members must be familiar with the organisation standards. Syntactically correct code or other system representations must be available. An error checklist should be prepared. Management must accept that inspection will increase costs early in the software process. Management should not use inspections for staff appraisal ie finding out who makes mistakes. Coming up: The inspection process
  • 25. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 25 The inspection process QuickTime™ and a decompressor are needed to see this picture. Coming up: Inspection procedure
  • 26. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 26 Inspection procedure System overview presented to inspection team. Code and associated documents are distributed to inspection team in advance. Inspection takes place and discovered errors are noted. Modifications are made to repair discovered errors. Re-inspection may or may not be required. Coming up: Inspection roles
  • 27. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 27 Inspection checklists Checklist of common errors should be used to drive the inspection. Error checklists are programming language dependent and reflect the characteristic errors that are likely to arise in the language. In general, the 'weaker' the type checking, the larger the checklist. Examples: Initialisation, Constant naming, loop termination, array bounds, etc. Coming up: Inspection checks 1
  • 28. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 28 Inspection checks 1 Coming up: Inspection checks 2
  • 29. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 29 Inspection checks 2 Coming up: Inspection rate
  • 30. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 30 Inspection rate 500 statements/hour during overview. 125 source statement/hour during individual preparation. 90-125 statements/hour can be inspected. Inspection is therefore an expensive process. Inspecting 500 lines costs about 40 man/hours effort - about £2800 at UK rates. Coming up: Automated static analysis
  • 31. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 31 Automated static analysis Static analysers are software tools for source text processing. They parse the program text and try to discover potentially erroneous conditions and bring these to the attention of the V & V team. They are very effective as an aid to inspections - they are a supplement to but not a replacement for inspections. Coming up: Static analysis checks
  • 32. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 32 Static analysis checks Coming up: Stages of static analysis
  • 33. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 33 Stages of static analysis Control flow analysis. Checks for loops with multiple exit or entry points, finds unreachable code, etc. Data use analysis. Detects uninitialised variables, variables written twice without an intervening assignment, variables which are declared but never used, etc. Coming up: Stages of static analysis
  • 34. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 34 Stages of static analysis Information flow analysis. Identifies the dependencies of output variables. Does not detect anomalies itself but highlights information for code inspection or review Path analysis. Identifies paths through the program and sets out the statements executed in that path. Again, potentially useful in the review process Both these stages generate vast amounts of information. They must be used with care. Coming up: LINT static analysis
  • 35. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 35 LINT static analysis Coming up: Static Analysis Tools
  • 36. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 36 Static Analysis Tools FindBugs - Finds MANY categories of bugs Checkstyle - coding standard violations PMD - Maybe a lot more, but seems to be mainly unused variables it seems, also cut-n- paste code. Jamit - Java Access Modifier Inference Tool - find tighter access modifiers Coming up: Verification and formal methods
  • 37. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 37 Verification and formal methods Formal methods can be used when a mathematical specification of the system is produced. They are the ultimate static verification technique. They involve detailed mathematical analysis of the specification and may develop formal arguments that a program conforms to its mathematical specification. Coming up: Arguments for formal methods
  • 38. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 38 Arguments for formal methods Producing a mathematical specification requires a detailed analysis of the requirements and this is likely to uncover errors. They can detect implementation errors before testing when the program is analyzed alongside the specification. Coming up: Arguments against formal
  • 39. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 39 Arguments against formal methods Require specialized notations that cannot be understood by domain experts. Very expensive to develop a specification and even more expensive to show that a program meets that specification. It may be possible to reach the same level of confidence in a program more cheaply using other V & V techniques. Formal specification using a state transition model. Incremental development where the customer prioritises increments. Structured programming - limited control and abstraction constructs are used in the program. Static verification using rigorous inspections. Statistical testing of the system. Coming up: Key points
  • 40. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 40 Key points Verification and validation are not the same thing. Verification shows conformance with specification; validation shows that the program meets the customer’s needs. Test plans should be drawn up to guide the testing process. Static verification techniques involve examination and analysis of the program for error detection. Coming up: Key points
  • 41. ©Ian Sommerville 2004 -- Software Engineering, 7th edition. Chapter 22 Slide 41 Key points Program inspections are very effective in discovering errors. Program code in inspections is systematically checked by a small team to locate software faults. Static analysis tools can discover program anomalies which may be an indication of faults in the code. End of presentation

Hinweis der Redaktion

  1. Brute Force - tons of print stmts, memory traces, etc… get lots of info, then look Backtracking - start at the error, and manually look through code to find the source Cause elimination - hypothesize a cause by looking at data and test it -- or -- Create a list of all possible causes, and try each one.
  2. Wed class got here.
  3. Thurs class got here