SlideShare a Scribd company logo
Black-box Testing
2
Black-box Testing
‱ Complements white-box testing by uncovering different classes of
errors
‱ Focuses on the functional requirements and the information domain of
the software
‱ Used during the later stages of testing after white box testing has been
performed
‱ The tester identifies a set of input conditions that will fully exercise all
functional requirements for a program
‱ The test cases satisfy the following:
– Reduce, by a count greater than one, the number of additional test cases
that must be designed to achieve reasonable testing
– Tell us something about the presence or absence of classes of errors,
rather than an error associated only with the specific task at hand
3
Black-box Testing Categories
‱ Incorrect or missing functions
‱ Interface errors
‱ Errors in data structures or external data base access
‱ Behavior or performance errors
‱ Initialization and termination errors
4
Questions answered by
Black-box Testing
‱ How is functional validity tested?
‱ How are system behavior and performance tested?
‱ What classes of input will make good test cases?
‱ Is the system particularly sensitive to certain input values?
‱ How are the boundary values of a data class isolated?
‱ What data rates and data volume can the system tolerate?
‱ What effect will specific combinations of data have on system
operation?
Graph-based testing
ïź Begins by creating a
graph of important
objects and their
relationships and then
devising a series of
tests that will cover the
graph so that each
object and relationship
is exercised and errors
are uncovered.
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides
copyright 2009 by Roger Pressman. 5
new
file
menuselect generates
(generationtime  1.0sec)
document
window
document
tex
t
is representedas
contains
Attributes:
backgroundcolor: white
text color: default color
or preferences
(b)
object
#1
Directedlink
(link weight)
object
#2
object
#
3
Undirectedlink
Parallel links
Nodeweight
(value
)
(a)
allows editing
of
6
Equivalence Partitioning
‱ A black-box testing method that divides the input domain of a program
into classes of data from which test cases are derived
‱ An ideal test case single-handedly uncovers a complete class of errors,
thereby reducing the total number of test cases that must be developed
‱ Test case design is based on an evaluation of equivalence classes for
an input condition
‱ An equivalence class represents a set of valid or invalid states for input
conditions
‱ From each equivalence class, test cases are selected so that the largest
number of attributes of an equivalence class are exercise at once
7
Guidelines for Defining
Equivalence Classes
‱ If an input condition specifies a range, one valid and two invalid equivalence
classes are defined
– Input range: 1 – 10 Eq classes: {1..10}, {x < 1}, {x > 10}
‱ If an input condition requires a specific value, one valid and two invalid
equivalence classes are defined
– Input value: 250 Eq classes: {250}, {x < 250}, {x > 250}
‱ If an input condition specifies a member of a set, one valid and one invalid
equivalence class are defined
– Input set: {-2.5, 7.3, 8.4} Eq classes: {-2.5, 7.3, 8.4}, {any other x}
‱ If an input condition is a Boolean value, one valid and one invalid class are
define
– Input: {true condition} Eq classes: {true condition}, {false condition}

More Related Content

PPTX
Fundamentals of Software Engineering
PPTX
Fundamentals of Software Engineering
PPT
Fundamentals of Software Engineering
PPT
Fundamentals of Software Engineering
PPT
12 functional-system-testing
PPTX
Fundamentals of software part 1
PPTX
Object oriented testing
PPT
Testing strategies
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
12 functional-system-testing
Fundamentals of software part 1
Object oriented testing
Testing strategies

What's hot (20)

PPTX
System testing
PPT
System testing
PPTX
System testing
PPT
Chapter 14 software testing techniques
PPTX
Black box testing
PPTX
Equivalence class testing
PPT
Validation and verification
PPTX
Se (techniques for black box testing ppt)
PPT
Unit testing
PDF
Black Box Testing
PPTX
System testing
PPT
Unit 5 testing -software quality assurance
PPT
Black box and white box testing
PPTX
An Insight into the Black Box and White Box Software Testing
PPTX
Structural and functional testing
PPTX
Integration in component based technology
PPT
Software testing definition
PDF
Testcase Preparation Checklist
DOCX
System testing
PDF
Tc Checklist
System testing
System testing
System testing
Chapter 14 software testing techniques
Black box testing
Equivalence class testing
Validation and verification
Se (techniques for black box testing ppt)
Unit testing
Black Box Testing
System testing
Unit 5 testing -software quality assurance
Black box and white box testing
An Insight into the Black Box and White Box Software Testing
Structural and functional testing
Integration in component based technology
Software testing definition
Testcase Preparation Checklist
System testing
Tc Checklist
Ad

Similar to Fundamentals of Software Engineering (20)

PPTX
Unit2 for st
PPT
Dynamic analysis in Software Testing
PDF
black-box-1.pdf
PPT
PPTX
presentation_testing_1455044600_187410.pptx
 
PPT
CS8494 SOFTWARE ENGINEERING Unit-4
PPTX
Black Box Testing
PPTX
BlackBox Testing in detail with examples.pptx
PPTX
Unit 2 - Test Case Design
PPTX
Lavenya Testing.pptx
PPTX
5 black box and grey box testing
PPTX
Sorfware engineering presentation (software testing)
PPTX
Software Testing Foundations Part 4 - Black Box Testing
PPT
BLACK-BOX TESTING using boundart value analyse.ppt
PPT
1414_lecturueueueueuueueeueueueuusuee_7.ppt
PPTX
Black box software testing
PPT
&lt;p>Software Testing&lt;/p>
PPT
An overview to Software Testing
PPT
vu-sqa-lecture27 of Software quality assurance .ppt
PPTX
Blackbox
Unit2 for st
Dynamic analysis in Software Testing
black-box-1.pdf
presentation_testing_1455044600_187410.pptx
 
