SlideShare una empresa de Scribd logo
1 de 16
Equivalence Partition
Hello!
I am Swornim
1.
What is Equivalence
Partition?
“Equivalence partitioning/
Equivalence Class Partitioning is a software
testing technique that divides the input data
of a software unit
into partitions of equivalent data from which
test cases can be derived. In which, test
cases are designed to cover each partition at
least once.
Literally
▧ It is a Software test design technique similar
to Boundary Value Analysis
▧ It is a black box technique*
▧ It can be applied to all levels of testing like
unit, integration, system, etc.
Advantages
1. Saves time in testing.
2. Allows to fin more defects tha inputing random values to
your code
3. It can be used in bot white box and black box testing
Equivalence
Partition
It is a Black Box Testing
Technique that divides the
input domain into classes of
data from which test cases
can be derived.
Diffefence between Equivalence Partition and
Boundary Value Analysis
Boundary Value
Analysis
This is also a Black Box
Testing Technique which
concentrates on the
Corner cases or the
boundaries of the input
domain rather than its
center.
Equivalence
Partition
If we want to test a field which
accepts values from 1 to 9, we
will write test cases with the
following test data.
1. Test case with test data less
than 1
2. Test case with test data
greater than 9
3. Test case with test data
between 1 and 9
Diffefence between Equivalence Partition and
Boundary Value Analysis
Boundary Value
Analysis
If we want to test a field from
1 to 9 boundary values will be
0,1,2,and 8,9,10
The left hand value is called
the lower boundary i.e 1 here
in this example and the Right
side value 9 is called the
Upper boundary and hence
the selection of values is
a. Upper boundaries +1,-1
b. Lower boundaries +1,-1
How??
How is Equivalence
Partitioning done ?
Process
Input a Range Divide Input
range to
partitions
Test each
partition once
Invalid
Partition
0
-1
-2
. . .
Valid Partiton
1
2
. . .
31
Invalid
Partition
32
33
. . .
Date (1-31)
1. The range is divided.
2. The system picks one value from
Invalid table and rejects it.
3. The system picks another value
from Valid table and accept it.
4. The system picks a new value from
invalid table and rejects it.
5. If one data is rejected the lot is
rejected.
Which is !!
Input range
Divide
into
partitions
Test
each
partition
CORE
Thanks!
Any questions?
github.com/nepalswornim/Equivalence-
Partition.git
Credits
Special thanks to
▧ Presentation template by SlidesCarnival
▧ www.guru99.com
▧ www.youtube.com/user/SoftwareTestingSp
ace
▧ Mr Mohan Maharjan

Más contenido relacionado

La actualidad más candente

3. Test Scenarios & Test Cases with Excel Sheet Format (1).pdf
3. Test Scenarios & Test Cases with Excel Sheet Format (1).pdf3. Test Scenarios & Test Cases with Excel Sheet Format (1).pdf
3. Test Scenarios & Test Cases with Excel Sheet Format (1).pdfsangeeta borde
 
Integration testing
Integration testingIntegration testing
Integration testingqueen jemila
 
Test Case, Use Case and Test Scenario
Test Case, Use Case and Test ScenarioTest Case, Use Case and Test Scenario
Test Case, Use Case and Test ScenarioLokesh Agrawal
 
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...priyasoundar
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testingYisal Khan
 
Software testability slide share
Software testability slide shareSoftware testability slide share
Software testability slide shareBeBo Technology
 
Equivalence partitioning
Equivalence partitioningEquivalence partitioning
Equivalence partitioningSarjana Muda
 
White Box Testing
White Box TestingWhite Box Testing
White Box TestingAlisha Roy
 
Software testing basic concepts
Software testing basic conceptsSoftware testing basic concepts
Software testing basic conceptsHưng Hoàng
 
Special value testing
Special value testingSpecial value testing
Special value testingBapi Das
 
A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]
A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]
A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]Khizra Sammad
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and TechniqueSachin-QA
 
