SlideShare a Scribd company logo
1
 Software Testing Strategies
Slide Set to accompany
Software Engineering: A Practitioner’s Approach, 7/e
by Roger S. Pressman
Slides copyright © 1996, 2001, 2005, 2009 by Roger S. Pressman
For non-profit educational use only
May be reproduced ONLY for student use at the university level when used in conjunction
with Software Engineering: A Practitioner's Approach, 7/e. Any other reproduction or use is
prohibited without the express written permission of the author.
All copyright information MUST appear if these slides are posted on a website for student
use.
2
Software Testing
Testing is the process of exercising
a program with the specific intent of
finding errors prior to delivery to the
end user.
3
What Testing Shows
errors
errors
requirements conformance
requirements conformance
performance
performance
an indication
an indication
of quality
of quality
4
Strategic Approach
 To perform effective testing, you should conduct
effective technical reviews. By doing this, many errors
will be eliminated before testing commences.
 Testing begins at the component level and works
"outward" toward the integration of the entire
computer-based system.
 Different testing techniques are appropriate for different
software engineering approaches and at different points
in time.
 Testing is conducted by the developer of the software
and (for large projects) an independent test group.
 Testing and debugging are different activities, but
debugging must be accommodated in any testing
strategy.
5
V & V
 Verification refers to the set of tasks that ensure
that software correctly implements a specific
function.
 Validation refers to a different set of tasks that
ensure that the software that has been built is
traceable to customer requirements. Boehm
[Boe81] states this another way:
 Verification: "Are we building the product right?"
 Validation: "Are we building the right product?"
6
Who Tests the Software?
developer
developer independent tester
independent tester
Understands the system
Understands 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 it
but, will attempt to break it
and, is driven by quality
and, is driven by quality
7
Testing Strategy
System engineering
Analysis modeling
Design modeling
Code generation Unit test
Integration test
Validation test
System test
8
Testing Strategy
 We begin by ‘testing-in-the-small’ and move
toward ‘testing-in-the-large’
 For conventional software
 The module (component) is our initial focus
 Integration of modules follows
 For OO software
 our focus when “testing in the small” changes from
an individual module (the conventional view) to an
OO class that encompasses attributes and
operations and implies communication and
collaboration
9
Strategic Issues
 Specify product requirements in a quantifiable manner long
before testing commences.
 State testing objectives explicitly.
 Understand the users of the software and develop a profile
for each user category.
 Develop a testing plan that emphasizes “rapid cycle testin
g.”
 Build “robust” software that is designed to test itself (re-
route or cleanly terminate)
 Use effective technical reviews as a filter prior to testing
 Conduct technical reviews to assess the test strategy and
test cases themselves.
 Develop a continuous improvement approach for the testing
process.
10
Unit Testing
module
module
to be
to be
tested
tested
test cases
test cases
results
results
software
software
engineer
engineer
11
Unit Testing
interface
interface
local data structures
local data structures
boundary conditions
boundary conditions
independent paths
independent paths
error handling paths
error handling paths
module
module
to be
to be
tested
tested
test cases
test cases
12
Unit Test Environment
Module
Module
stub
stub stub
stub
driver
driver
RESULTS
RESULTS
interface
interface
local data structures
local data structures
boundary conditions
boundary conditions
independent paths
independent paths
error handling paths
error handling paths
test cases
test cases
13
Integration Testing Strategies
Options:
Options:
•
• the
the “
“big bang
big bang”
” approach (all at once)
approach (all at once)
•
• an incremental construction strategy
an incremental construction strategy
14
Top Down Integration
top module is tested with
top module is tested with
stubs
stubs
stubs are replaced one at
stubs are replaced one at
a time, "depth first"
a time, "depth first"
as new modules are integrated,
as new modules are integrated,
some subset of tests is re-run
some subset of tests is re-run
A
A
B
B
C
C
D
D E
E
F
F G
G
15
Bottom-Up Integration
drivers are replaced one at a
drivers are replaced one at a
time, "depth first"
time, "depth first"
worker modules are grouped into
worker modules are grouped into
builds and integrated
builds and integrated
A
A
B
B
C
C
D
D E
E
F
F G
G
cluster
cluster
16
Sandwich Testing
Top modules are
Top modules are
tested with stubs
tested with stubs
Worker modules are grouped into
Worker modules are grouped into
builds and integrated
builds and integrated
A
A
B
B
C
C
D
D E
E
F
F G
G
cluster
cluster
17
Regression Testing
 Regression testing is the re-execution of some subset of
