SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Black-Box Testing


Topics covered:
–
–
–
–
–
–
–

What is dynamic black-box testing?
How to reduce the number of test cases by equivalence
partitioning
How to identify troublesome boundary conditions
Good data values to use to induce bugs
How to test software states and state transitions
How to use repetition, stress, and high loads to locate bugs
A few secret places where bugs hide
Dynamic Black-Box Testing: Testing the
Software While Blindfolded







Testing software without having an insight into the
details of underlying code is dynamic black-box
testing
It's dynamic because the program is running you're
using it as a customer would.
And, it's black-box because you're testing it without
knowing exactly how it works with blinders on.
Entering inputs, receiving outputs, and checking the
results.
name commonly used for dynamic black-box testing
is behavioral testing.
Dynamic Black-Box Testing: Testing the
Software While Blindfolded (cont..)


To do this effectively requires some definition of:
–
–
–





what the software does namely
a requirements document or
product specification.

A good product spec will provide you with these details.
Next step is to start defining the test cases.
Test cases are the specific inputs that you'll try and
the procedures that you'll follow when you test the
software.
Example of Test Case
USE EXPLORATORY TESTING IF YOU DON'T
HAVE A SPEC





A professional, mature software development process
will have a detailed specification for the software
If you are stuck in code-and-fix model, you may not
have a software spec to base your tests on.
That's not an ideal situation for a software tester
Can use a workable solution known as exploratory
testing:
–
–
–

simultaneously learning the software
designing tests and
executing those tests.
USE EXPLORATORY TESTING IF YOU DON'T
HAVE A SPEC (Cont..)








Need to treat the software as the specification
Methodically explore the software feature by feature.
Take notes on what the software does
Map out the features, and
Apply some of the static black-box techniques
Analyze the software as though it is the specification
In this situation, finding any bugs would be a positive
thing
Test-to-Pass and Test-to-Fail

 There

are two fundamental approaches to
testing software:
–
–

test-to-pass and
test-to-fail
Test-to-Pass and Test-to-Fail (Cont..)
 Test-to-pass,

you really assure only that the
software minimally works.
 Don't push its capabilities
 Apply the simplest and most straightforward
test cases.
 When designing and running your test cases,
always run the test-to-pass cases first.
Test-to-Pass and Test-to-Fail (Cont..)
 After

assurance that the software does what it's
specified to do in ordinary circumstances
 It's time to put on attempt to find bugs by trying
things that should force them out.
 Designing and running test cases with the sole
purpose of breaking the software is called
testing-to-fail or error-forcing.
Equivalence Partitioning
 Selecting

test cases is the single most
important task that software testers do.
 Equivalence partitioning is the process of
methodically reducing the huge (infinite) set of
possible test cases into a much smaller, but
still equally effective set.
 Equivalence partitioning, sometimes called
equivalence classing
Equivalence Partitioning (cont..)


Calculator example
–
–



When looking for equivalence partitions, think about
ways to group:
–
–
–



It's impossible to test all the cases of adding two numbers
together.
Equivalence partitioning provides a systematic means for
selecting the values that matter and ignoring the ones that
don't.

similar inputs
similar outputs
and similar operation of the software.

These groups are your equivalence partitions.
Equivalence Partitioning (cont..)








An equivalence class or equivalence partition is a set
of test cases that tests the same thing or reveals the
same bug
What is the difference between 1+999999.. and 1+13?
In the case of 1+13, it looks like a standard simple
addition, a lot like 1+5 or 1+392.
1+999... is way out there, on the edge.
Enter the largest possible number and then add 1 to it,
something bad might happen possibly a bug.
Example of Equivalence Partitions
•
•
•

Windows filename can contain any characters except / : * ?
" < > |.
Filenames can have from 1 to 255 characters.
Creating test cases for filenames:
• Will have equivalence partitions for valid characters,
invalid characters, valid length names, names that are
too short and names that are too long.
Equivalence Partitioning (cont..)









The goal of equivalence partitioning is to reduce the set
of possible test cases into a smaller, manageable set
that still adequately tests the software.
taking on risk because choosing not to test everything
need to be careful how you choose your classes
If you're new to testing, always get someone with more
experience to review your proposed classes.
Equivalence partitioning can be subjective
Two testers who test a complex program may arrive at
two different sets of partitions
That's okay as long as the partitions are reviewed
Black box testing

More Related Content

PPTX
Software testing.ppt
PPTX
Regression testing
PPT
Testing concepts ppt
PDF
INTEGRATION TESTING
PPTX
Software testing
PPTX
Software Quality Assurance
PPT
Black box and white box testing
PPTX
Types of testing
Software testing.ppt
Regression testing
Testing concepts ppt
INTEGRATION TESTING
Software testing
Software Quality Assurance
Black box and white box testing
Types of testing