CS8494 SOFTWARE ENGINEERING Unit-4
Black Box Testing
BlackBox Testing in detail with examples.pptx
Unit 2 - Test Case Design
Lavenya Testing.pptx
5 black box and grey box testing
Sorfware engineering presentation (software testing)
Software Testing Foundations Part 4 - Black Box Testing
BLACK-BOX TESTING using boundart value analyse.ppt
1414_lecturueueueueuueueeueueueuusuee_7.ppt
Black box software testing
&lt;p>Software Testing&lt;/p>
An overview to Software Testing
vu-sqa-lecture27 of Software quality assurance .ppt
Blackbox
Ad

More from Madhar Khan Pathan (18)

PPT
Fundamentals of Software Engineering
PPT
Fundamentals of Software Engineering
PPT
Fundamentals of Software Engineering
PPT
Fundamentals of Software Engineering
PPTX
Fundamentals of Software Engineering
PPTX
Fundamentals of Software Engineering
PPT
Fundamentals of Software Engineering
PPTX
Fundamentals of Software Engineering
PPTX
Fundamentals of Software Engineering
PPTX
Fundamentals of Software Engineering
PPTX
Fundamentals of Software Engineering
PPTX
Fundamentals of Software Engineering
PPTX
Fundamentals of Software Engineering
PPTX
Generic process model
PPTX
Software Myths
PPTX
Introduction to Software Engineering
PPTX
Software applications and challenges
PPTX
Introduction to software
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Fundamentals of Software Engineering
Generic process model
Software Myths
Introduction to Software Engineering
Software applications and challenges
Introduction to software

Recently uploaded (20)

PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
history of c programming in notes for students .pptx
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Nekopoi APK 2025 free lastest update
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Transform Your Business with a Software ERP System
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
AI in Product Development-omnex systems
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Operating system designcfffgfgggggggvggggggggg
PPT
Introduction Database Management System for Course Database
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Wondershare Filmora 15 Crack With Activation Key [2025
PTS Company Brochure 2025 (1).pdf.......
history of c programming in notes for students .pptx
2025 Textile ERP Trends: SAP, Odoo & Oracle
Which alternative to Crystal Reports is best for small or large businesses.pdf
Nekopoi APK 2025 free lastest update
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Transform Your Business with a Software ERP System
How to Choose the Right IT Partner for Your Business in Malaysia
AI in Product Development-omnex systems
How to Migrate SBCGlobal Email to Yahoo Easily
Design an Analysis of Algorithms I-SECS-1021-03
Operating system designcfffgfgggggggvggggggggg
Introduction Database Management System for Course Database
ManageIQ - Sprint 268 Review - Slide Deck
Internet Downloader Manager (IDM) Crack 6.42 Build 41

Fundamentals of Software Engineering

  • 2. 2 Black-box Testing ‱ Complements white-box testing by uncovering different classes of errors ‱ Focuses on the functional requirements and the information domain of the software ‱ Used during the later stages of testing after white box testing has been performed ‱ The tester identifies a set of input conditions that will fully exercise all functional requirements for a program ‱ The test cases satisfy the following: – Reduce, by a count greater than one, the number of additional test cases that must be designed to achieve reasonable testing – Tell us something about the presence or absence of classes of errors, rather than an error associated only with the specific task at hand
  • 3. 3 Black-box Testing Categories ‱ Incorrect or missing functions ‱ Interface errors ‱ Errors in data structures or external data base access ‱ Behavior or performance errors ‱ Initialization and termination errors
  • 4. 4 Questions answered by Black-box Testing ‱ How is functional validity tested? ‱ How are system behavior and performance tested? ‱ What classes of input will make good test cases? ‱ Is the system particularly sensitive to certain input values? ‱ How are the boundary values of a data class isolated? ‱ What data rates and data volume can the system tolerate? ‱ What effect will specific combinations of data have on system operation?
  • 5. Graph-based testing ïź Begins by creating a graph of important objects and their relationships and then devising a series of tests that will cover the graph so that each object and relationship is exercised and errors are uncovered. These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman. 5 new file menuselect generates (generationtime  1.0sec) document window document tex t is representedas contains Attributes: backgroundcolor: white text color: default color or preferences (b) object #1 Directedlink (link weight) object #2 object # 3 Undirectedlink Parallel links Nodeweight (value ) (a) allows editing of
  • 6. 6 Equivalence Partitioning ‱ A black-box testing method that divides the input domain of a program into classes of data from which test cases are derived ‱ An ideal test case single-handedly uncovers a complete class of errors, thereby reducing the total number of test cases that must be developed ‱ Test case design is based on an evaluation of equivalence classes for an input condition ‱ An equivalence class represents a set of valid or invalid states for input conditions ‱ From each equivalence class, test cases are selected so that the largest number of attributes of an equivalence class are exercise at once
  • 7. 7 Guidelines for Defining Equivalence Classes ‱ If an input condition specifies a range, one valid and two invalid equivalence classes are defined – Input range: 1 – 10 Eq classes: {1..10}, {x < 1}, {x > 10} ‱ If an input condition requires a specific value, one valid and two invalid equivalence classes are defined – Input value: 250 Eq classes: {250}, {x < 250}, {x > 250} ‱ If an input condition specifies a member of a set, one valid and one invalid equivalence class are defined – Input set: {-2.5, 7.3, 8.4} Eq classes: {-2.5, 7.3, 8.4}, {any other x} ‱ If an input condition is a Boolean value, one valid and one invalid class are define – Input: {true condition} Eq classes: {true condition}, {false condition}