SlideShare a Scribd company logo
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

More Related Content

EquivalencePartition

  • 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