Test case techniques
Test case techniquesTest case techniques
Test case techniquesPina Parmar
 

La actualidad más candente (20)

White box ppt
White box pptWhite box ppt
White box ppt
 
3. Test Scenarios & Test Cases with Excel Sheet Format (1).pdf
3. Test Scenarios & Test Cases with Excel Sheet Format (1).pdf3. Test Scenarios & Test Cases with Excel Sheet Format (1).pdf
3. Test Scenarios & Test Cases with Excel Sheet Format (1).pdf
 
Integration testing
Integration testingIntegration testing
Integration testing
 
Test Case, Use Case and Test Scenario
Test Case, Use Case and Test ScenarioTest Case, Use Case and Test Scenario
Test Case, Use Case and Test Scenario
 
Test cases
Test casesTest cases
Test cases
 
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testing
 
Integration test
Integration testIntegration test
Integration test
 
Software testability slide share
Software testability slide shareSoftware testability slide share
Software testability slide share
 
Equivalence partitioning
Equivalence partitioningEquivalence partitioning
Equivalence partitioning
 
Black box and white box testing
Black box and white box testingBlack box and white box testing
Black box and white box testing
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
 
Software testing basic concepts
Software testing basic conceptsSoftware testing basic concepts
Software testing basic concepts
 
Testing
TestingTesting
Testing
 
Special value testing
Special value testingSpecial value testing
Special value testing
 
Types of testing
Types of testingTypes of testing
Types of testing
 
A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]
A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]
A PRACTITIONER'S GUIDE TO SOFTWARE TEST DESIGN [Summary]
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and Technique
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 

Destacado

Software configuration items
Software configuration itemsSoftware configuration items
Software configuration itemsashok kumar
 
Boundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningBoundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningSneha Singh
 
Black box testing (an introduction to)
Black box testing (an introduction to)Black box testing (an introduction to)
Black box testing (an introduction to)Henry Muccini
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration ManagementArunnima B S
 
Software configuration management
Software configuration managementSoftware configuration management
Software configuration managementfizamustanser
 
Structural testing
Structural testingStructural testing
Structural testingSlideshare
 
Structural and functional testing
Structural and functional testingStructural and functional testing
Structural and functional testingHimanshu
 
Boundary and equivalnce systematic test design
Boundary and equivalnce   systematic test designBoundary and equivalnce   systematic test design
Boundary and equivalnce systematic test designIan McDonald
 
Decision table
Decision tableDecision table
Decision tablejeebala
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Managementelliando dias
 
Aims, goals and objectives
Aims, goals and objectivesAims, goals and objectives
Aims, goals and objectivesMohamed Benhima
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing TechniquesKiran Kumar
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Managementguy_davis
 
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Ryan Tran
 

Destacado (20)

Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Software configuration items
Software configuration itemsSoftware configuration items
Software configuration items
 
Boundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningBoundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioning
 
Black box testing (an introduction to)
Black box testing (an introduction to)Black box testing (an introduction to)
Black box testing (an introduction to)
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Management
 
Software configuration management
Software configuration managementSoftware configuration management
Software configuration management
 
Black box software testing
Black box software testingBlack box software testing
Black box software testing
 
The importance of quality software
The importance of quality softwareThe importance of quality software
The importance of quality software
 
Structural testing
Structural testingStructural testing
Structural testing
 
Structural and functional testing
Structural and functional testingStructural and functional testing
Structural and functional testing
 
Boundary and equivalnce systematic test design
Boundary and equivalnce   systematic test designBoundary and equivalnce   systematic test design
Boundary and equivalnce systematic test design
 
Decision table
Decision tableDecision table
Decision table
 
Code coverage
Code coverageCode coverage
Code coverage
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Management
 
Aims, goals and objectives
Aims, goals and objectivesAims, goals and objectives
Aims, goals and objectives
 
Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Ch8.testing
Ch8.testingCh8.testing
Ch8.testing
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Management
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
 

Similar a Equivalence Partitioning Explained

