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

What's hot (20)

PPTX
Software quality assurance
Aman Adhikari
 
PPTX
Software testing.ppt
Komal Garg
 
PPT
Security testing
baskar p
 
PPTX
Integration testing
queen jemila
 
PPTX
Types of testing
Sonam Agarwal
 
PDF
Software testing methods, levels and types
Confiz
 
PPTX
System testing
Sifat Hossain
 
PPTX
System testing
KarthigaGunasekaran1
 
PPTX
Software testing
Madhumita Chatterjee
 
PPTX
Introduction to software testing
Hadi Fadlallah
 
PPTX
Software testing
balamurugan.k Kalibalamurugan
 
PPT
Software Testing Fundamentals
Chankey Pathak
 
PPT
Manual testing ppt
Santosh Maranabasari
 
PPTX
Validation testing
Slideshare
 
PPTX
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Ankit Prajapati
 
PPTX
SOFTWARE TESTING
Priyanka Karancy
 
PPTX
Software testing
Kunal Prajapati
 
PPT
Software Testing 101
QA Hannah
 
PPT
Software Quality Metrics
Mufaddal Nullwala
 
PPTX
Software testing ppt
Heritage Institute Of Tech,India
 
Software quality assurance
Aman Adhikari
 
Software testing.ppt
Komal Garg
 
Security testing
baskar p
 
Integration testing
queen jemila
 
Types of testing
Sonam Agarwal
 
Software testing methods, levels and types
Confiz
 
System testing
Sifat Hossain
 
System testing
KarthigaGunasekaran1
 
Software testing
Madhumita Chatterjee
 
Introduction to software testing
Hadi Fadlallah
 
Software Testing Fundamentals
Chankey Pathak
 
Manual testing ppt
Santosh Maranabasari
 
Validation testing
Slideshare
 
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Ankit Prajapati
 
SOFTWARE TESTING
Priyanka Karancy
 
Software testing
Kunal Prajapati
 
Software Testing 101
QA Hannah
 
Software Quality Metrics
Mufaddal Nullwala
 
Software testing ppt
Heritage Institute Of Tech,India
 

Viewers also liked (20)

PPT
Verification & Validation
Dhanasekaran Nagarajan
 
PPT
Verification and Validation in Software Engineering SE19
koolkampus
 
PPT
Validation and verification
De La Salle University-Manila
 
PPTX
Validation and Verification
mrmwood
 
PPT
What Exactly are the Techniques of Software Verification & Validation
Yogindernath Gupta
 
PDF
Types of Data Validation
Metric Fox
 
DOC
SOFTWARE VERIFICATION & VALIDATION
Amin Bandeali
 
PDF
Verification and validation
Suresh Thammishetty
 
PPTX
Excel presentation data validation
Nagamani Y R
 
PPT
Intranet Partenaire
Ruralitour
 
PPTX
QA overview
Rasha Bazbaz
 
PPT
Verification and validation process in software testing
pooja deshmukh
 
PPTX
Software Fault, Error, and Failure
nethisip13
 
PPTX
Software testing and quality assurance
TOPS Technologies
 
PPT
Agile testing
Yogita patil
 
PPT
Validation for different kind of data
song_lachinhminh_smile
 
PPT
Function oriented design
Vidhun T
 
PPTX
Object oriented and function oriented design
Naveen Sagayaselvaraj
 
PPTX
business requirements functional and non functional
CHANDRA KAMAL
 
Verification & Validation
Dhanasekaran Nagarajan
 
Verification and Validation in Software Engineering SE19
koolkampus
 
Validation and verification
De La Salle University-Manila
 
Validation and Verification
mrmwood
 
What Exactly are the Techniques of Software Verification & Validation
Yogindernath Gupta
 
Types of Data Validation
Metric Fox
 
SOFTWARE VERIFICATION & VALIDATION
Amin Bandeali
 
Verification and validation
Suresh Thammishetty
 
Excel presentation data validation
Nagamani Y R
 
Intranet Partenaire
Ruralitour
 
QA overview
Rasha Bazbaz
 
Verification and validation process in software testing
pooja deshmukh
 
Software Fault, Error, and Failure
nethisip13
 
Software testing and quality assurance
TOPS Technologies
 
Agile testing
Yogita patil
 
Validation for different kind of data
song_lachinhminh_smile
 
Function oriented design
Vidhun T
 
Object oriented and function oriented design
Naveen Sagayaselvaraj
 
business requirements functional and non functional
CHANDRA KAMAL
 
Ad

Similar to Software Verification & Validation (20)

PPT
Software Verification & Validation
university of education,Lahore
 
PPT
Dr.Jonathan Software verification validation.ppt
Phial
 
PPT
Verifcation and Validation
SaggitariusArrow
 
PPT
Dr. Jonathan validation verification.ppt
Phial
 
PPT
S_22.ppt verification and validation in software testing
namrataparopate
 
PPT
Software Processes
university of education,Lahore
 
PPT
Sech1920 1200112979886874-3
Mateti Anilraja
 
PPTX
SENG202-v-and-v-modeling_121810.pptx
MinsasWorld
 
PPT
testing.ppt
Sampa21
 
PPT
Software testing-and-analysis
WBUTTUTORIALS
 
PPT
Ch22
phanleson
 
PPT
Sv&V Rim
wachakhan
 
PPTX
Quality Analyst Training - Gain America
GainAmerica
 
PPS
Mca se chapter_07_software_validation
Aman Adhikari
 
PPT
SQA Lecture 01 (Introduction) - Testing and SQA
sunena224
 
PPT
SECh1920
Joe Christensen
 
PPTX
Testing Techniques.pptx
GhulamAli103737
 
PDF
SOFTWARE TESTING W1_watermark.pdf
ShubhamSingh606946
 
DOCX
Software Testing - Beginners
Hima Bindu Kosuru
 
PPT
Ch23
phanleson
 
Software Verification & Validation
university of education,Lahore
 
Dr.Jonathan Software verification validation.ppt
Phial
 
Verifcation and Validation
SaggitariusArrow
 
Dr. Jonathan validation verification.ppt
Phial
 
S_22.ppt verification and validation in software testing
namrataparopate
 
Software Processes
university of education,Lahore
 
Sech1920 1200112979886874-3
Mateti Anilraja
 
SENG202-v-and-v-modeling_121810.pptx
MinsasWorld
 
testing.ppt
Sampa21
 
Software testing-and-analysis
WBUTTUTORIALS
 
Ch22
phanleson
 
Sv&V Rim
wachakhan
 
Quality Analyst Training - Gain America
GainAmerica
 
Mca se chapter_07_software_validation
Aman Adhikari
 
SQA Lecture 01 (Introduction) - Testing and SQA
sunena224
 
SECh1920
Joe Christensen
 
Testing Techniques.pptx
GhulamAli103737
 
SOFTWARE TESTING W1_watermark.pdf
ShubhamSingh606946
 
Software Testing - Beginners
Hima Bindu Kosuru
 
Ch23
phanleson
 
Ad

More from university of education,Lahore (20)

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

Recently uploaded (20)

PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
community health nursing question paper 2.pdf
Prince kumar
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 

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 [email protected], [email protected]
  • 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.