Understanding ECP with the Example
Posted By : Himanshu Mendiratta | 12-Sep-2019
Introduction
Equivalence Class Partitioning
It is the software test design technique that we can use in the White-box testing as in the form of Unit testing
Also, we can use in the Black Box testing as in the form of System testing.
It is also known as ECP.
For performing the Equivalence class partitioning it divides the entire possible input range into the partitions.
We can apply this type of technique at all the levels of testing Eg:- Unit testing, Integration testing, System testing, Acceptance testing.
The idea behind the Equivalence class partitioning to test each partition once.
The input data that divide in the form of partition are considered to be the same.
The divided sets are the equivalent classes. Such type of partitions are equivalence class partitions.
Example
Figure:-Dates (1 to 31)
The above-mentioned figure related to the date field that presents in the Signup form in which there are 3 partitions are present 1 is the valid partition and other 2 one’s are the invalid partitions.
The main assumption of the equivalence class partitioning is if we take 1 input condition from each partition if that input condition that present in the partition is pass the other conditions that present in the partition also pass and that partition is a valid partition.
If you pick any value from the valid partition eg:-if we pick the value 5 or the other value that present in the partition the system accept that value then or all other values that partition will accept by the system.
If we take that input condition that gives the outcome fail the other input condition that present in the partition will fail. That partition is an invalid partition.
If you pick any value from the invalid partition eg:- if we pick any negative number or we pick the number that greater than 31 the system not accept that value and reject the value or all the other values present in the partition failed.
Conclusion
While performing the ECP the main advantage is that it will reduce the number of test cases.
While performing the ECP the probability of uncovering the defects are more.
Reference
www.softwaretestingmaterial.com
www.softwaretestinghelp.com
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Himanshu Mendiratta
Himanshu has 2 years of experienced in the manual and database testing. Apart from finding bugs from the application his hobbies are listening to music and sketching..