Similar a Equivalence Partitioning Explained (20)

Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
SE 09 (test design techs).pptx
SE 09 (test design techs).pptxSE 09 (test design techs).pptx
SE 09 (test design techs).pptx
 
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptx
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptxEquivalence-Partition-Testing-Notes-17122022-083818pm.pptx
Equivalence-Partition-Testing-Notes-17122022-083818pm.pptx
 
Unit testing
Unit testingUnit testing
Unit testing
 
black-box-1.pdf
black-box-1.pdfblack-box-1.pdf
black-box-1.pdf
 
Dynamic analysis in Software Testing
Dynamic analysis in Software TestingDynamic analysis in Software Testing
Dynamic analysis in Software Testing
 
SE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptxSE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptx
 
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptxBoundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
Boundary Value Analysis & Equivalence Partitioning with Examples (1) (2).pptx
 
CTFL Module 04
CTFL Module 04CTFL Module 04
CTFL Module 04
 
Lesson 2....PPT 1
Lesson 2....PPT 1Lesson 2....PPT 1
Lesson 2....PPT 1
 
Fundamentals of Software Engineering
Fundamentals of Software Engineering Fundamentals of Software Engineering
Fundamentals of Software Engineering
 
prova4
prova4prova4
prova4
 
provalast
provalastprovalast
provalast
 
test3
test3test3
test3
 
test2
test2test2
test2
 
provoora
provooraprovoora
provoora
 
prova3
prova3prova3
prova3
 
stasera1
stasera1stasera1
stasera1
 
provarealw2
provarealw2provarealw2
provarealw2
 
prova5
prova5prova5
prova5
 

Equivalence Partitioning Explained

  • 4. “Equivalence partitioning/ Equivalence Class Partitioning is a software testing technique that divides the input data of a software unit into partitions of equivalent data from which test cases can be derived. In which, test cases are designed to cover each partition at least once.
  • 5. Literally ▧ It is a Software test design technique similar to Boundary Value Analysis ▧ It is a black box technique* ▧ It can be applied to all levels of testing like unit, integration, system, etc.
  • 6. Advantages 1. Saves time in testing. 2. Allows to fin more defects tha inputing random values to your code 3. It can be used in bot white box and black box testing
  • 7. Equivalence Partition It is a Black Box Testing Technique that divides the input domain into classes of data from which test cases can be derived. Diffefence between Equivalence Partition and Boundary Value Analysis Boundary Value Analysis This is also a Black Box Testing Technique which concentrates on the Corner cases or the boundaries of the input domain rather than its center.
  • 8. Equivalence Partition If we want to test a field which accepts values from 1 to 9, we will write test cases with the following test data. 1. Test case with test data less than 1 2. Test case with test data greater than 9 3. Test case with test data between 1 and 9 Diffefence between Equivalence Partition and Boundary Value Analysis Boundary Value Analysis If we want to test a field from 1 to 9 boundary values will be 0,1,2,and 8,9,10 The left hand value is called the lower boundary i.e 1 here in this example and the Right side value 9 is called the Upper boundary and hence the selection of values is a. Upper boundaries +1,-1 b. Lower boundaries +1,-1
  • 10. Process Input a Range Divide Input range to partitions Test each partition once
  • 11. Invalid Partition 0 -1 -2 . . . Valid Partiton 1 2 . . . 31 Invalid Partition 32 33 . . . Date (1-31)
  • 12. 1. The range is divided. 2. The system picks one value from Invalid table and rejects it. 3. The system picks another value from Valid table and accept it. 4. The system picks a new value from invalid table and rejects it. 5. If one data is rejected the lot is rejected.
  • 13. Which is !! Input range Divide into partitions Test each partition
  • 14. CORE
  • 16. Credits Special thanks to ▧ Presentation template by SlidesCarnival ▧ www.guru99.com ▧ www.youtube.com/user/SoftwareTestingSp ace ▧ Mr Mohan Maharjan