tests that have already been conducted to ensure that
changes have not propagated unintended side effects
 Whenever software is corrected, some aspect of the
software configuration (the program, its documentation,
or the data that support it) is changed.
 Regression testing helps to ensure that changes (due to
testing or for other reasons) do not introduce
unintended behavior or additional errors.
 Regression testing may be conducted manually, by re-
executing a subset of all test cases or using automated
capture/playback tools.
18
Smoke Testing
 A common approach for creating “daily builds” for product
software
 Smoke testing steps:
 Software components that have been translated into code are
integrated into a “build.”
• A build includes all data files, libraries, reusable modules, and engineered
components that are required to implement one or more product
functions.
 A series of tests is designed to expose errors that will keep the build
from properly performing its function.
• The intent should be to uncover “show stopper” errors that have the
highest likelihood of throwing the software project behind schedule.
 The build is integrated with other builds and the entire product (in its
current form) is smoke tested daily.
• The integration approach may be top down or bottom up.
19
Object-Oriented Testing
 begins by evaluating the correctness and
consistency of the analysis and design models
 testing strategy changes
 the concept of the ‘unit’ broadens due to
encapsulation
 integration focuses on classes and their execution
across a ‘thread’ or in the context of a usage
scenario
 validation uses conventional black box methods
 test case design draws on conventional
methods, but also encompasses special
features
20
OO Testing Strategy
 class testing is the equivalent of unit testing
 operations within the class are tested
 the state behavior of the class is examined
 integration applied three different strategies
 thread-based testing—integrates the set of
classes required to respond to one input or event
 use-based testing—integrates the set of classes
required to respond to one use case
 cluster testing—integrates the set of classes
required to demonstrate one collaboration
21
WebApp Testing - I
 The content model for the WebApp is
reviewed to uncover errors.
 The interface model is reviewed to ensure that
all use cases can be accommodated.
 The design model for the WebApp is reviewed
to uncover navigation errors.
 The user interface is tested to uncover errors in
presentation and/or navigation mechanics.
 Each functional component is unit tested.
22
WebApp Testing - II
 Navigation throughout the architecture is tested.
 The WebApp is implemented in a variety of different
environmental configurations and is tested for
compatibility with each configuration.
 Security tests are conducted in an attempt to exploit
vulnerabilities in the WebApp or within its
environment.
 Performance tests are conducted.
 The WebApp is tested by a controlled and monitored
population of end-users. The results of their interaction
with the system are evaluated for content and
navigation errors, usability concerns, compatibility
concerns, and WebApp reliability and performance.
23
High Order Testing:
Complete System
 Validation testing
 Focus is on software requirements
 System testing
 Focus is on system integration
 Alpha/Beta testing
 Focus is on customer usage
 Recovery testing
 forces the software to fail in a variety of ways and verifies that recovery is properly
performed
 Security testing
 verifies that protection mechanisms built into a system will, in fact, protect it from
improper penetration
 Stress testing
 executes a system in a manner that demands resources in abnormal quantity,
frequency, or volume
 Performance Testing
 test the run-time performance of software within the context of an integrated system