What's hot (20)

PPTX
Software testing ppt
PPTX
functional testing
PPT
ISTQB / ISEB Foundation Exam Practice - 2
PPTX
DOC
Manual Testing Notes
PPTX
White Box Testing
PPT
Software Testing 101
PPT
Software Testing Process
PPTX
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
PPT
PPTX
Software quality assurance
PPTX
Software Test Metrics and Measurements
PPTX
Software testing regression testing
PDF
Software testing
PPTX
Fundamentals of Testing
PPT
Software quality
PDF
What is Regression Testing? | Edureka
PPT
Software Testing Fundamentals
PPT
Software Testing
PPTX
White box & black box testing
Software testing ppt
functional testing
ISTQB / ISEB Foundation Exam Practice - 2
Manual Testing Notes
White Box Testing
Software Testing 101
Software Testing Process
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software quality assurance
Software Test Metrics and Measurements
Software testing regression testing
Software testing
Fundamentals of Testing
Software quality
What is Regression Testing? | Edureka
Software Testing Fundamentals
Software Testing
White box & black box testing
Ad

Viewers also liked (8)

PPTX
Boundary value analysis and equivalence partitioning
PPT
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
PPT
Black Box Testing
PPTX
Software Testing Foundations Part 4 - Black Box Testing
PPTX
Sorfware engineering presentation (software testing)
PDF
Equivalence partitioning
PPTX
Equivalence partinioning and boundary value analysis
PPS
Testing techniques
Boundary value analysis and equivalence partitioning
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
Sorfware engineering presentation (software testing)
Equivalence partitioning
Equivalence partinioning and boundary value analysis
Testing techniques
Ad

Similar to Black box testing (20)

PPT
Black box testing lecture 11
PDF
black-box-1.pdf
PPTX
Unit 2 - Test Case Design
PPTX
Black Box Testing
PPTX
Fundamentals of Software Engineering
PPTX
SE%200-Testing%20(2).pptx
PPTX
Sta unit 3(abimanyu)
PPTX
Sta unit 3(abimanyu)
PPTX
Black box software testing
PPTX
BlackBox Testing in detail with examples.pptx
PPTX
Software Testing strategies, their types and Levels
PPT
Defect Testing in Software Engineering SE20
PPS
Boundary and equivalnce systematic test design
PPTX
Lec 17.pptx
PDF
Implementing Blackbox Testing
PPTX
presentation_testing_1455044600_187410.pptx
ODP
Black boxtesting
PPT
Test Techniques
Black box testing lecture 11
black-box-1.pdf
Unit 2 - Test Case Design
Black Box Testing
Fundamentals of Software Engineering
SE%200-Testing%20(2).pptx
Sta unit 3(abimanyu)
Sta unit 3(abimanyu)
Black box software testing
BlackBox Testing in detail with examples.pptx
Software Testing strategies, their types and Levels
Defect Testing in Software Engineering SE20
Boundary and equivalnce systematic test design
Lec 17.pptx
Implementing Blackbox Testing
presentation_testing_1455044600_187410.pptx
Black boxtesting
Test Techniques

More from Abdul Basit (20)

PDF
Atlassian git cheatsheet
PDF
Github git-cheat-sheet
PPT
White box testing
PPT
Web testing
PPT
Testing the documentation
PPT
Testing software security
PPT
Testing fundamentals
PPT
Test planning
PPT
Test cases planning
PPT
Software Testing
PPT
Software Compatibility testing
PPT
Software Automated testing and tools
PPT
Why test software
PDF
Git Developer Cheatsheet
PPT
Static white box testing lecture 12
PPT
Software testing lecture 10
PPT
Software testing lecture 9
PPT
Software quality assurance lecture 1
PPT
Software measurement lecture 7
PPT
Planning for software quality assurance lecture 6
Atlassian git cheatsheet
Github git-cheat-sheet
White box testing
Web testing
Testing the documentation
Testing software security
Testing fundamentals
Test planning
Test cases planning
Software Testing
Software Compatibility testing
Software Automated testing and tools
Why test software
Git Developer Cheatsheet
Static white box testing lecture 12
Software testing lecture 10
Software testing lecture 9
Software quality assurance lecture 1
Software measurement lecture 7
Planning for software quality assurance lecture 6

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Insiders guide to clinical Medicine.pdf
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
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Classroom Observation Tools for Teachers
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Business Ethics Teaching Materials for college
PDF
Complications of Minimal Access Surgery at WLH
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Institutional Correction lecture only . . .
PDF
Basic Mud Logging Guide for educational purpose
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Insiders guide to clinical Medicine.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 Đ...
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Cell Types and Its function , kingdom of life
Week 4 Term 3 Study Techniques revisited.pptx
Supply Chain Operations Speaking Notes -ICLT Program
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Classroom Observation Tools for Teachers
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Business Ethics Teaching Materials for college
Complications of Minimal Access Surgery at WLH
human mycosis Human fungal infections are called human mycosis..pptx
PPH.pptx obstetrics and gynecology in nursing
Institutional Correction lecture only . . .
Basic Mud Logging Guide for educational purpose
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf

