SlideShare a Scribd company logo
3
Most read
6
Most read
7
Most read
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 1
Verification and Validation
Thanks to Ian Sommerville for his consent to
use his slides for academic purposes
Inam Ul Haq
Lecturer in Computer Science
University of Education Okara
Inam@ue.edu.pk, inam.bth@gmail.com
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 2
Verification and validation planning
Software inspections
Automated static analysis
Topics covered
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 3
Verification:
"Are we building the product right”.
The software should conform to its specification.
Validation:
"Are we building the right product”.
It ensures that software meets customer’s expectations.
Verification vs validation
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 4
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 useable in an
operational situation.
The V & V process
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 5
V& V goals
V & Validation should confirm 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.
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 6
Static Verification
• inspect program code for all possible run-time behaviors and seek out
coding flaws, back doors, and potentially malicious code.
• Code reviews, walkthroughs, or inspections are referred to as static testing
• Static code analysis tools:
http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis
Dynamic Verification
• It monitors system memory, functional behavior, response time, and overall
performance of the system
• The system can also be executed with test cases
• While static and dynamic analysis can be performed manually & they can
also be automated (load-runner).
• Testing types: http://www.softwaretestinghelp.com/types-of-software-testing/
Static and dynamic verification
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 7
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.
• Sort of test cases
Testing and debugging
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 8
The debugging process
Locate
error
Design
error repair
Repair
error
Retest
program
Test
results
Specification Test
cases
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 9
The V-model of development
System
specification
System
design
Detailed
design
Module and
unit code
and test
Sub-system
integ ration
test plan
System
integration
test plan
Acceptance
test plan
Service
Acceptance
test
System
integ ration test
Sub-system
integ ration test
Requir ements
specification
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 10
The structure of a software test plan
The testing process.
Requirements traceability.
Tested items.
Testing schedule.
Test recording procedures.[Jing, bugzilla etc]
Hardware and software requirements.
Constraints.
We will do usability and functionality testing and make test cases
• learning assignment (non-graded)
• My test cases: http://jmp.sh/J0KW3Vz
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 11
The software test plan
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 12
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.
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 13
Inspection checks 1 (self)
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 14
Inspection checks 2 (self)
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 15
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.

More Related Content

PPTX
Software Testing and Quality Assurance unit1
PDF
software testing and quality assurance .pdf
PPTX
verification and validation
PPTX
Software Quality Assurance
PPTX
Software quality assurance
PPTX
Software testing ppt
PPTX
Integration testing
PPTX
Software Quality Assurance
Software Testing and Quality Assurance unit1
software testing and quality assurance .pdf
verification and validation
Software Quality Assurance
Software quality assurance
Software testing ppt
Integration testing
Software Quality Assurance

What's hot (20)

PPTX
Software Testing Introduction
PPTX
Software testing & Quality Assurance
PPTX
Software testing
PPT
Software Quality Assurance
PPTX
SOFTWARE TESTING
PPT
Manual testing concepts course 1
PPTX
Software testing.ppt
PPTX
Introduction to software testing
PPTX
Validation testing
PPTX
Staff training and certification
PPT
Manual testing ppt
PPTX
Software testing
PPTX
Software testing
PPTX
Acceptance testing
PPT
Software Testing
PPTX
Testing web application
PPTX
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
PPTX
Types of testing
PPT
Software quality
PDF
Software testing methods, levels and types
Software Testing Introduction
Software testing & Quality Assurance
Software testing
Software Quality Assurance
SOFTWARE TESTING
Manual testing concepts course 1
Software testing.ppt
Introduction to software testing
Validation testing
Staff training and certification
Manual testing ppt
Software testing
Software testing
Acceptance testing
Software Testing
Testing web application
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Types of testing
Software quality
Software testing methods, levels and types
Ad

Viewers also liked (20)

PPT
Verification & Validation
PPT
Verification and Validation in Software Engineering SE19
PPT
Validation and verification
PPTX
Validation and Verification
PPT
What Exactly are the Techniques of Software Verification & Validation
PDF
Types of Data Validation
DOC
SOFTWARE VERIFICATION & VALIDATION
PDF
Verification and validation
PPTX
Excel presentation data validation
PPT
Intranet Partenaire
PPTX
QA overview
PPT
Verification and validation process in software testing
PPTX
Software Fault, Error, and Failure
PPTX
Software testing and quality assurance
PPT
Agile testing
PPT
Validation for different kind of data
PPT
Function oriented design
PPTX
Object oriented and function oriented design
PPTX
business requirements functional and non functional
Verification & Validation
Verification and Validation in Software Engineering SE19
Validation and verification
Validation and Verification
What Exactly are the Techniques of Software Verification & Validation
Types of Data Validation
SOFTWARE VERIFICATION & VALIDATION
Verification and validation
Excel presentation data validation
Intranet Partenaire
QA overview
Verification and validation process in software testing
Software Fault, Error, and Failure
Software testing and quality assurance
Agile testing
Validation for different kind of data
Function oriented design
Object oriented and function oriented design
business requirements functional and non functional
Ad

Similar to Software Verification & Validation (20)