24
Debugging: A Diagnostic Process
25
The Debugging Process
26
Debugging Effort
time required
time required
to diagnose the
to diagnose the
symptom and
symptom and
determine the
determine the
cause
cause
time required
time required
to correct the error
to correct the error
and conduct
and conduct
regression tests
regression tests
27
Symptoms & Causes
symptom
symptom
cause
cause
symptom and cause may be
symptom and cause may be
geographically separated
geographically separated
symptom may disappear when
symptom may disappear when
another problem is fixed
another problem is fixed
cause may be due to a
cause may be due to a
combination of non-errors
combination of non-errors
cause may be due to a system
cause may be due to a system
or compiler error
or compiler error
cause may be due to
cause may be due to
assumptions that everyone
assumptions that everyone
believes
believes
symptom may be intermittent
symptom may be intermittent
28
Consequences of Bugs
damage
mild
annoying
disturbing
serious
extreme
catastrophic
infectious
Bug Type
Bug Categories:
Bug Categories:
function-related bugs,
function-related bugs,system-related bugs, data bugs, coding bugs,
system-related bugs, data bugs, coding bugs,
design bugs, documentation bugs, standards
design bugs, documentation bugs, standards
violations, etc.
violations, etc.
29
Debugging Techniques
brute force / testing
backtracking
induction
deduction
30
Correcting the Error
 Is the cause of the bug reproduced in another part of the program? In
many situations, a program defect is caused by an erroneous
pattern of logic that may be reproduced elsewhere.
 What "next bug" might be introduced by the fix I'm about to make?
Before the correction is made, the source code (or, better, the
design) should be evaluated to assess coupling of logic and
data structures.
 What could we have done to prevent this bug in the first place? This
question is the first step toward establishing a statistical
software quality assurance approach. If you correct the process
as well as the product, the bug will be removed from the
current program and may be eliminated from all future
programs.
31
Final Thoughts
 Think -- before you act to correct
 Use tools to gain additional insight
 If you’re at an impasse, get help from someone
else
 Once you correct the bug, use regression
testing to uncover any side effects
Ad

More Related Content

Similar to Software Testing Strategies lecture .ppt (20)

software testing strategies
software testing strategiessoftware testing strategies
software testing strategies
Hemanth Gajula
 
software testing strategies
software testing strategiessoftware testing strategies
software testing strategies
Hemanth Gajula
 
Software engineering 21 integration testing
Software engineering  21 integration testingSoftware engineering  21 integration testing
Software engineering 21 integration testing
Vaibhav Khanna
 
Software engineering 21 integration testing
Software engineering  21 integration testingSoftware engineering  21 integration testing
Software engineering 21 integration testing
Vaibhav Khanna
 
Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...
Prakhyath Rai
 
Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...
Prakhyath Rai
 
Software Testing Strategies ,Validation Testing and System Testing.
Software Testing Strategies ,Validation Testing and System Testing.Software Testing Strategies ,Validation Testing and System Testing.
Software Testing Strategies ,Validation Testing and System Testing.
Tanzeem Aslam
 
Software Testing Strategies ,Validation Testing and System Testing.
Software Testing Strategies ,Validation Testing and System Testing.Software Testing Strategies ,Validation Testing and System Testing.
Software Testing Strategies ,Validation Testing and System Testing.
Tanzeem Aslam
 
software-testing-strategies888888888.ppt
software-testing-strategies888888888.pptsoftware-testing-strategies888888888.ppt
software-testing-strategies888888888.ppt
sameera abu-ghalyoon
 
software-testing-strategies888888888.ppt
software-testing-strategies888888888.pptsoftware-testing-strategies888888888.ppt
software-testing-strategies888888888.ppt
sameera abu-ghalyoon
 
Testing throughout the software life cycle
Testing throughout the software life cycleTesting throughout the software life cycle
Testing throughout the software life cycle
Emi Rizki Ayunanda
 
Testing throughout the software life cycle
Testing throughout the software life cycleTesting throughout the software life cycle
Testing throughout the software life cycle
Emi Rizki Ayunanda
 
Testing strategies
Testing strategiesTesting strategies
Testing strategies
chaitanya_yarlagadda
 
Testing strategies
Testing strategiesTesting strategies
Testing strategies
chaitanya_yarlagadda
 
Testing
Testing Testing
Testing
poojadatt
 
Testing
Testing Testing
Testing
poojadatt
 
Testing ppt
Testing pptTesting ppt
Testing ppt
kiran theja
 