Black box testing

  • 1. Black-Box Testing  Topics covered: – – – – – – – What is dynamic black-box testing? How to reduce the number of test cases by equivalence partitioning How to identify troublesome boundary conditions Good data values to use to induce bugs How to test software states and state transitions How to use repetition, stress, and high loads to locate bugs A few secret places where bugs hide
  • 2. Dynamic Black-Box Testing: Testing the Software While Blindfolded      Testing software without having an insight into the details of underlying code is dynamic black-box testing It's dynamic because the program is running you're using it as a customer would. And, it's black-box because you're testing it without knowing exactly how it works with blinders on. Entering inputs, receiving outputs, and checking the results. name commonly used for dynamic black-box testing is behavioral testing.
  • 3. Dynamic Black-Box Testing: Testing the Software While Blindfolded (cont..)  To do this effectively requires some definition of: – – –    what the software does namely a requirements document or product specification. A good product spec will provide you with these details. Next step is to start defining the test cases. Test cases are the specific inputs that you'll try and the procedures that you'll follow when you test the software.
  • 5. USE EXPLORATORY TESTING IF YOU DON'T HAVE A SPEC     A professional, mature software development process will have a detailed specification for the software If you are stuck in code-and-fix model, you may not have a software spec to base your tests on. That's not an ideal situation for a software tester Can use a workable solution known as exploratory testing: – – – simultaneously learning the software designing tests and executing those tests.
  • 6. USE EXPLORATORY TESTING IF YOU DON'T HAVE A SPEC (Cont..)        Need to treat the software as the specification Methodically explore the software feature by feature. Take notes on what the software does Map out the features, and Apply some of the static black-box techniques Analyze the software as though it is the specification In this situation, finding any bugs would be a positive thing
  • 7. Test-to-Pass and Test-to-Fail  There are two fundamental approaches to testing software: – – test-to-pass and test-to-fail
  • 8. Test-to-Pass and Test-to-Fail (Cont..)  Test-to-pass, you really assure only that the software minimally works.  Don't push its capabilities  Apply the simplest and most straightforward test cases.  When designing and running your test cases, always run the test-to-pass cases first.
  • 9. Test-to-Pass and Test-to-Fail (Cont..)  After assurance that the software does what it's specified to do in ordinary circumstances  It's time to put on attempt to find bugs by trying things that should force them out.  Designing and running test cases with the sole purpose of breaking the software is called testing-to-fail or error-forcing.
  • 10. Equivalence Partitioning  Selecting test cases is the single most important task that software testers do.  Equivalence partitioning is the process of methodically reducing the huge (infinite) set of possible test cases into a much smaller, but still equally effective set.  Equivalence partitioning, sometimes called equivalence classing
  • 11. Equivalence Partitioning (cont..)  Calculator example – –  When looking for equivalence partitions, think about ways to group: – – –  It's impossible to test all the cases of adding two numbers together. Equivalence partitioning provides a systematic means for selecting the values that matter and ignoring the ones that don't. similar inputs similar outputs and similar operation of the software. These groups are your equivalence partitions.
  • 12. Equivalence Partitioning (cont..)      An equivalence class or equivalence partition is a set of test cases that tests the same thing or reveals the same bug What is the difference between 1+999999.. and 1+13? In the case of 1+13, it looks like a standard simple addition, a lot like 1+5 or 1+392. 1+999... is way out there, on the edge. Enter the largest possible number and then add 1 to it, something bad might happen possibly a bug.
  • 13. Example of Equivalence Partitions • • • Windows filename can contain any characters except / : * ? " < > |. Filenames can have from 1 to 255 characters. Creating test cases for filenames: • Will have equivalence partitions for valid characters, invalid characters, valid length names, names that are too short and names that are too long.
  • 14. Equivalence Partitioning (cont..)        The goal of equivalence partitioning is to reduce the set of possible test cases into a smaller, manageable set that still adequately tests the software. taking on risk because choosing not to test everything need to be careful how you choose your classes If you're new to testing, always get someone with more experience to review your proposed classes. Equivalence partitioning can be subjective Two testers who test a complex program may arrive at two different sets of partitions That's okay as long as the partitions are reviewed