PPT
Software Verification & Validation
PPT
Dr.Jonathan Software verification validation.ppt
PPT
Verifcation and Validation
PPT
Dr. Jonathan validation verification.ppt
PPT
S_22.ppt verification and validation in software testing
PPT
Software Processes
PPT
Sech1920 1200112979886874-3
PPTX
SENG202-v-and-v-modeling_121810.pptx
PPT
testing.ppt
PPT
Software testing-and-analysis
PPT
Ch22
PPT
Sv&V Rim
PPTX
Quality Analyst Training - Gain America
PPS
Mca se chapter_07_software_validation
PPT
SQA Lecture 01 (Introduction) - Testing and SQA
PPT
SECh1920
PPTX
Testing Techniques.pptx
PDF
SOFTWARE TESTING W1_watermark.pdf
DOCX
Software Testing - Beginners
PPT
Ch23
Software Verification & Validation
Dr.Jonathan Software verification validation.ppt
Verifcation and Validation
Dr. Jonathan validation verification.ppt
S_22.ppt verification and validation in software testing
Software Processes
Sech1920 1200112979886874-3
SENG202-v-and-v-modeling_121810.pptx
testing.ppt
Software testing-and-analysis
Ch22
Sv&V Rim
Quality Analyst Training - Gain America
Mca se chapter_07_software_validation
SQA Lecture 01 (Introduction) - Testing and SQA
SECh1920
Testing Techniques.pptx
SOFTWARE TESTING W1_watermark.pdf
Software Testing - Beginners
Ch23

More from university of education,Lahore (20)

PPT
Activites and Time Planning
PPT
Classical Encryption Techniques
PPT
Activites and Time Planning
PPTX
OSI Security Architecture
PPTX
Network Security Terminologies
PPT
Project Scheduling, Planning and Risk Management
PPTX
Software Testing and Debugging
PPTX
PPT
Enterprise Application Integration
PPTX
PPTX
Itertaive Process Development
PPTX
Computer Aided Software Engineering Nayab Awan
PPTX
Lect 2 assessing the technology landscape
PPTX
system level requirements gathering and analysis
Activites and Time Planning
Classical Encryption Techniques
Activites and Time Planning
OSI Security Architecture
Network Security Terminologies
Project Scheduling, Planning and Risk Management
Software Testing and Debugging
Enterprise Application Integration
Itertaive Process Development
Computer Aided Software Engineering Nayab Awan
Lect 2 assessing the technology landscape
system level requirements gathering and analysis

Recently uploaded (20)

PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Basic Mud Logging Guide for educational purpose
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Cell Structure & Organelles in detailed.
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
RMMM.pdf make it easy to upload and study
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
master seminar digital applications in india
FourierSeries-QuestionsWithAnswers(Part-A).pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Cell Types and Its function , kingdom of life
Basic Mud Logging Guide for educational purpose
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Cell Structure & Organelles in detailed.
O7-L3 Supply Chain Operations - ICLT Program
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Week 4 Term 3 Study Techniques revisited.pptx
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Complications of Minimal Access Surgery at WLH
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
human mycosis Human fungal infections are called human mycosis..pptx
RMMM.pdf make it easy to upload and study
Pharmacology of Heart Failure /Pharmacotherapy of CHF
STATICS OF THE RIGID BODIES Hibbelers.pdf
master seminar digital applications in india

Software Verification & Validation

  • 1. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 1 Verification and Validation Thanks to Ian Sommerville for his consent to use his slides for academic purposes Inam Ul Haq Lecturer in Computer Science University of Education Okara Inam@ue.edu.pk, inam.bth@gmail.com
  • 2. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 2 Verification and validation planning Software inspections Automated static analysis Topics covered
  • 3. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 3 Verification: "Are we building the product right”. The software should conform to its specification. Validation: "Are we building the right product”. It ensures that software meets customer’s expectations. Verification vs validation
  • 4. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 4 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 useable in an operational situation. The V & V process
  • 5. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 5 V& V goals V & Validation should confirm 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.
  • 6. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 6 Static Verification • inspect program code for all possible run-time behaviors and seek out coding flaws, back doors, and potentially malicious code. • Code reviews, walkthroughs, or inspections are referred to as static testing • Static code analysis tools: http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis Dynamic Verification • It monitors system memory, functional behavior, response time, and overall performance of the system • The system can also be executed with test cases • While static and dynamic analysis can be performed manually & they can also be automated (load-runner). • Testing types: http://www.softwaretestinghelp.com/types-of-software-testing/ Static and dynamic verification
  • 7. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 7 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. • Sort of test cases Testing and debugging
  • 8. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 8 The debugging process Locate error Design error repair Repair error Retest program Test results Specification Test cases
  • 9. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 9 The V-model of development System specification System design Detailed design Module and unit code and test Sub-system integ ration test plan System integration test plan Acceptance test plan Service Acceptance test System integ ration test Sub-system integ ration test Requir ements specification
  • 10. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 10 The structure of a software test plan The testing process. Requirements traceability. Tested items. Testing schedule. Test recording procedures.[Jing, bugzilla etc] Hardware and software requirements. Constraints. We will do usability and functionality testing and make test cases • learning assignment (non-graded) • My test cases: http://jmp.sh/J0KW3Vz
  • 11. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 11 The software test plan
  • 12. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 12 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.
  • 13. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 13 Inspection checks 1 (self)
  • 14. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 14 Inspection checks 2 (self)
  • 15. ©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 15 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.