Testing ppt
Testing pptTesting ppt
Testing ppt
kiran theja
 
What is integration testing
What is integration testingWhat is integration testing
What is integration testing
TestingXperts
 
What is integration testing
What is integration testingWhat is integration testing
What is integration testing
TestingXperts
 
software testing strategies
software testing strategiessoftware testing strategies
software testing strategies
Hemanth Gajula
 
software testing strategies
software testing strategiessoftware testing strategies
software testing strategies
Hemanth Gajula
 
Software engineering 21 integration testing
Software engineering  21 integration testingSoftware engineering  21 integration testing
Software engineering 21 integration testing
Vaibhav Khanna
 
Software engineering 21 integration testing
Software engineering  21 integration testingSoftware engineering  21 integration testing
Software engineering 21 integration testing
Vaibhav Khanna
 
Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...
Prakhyath Rai
 
Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...
Prakhyath Rai
 
Software Testing Strategies ,Validation Testing and System Testing.
Software Testing Strategies ,Validation Testing and System Testing.Software Testing Strategies ,Validation Testing and System Testing.
Software Testing Strategies ,Validation Testing and System Testing.
Tanzeem Aslam
 
Software Testing Strategies ,Validation Testing and System Testing.
Software Testing Strategies ,Validation Testing and System Testing.Software Testing Strategies ,Validation Testing and System Testing.
Software Testing Strategies ,Validation Testing and System Testing.
Tanzeem Aslam
 
software-testing-strategies888888888.ppt
software-testing-strategies888888888.pptsoftware-testing-strategies888888888.ppt
software-testing-strategies888888888.ppt
sameera abu-ghalyoon
 
software-testing-strategies888888888.ppt
software-testing-strategies888888888.pptsoftware-testing-strategies888888888.ppt
software-testing-strategies888888888.ppt
sameera abu-ghalyoon
 
Testing throughout the software life cycle
Testing throughout the software life cycleTesting throughout the software life cycle
Testing throughout the software life cycle
Emi Rizki Ayunanda
 
Testing throughout the software life cycle
Testing throughout the software life cycleTesting throughout the software life cycle
Testing throughout the software life cycle
Emi Rizki Ayunanda
 
What is integration testing
What is integration testingWhat is integration testing
What is integration testing
TestingXperts
 
What is integration testing
What is integration testingWhat is integration testing
What is integration testing
TestingXperts
 

More from RohanMalik45 (12)

Quality Assurance in SE lecture week 08 .ppt
Quality Assurance in SE lecture week 08 .pptQuality Assurance in SE lecture week 08 .ppt
Quality Assurance in SE lecture week 08 .ppt
RohanMalik45
 
Software Quality Assurance SQA lecture.ppt
Software Quality Assurance SQA lecture.pptSoftware Quality Assurance SQA lecture.ppt
Software Quality Assurance SQA lecture.ppt
RohanMalik45
 
Project management Scheduling software engineering.pptx
Project management Scheduling software engineering.pptxProject management Scheduling software engineering.pptx
Project management Scheduling software engineering.pptx
RohanMalik45
 
Design Concepts software engineering.ppt
Design Concepts software engineering.pptDesign Concepts software engineering.ppt
Design Concepts software engineering.ppt
RohanMalik45
 
actionbar in android development course.pptx
actionbar in android development course.pptxactionbar in android development course.pptx
actionbar in android development course.pptx
RohanMalik45
 
ANN lecture data mining by Muhammad faraz.pptx
ANN lecture data mining by Muhammad faraz.pptxANN lecture data mining by Muhammad faraz.pptx
ANN lecture data mining by Muhammad faraz.pptx
RohanMalik45
 
Compiler Construction ( lexical analyzer).pptx
Compiler Construction ( lexical analyzer).pptxCompiler Construction ( lexical analyzer).pptx
Compiler Construction ( lexical analyzer).pptx
RohanMalik45
 
csc322:lecture 28 ( Deadlock) Operating.pptx
csc322:lecture 28 ( Deadlock) Operating.pptxcsc322:lecture 28 ( Deadlock) Operating.pptx
csc322:lecture 28 ( Deadlock) Operating.pptx
RohanMalik45
 
NLP in artificial intelligence .pdf
NLP in artificial intelligence      .pdfNLP in artificial intelligence      .pdf
NLP in artificial intelligence .pdf
RohanMalik45
 
artificial neural network lec 2 rt .pptx
artificial neural network lec 2 rt .pptxartificial neural network lec 2 rt .pptx
artificial neural network lec 2 rt .pptx
RohanMalik45
 
process pattern-1 software engineering.pptx
process pattern-1 software engineering.pptxprocess pattern-1 software engineering.pptx
process pattern-1 software engineering.pptx
RohanMalik45
 
Artificial Intelligence horn clause.pptx
Artificial Intelligence horn clause.pptxArtificial Intelligence horn clause.pptx
Artificial Intelligence horn clause.pptx
RohanMalik45
 
Quality Assurance in SE lecture week 08 .ppt
Quality Assurance in SE lecture week 08 .pptQuality Assurance in SE lecture week 08 .ppt
Quality Assurance in SE lecture week 08 .ppt
RohanMalik45
 
Software Quality Assurance SQA lecture.ppt
Software Quality Assurance SQA lecture.pptSoftware Quality Assurance SQA lecture.ppt
Software Quality Assurance SQA lecture.ppt
RohanMalik45
 
Project management Scheduling software engineering.pptx
Project management Scheduling software engineering.pptxProject management Scheduling software engineering.pptx
Project management Scheduling software engineering.pptx
RohanMalik45
 
Design Concepts software engineering.ppt
Design Concepts software engineering.pptDesign Concepts software engineering.ppt
Design Concepts software engineering.ppt
RohanMalik45
 
actionbar in android development course.pptx
actionbar in android development course.pptxactionbar in android development course.pptx
actionbar in android development course.pptx
RohanMalik45
 
ANN lecture data mining by Muhammad faraz.pptx
ANN lecture data mining by Muhammad faraz.pptxANN lecture data mining by Muhammad faraz.pptx
ANN lecture data mining by Muhammad faraz.pptx
RohanMalik45
 
Compiler Construction ( lexical analyzer).pptx
Compiler Construction ( lexical analyzer).pptxCompiler Construction ( lexical analyzer).pptx
Compiler Construction ( lexical analyzer).pptx
RohanMalik45
 
csc322:lecture 28 ( Deadlock) Operating.pptx
csc322:lecture 28 ( Deadlock) Operating.pptxcsc322:lecture 28 ( Deadlock) Operating.pptx
csc322:lecture 28 ( Deadlock) Operating.pptx
RohanMalik45
 
NLP in artificial intelligence .pdf
NLP in artificial intelligence      .pdfNLP in artificial intelligence      .pdf
NLP in artificial intelligence .pdf
RohanMalik45
 
artificial neural network lec 2 rt .pptx
artificial neural network lec 2 rt .pptxartificial neural network lec 2 rt .pptx
artificial neural network lec 2 rt .pptx
RohanMalik45
 
process pattern-1 software engineering.pptx
process pattern-1 software engineering.pptxprocess pattern-1 software engineering.pptx
process pattern-1 software engineering.pptx
RohanMalik45
 
Artificial Intelligence horn clause.pptx
Artificial Intelligence horn clause.pptxArtificial Intelligence horn clause.pptx
Artificial Intelligence horn clause.pptx
RohanMalik45
 
Ad

Recently uploaded (20)

Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...
Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...
Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...
National Information Standards Organization (NISO)
 
Engage Donors Through Powerful Storytelling.pdf
Engage Donors Through Powerful Storytelling.pdfEngage Donors Through Powerful Storytelling.pdf
Engage Donors Through Powerful Storytelling.pdf
TechSoup
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
APM Midlands Region April 2025 Sacha Hind Circulated.pdf
APM Midlands Region April 2025 Sacha Hind Circulated.pdfAPM Midlands Region April 2025 Sacha Hind Circulated.pdf
APM Midlands Region April 2025 Sacha Hind Circulated.pdf
Association for Project Management
 
Grade 3 - English - Printable Worksheet (PDF Format)
Grade 3 - English - Printable Worksheet  (PDF Format)Grade 3 - English - Printable Worksheet  (PDF Format)
Grade 3 - English - Printable Worksheet (PDF Format)
Sritoma Majumder
 
Political History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptxPolitical History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
THE STG QUIZ GROUP D.pptx quiz by Ridip Hazarika
THE STG QUIZ GROUP D.pptx   quiz by Ridip HazarikaTHE STG QUIZ GROUP D.pptx   quiz by Ridip Hazarika
THE STG QUIZ GROUP D.pptx quiz by Ridip Hazarika
Ridip Hazarika
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Real GitHub Copilot Exam Dumps for Success
Real GitHub Copilot Exam Dumps for SuccessReal GitHub Copilot Exam Dumps for Success
Real GitHub Copilot Exam Dumps for Success
Mark Soia
 
"Basics of Heterocyclic Compounds and Their Naming Rules"
"Basics of Heterocyclic Compounds and Their Naming Rules""Basics of Heterocyclic Compounds and Their Naming Rules"
"Basics of Heterocyclic Compounds and Their Naming Rules"
rupalinirmalbpharm
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Kenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 CohortKenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 Cohort
EducationNC
 
Sugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptxSugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptx
Dr. Renu Jangid
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Engage Donors Through Powerful Storytelling.pdf
Engage Donors Through Powerful Storytelling.pdfEngage Donors Through Powerful Storytelling.pdf
Engage Donors Through Powerful Storytelling.pdf
TechSoup
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
Grade 3 - English - Printable Worksheet (PDF Format)
Grade 3 - English - Printable Worksheet  (PDF Format)Grade 3 - English - Printable Worksheet  (PDF Format)
Grade 3 - English - Printable Worksheet (PDF Format)
Sritoma Majumder
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
THE STG QUIZ GROUP D.pptx quiz by Ridip Hazarika
THE STG QUIZ GROUP D.pptx   quiz by Ridip HazarikaTHE STG QUIZ GROUP D.pptx   quiz by Ridip Hazarika
THE STG QUIZ GROUP D.pptx quiz by Ridip Hazarika
Ridip Hazarika
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Real GitHub Copilot Exam Dumps for Success
Real GitHub Copilot Exam Dumps for SuccessReal GitHub Copilot Exam Dumps for Success
Real GitHub Copilot Exam Dumps for Success
Mark Soia
 
"Basics of Heterocyclic Compounds and Their Naming Rules"
"Basics of Heterocyclic Compounds and Their Naming Rules""Basics of Heterocyclic Compounds and Their Naming Rules"
"Basics of Heterocyclic Compounds and Their Naming Rules"
rupalinirmalbpharm
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Kenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 CohortKenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 Cohort
EducationNC
 
Sugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptxSugar-Sensing Mechanism in plants....pptx
Sugar-Sensing Mechanism in plants....pptx
Dr. Renu Jangid
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Ad

Software Testing Strategies lecture .ppt

  • 1. 1  Software Testing Strategies Slide Set to accompany Software Engineering: A Practitioner’s Approach, 7/e by Roger S. Pressman Slides copyright © 1996, 2001, 2005, 2009 by Roger S. Pressman For non-profit educational use only May be reproduced ONLY for student use at the university level when used in conjunction with Software Engineering: A Practitioner's Approach, 7/e. Any other reproduction or use is prohibited without the express written permission of the author. All copyright information MUST appear if these slides are posted on a website for student use.
  • 2. 2 Software Testing Testing is the process of exercising a program with the specific intent of finding errors prior to delivery to the end user.
  • 3. 3 What Testing Shows errors errors requirements conformance requirements conformance performance performance an indication an indication of quality of quality
  • 4. 4 Strategic Approach  To perform effective testing, you should conduct effective technical reviews. By doing this, many errors will be eliminated before testing commences.  Testing begins at the component level and works "outward" toward the integration of the entire computer-based system.  Different testing techniques are appropriate for different software engineering approaches and at different points in time.  Testing is conducted by the developer of the software and (for large projects) an independent test group.  Testing and debugging are different activities, but debugging must be accommodated in any testing strategy.
  • 5. 5 V & V  Verification refers to the set of tasks that ensure that software correctly implements a specific function.  Validation refers to a different set of tasks that ensure that the software that has been built is traceable to customer requirements. Boehm [Boe81] states this another way:  Verification: "Are we building the product right?"  Validation: "Are we building the right product?"
  • 6. 6 Who Tests the Software? developer developer independent tester independent tester Understands the system Understands 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 it but, will attempt to break it and, is driven by quality and, is driven by quality
  • 7. 7 Testing Strategy System engineering Analysis modeling Design modeling Code generation Unit test Integration test Validation test System test
  • 8. 8 Testing Strategy  We begin by ‘testing-in-the-small’ and move toward ‘testing-in-the-large’  For conventional software  The module (component) is our initial focus  Integration of modules follows  For OO software  our focus when “testing in the small” changes from an individual module (the conventional view) to an OO class that encompasses attributes and operations and implies communication and collaboration
  • 9. 9 Strategic Issues  Specify product requirements in a quantifiable manner long before testing commences.  State testing objectives explicitly.  Understand the users of the software and develop a profile for each user category.  Develop a testing plan that emphasizes “rapid cycle testin g.”  Build “robust” software that is designed to test itself (re- route or cleanly terminate)  Use effective technical reviews as a filter prior to testing  Conduct technical reviews to assess the test strategy and test cases themselves.  Develop a continuous improvement approach for the testing process.
  • 10. 10 Unit Testing module module to be to be tested tested test cases test cases results results software software engineer engineer
  • 11. 11 Unit Testing interface interface local data structures local data structures boundary conditions boundary conditions independent paths independent paths error handling paths error handling paths module module to be to be tested tested test cases test cases
  • 12. 12 Unit Test Environment Module Module stub stub stub stub driver driver RESULTS RESULTS interface interface local data structures local data structures boundary conditions boundary conditions independent paths independent paths error handling paths error handling paths test cases test cases
  • 13. 13 Integration Testing Strategies Options: Options: • • the the “ “big bang big bang” ” approach (all at once) approach (all at once) • • an incremental construction strategy an incremental construction strategy
  • 14. 14 Top Down Integration top module is tested with top module is tested with stubs stubs stubs are replaced one at stubs are replaced one at a time, "depth first" a time, "depth first" as new modules are integrated, as new modules are integrated, some subset of tests is re-run some subset of tests is re-run A A B B C C D D E E F F G G
  • 15. 15 Bottom-Up Integration drivers are replaced one at a drivers are replaced one at a time, "depth first" time, "depth first" worker modules are grouped into worker modules are grouped into builds and integrated builds and integrated A A B B C C D D E E F F G G cluster cluster
  • 16. 16 Sandwich Testing Top modules are Top modules are tested with stubs tested with stubs Worker modules are grouped into Worker modules are grouped into builds and integrated builds and integrated A A B B C C D D E E F F G G cluster cluster
  • 17. 17 Regression Testing  Regression testing is the re-execution of some subset of tests that have already been conducted to ensure that changes have not propagated unintended side effects  Whenever software is corrected, some aspect of the software configuration (the program, its documentation, or the data that support it) is changed.  Regression testing helps to ensure that changes (due to testing or for other reasons) do not introduce unintended behavior or additional errors.  Regression testing may be conducted manually, by re- executing a subset of all test cases or using automated capture/playback tools.
  • 18. 18 Smoke Testing  A common approach for creating “daily builds” for product software  Smoke testing steps:  Software components that have been translated into code are integrated into a “build.” • A build includes all data files, libraries, reusable modules, and engineered components that are required to implement one or more product functions.  A series of tests is designed to expose errors that will keep the build from properly performing its function. • The intent should be to uncover “show stopper” errors that have the highest likelihood of throwing the software project behind schedule.  The build is integrated with other builds and the entire product (in its current form) is smoke tested daily. • The integration approach may be top down or bottom up.
  • 19. 19 Object-Oriented Testing  begins by evaluating the correctness and consistency of the analysis and design models  testing strategy changes  the concept of the ‘unit’ broadens due to encapsulation  integration focuses on classes and their execution across a ‘thread’ or in the context of a usage scenario  validation uses conventional black box methods  test case design draws on conventional methods, but also encompasses special features
  • 20. 20 OO Testing Strategy  class testing is the equivalent of unit testing  operations within the class are tested  the state behavior of the class is examined  integration applied three different strategies  thread-based testing—integrates the set of classes required to respond to one input or event  use-based testing—integrates the set of classes required to respond to one use case  cluster testing—integrates the set of classes required to demonstrate one collaboration
  • 21. 21 WebApp Testing - I  The content model for the WebApp is reviewed to uncover errors.  The interface model is reviewed to ensure that all use cases can be accommodated.  The design model for the WebApp is reviewed to uncover navigation errors.  The user interface is tested to uncover errors in presentation and/or navigation mechanics.  Each functional component is unit tested.
  • 22. 22 WebApp Testing - II  Navigation throughout the architecture is tested.  The WebApp is implemented in a variety of different environmental configurations and is tested for compatibility with each configuration.  Security tests are conducted in an attempt to exploit vulnerabilities in the WebApp or within its environment.  Performance tests are conducted.  The WebApp is tested by a controlled and monitored population of end-users. The results of their interaction with the system are evaluated for content and navigation errors, usability concerns, compatibility concerns, and WebApp reliability and performance.
  • 23. 23 High Order Testing: Complete System  Validation testing  Focus is on software requirements  System testing  Focus is on system integration  Alpha/Beta testing  Focus is on customer usage  Recovery testing  forces the software to fail in a variety of ways and verifies that recovery is properly performed  Security testing  verifies that protection mechanisms built into a system will, in fact, protect it from improper penetration  Stress testing  executes a system in a manner that demands resources in abnormal quantity, frequency, or volume  Performance Testing  test the run-time performance of software within the context of an integrated system
  • 26. 26 Debugging Effort time required time required to diagnose the to diagnose the symptom and symptom and determine the determine the cause cause time required time required to correct the error to correct the error and conduct and conduct regression tests regression tests
  • 27. 27 Symptoms & Causes symptom symptom cause cause symptom and cause may be symptom and cause may be geographically separated geographically separated symptom may disappear when symptom may disappear when another problem is fixed another problem is fixed cause may be due to a cause may be due to a combination of non-errors combination of non-errors cause may be due to a system cause may be due to a system or compiler error or compiler error cause may be due to cause may be due to assumptions that everyone assumptions that everyone believes believes symptom may be intermittent symptom may be intermittent
  • 28. 28 Consequences of Bugs damage mild annoying disturbing serious extreme catastrophic infectious Bug Type Bug Categories: Bug Categories: function-related bugs, function-related bugs,system-related bugs, data bugs, coding bugs, system-related bugs, data bugs, coding bugs, design bugs, documentation bugs, standards design bugs, documentation bugs, standards violations, etc. violations, etc.
  • 29. 29 Debugging Techniques brute force / testing backtracking induction deduction
  • 30. 30 Correcting the Error  Is the cause of the bug reproduced in another part of the program? In many situations, a program defect is caused by an erroneous pattern of logic that may be reproduced elsewhere.  What "next bug" might be introduced by the fix I'm about to make? Before the correction is made, the source code (or, better, the design) should be evaluated to assess coupling of logic and data structures.  What could we have done to prevent this bug in the first place? This question is the first step toward establishing a statistical software quality assurance approach. If you correct the process as well as the product, the bug will be removed from the current program and may be eliminated from all future programs.
  • 31. 31 Final Thoughts  Think -- before you act to correct  Use tools to gain additional insight  If you’re at an impasse, get help from someone else  Once you correct the bug, use regression testing to uncover any side effects

Editor's Notes