{"id":8931,"date":"2021-03-16T15:56:10","date_gmt":"2021-03-16T10:26:10","guid":{"rendered":"https:\/\/www.h2kinfosys.com\/blog\/?p=8931"},"modified":"2021-03-16T17:00:31","modified_gmt":"2021-03-16T11:30:31","slug":"equivalence-partition-test-design","status":"publish","type":"post","link":"https:\/\/www.h2kinfosys.com\/blog\/equivalence-partition-test-design\/","title":{"rendered":"Equivalence Partition Test Design"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>What is Equivalence Partition Test Design?<\/strong><\/h2>\n\n\n\n<p><strong><\/strong>Equivalence partitioning also called as equivalence class partitioning. It is also called as ECP. It is a software testing design technique that divides the input test data of the software under test into different partitions. Each partition is a set of similar data elements, and one test data value from each partition represents the whole partition. A minimum of equivalent data from which test cases can be derived.<\/p>\n\n\n\n<p>An advantage of this approach is it reduces the time required for performing testing of software for less number of test cases.<\/p>\n\n\n\n<p>For example,<\/p>\n\n\n\n<p>The below example best describes the equivalence class partitioning:<\/p>\n\n\n\n<p>Assume that the application accepts an integer in the range 200 to 999.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Valid Equivalence class partition: 200 to 999 inclusive.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>In-valid equivalence class partition: less than 200, more than 999, decimal numbers and alphabets\/non-numeric characters.<\/li><\/ul>\n\n\n\n<p>Equivalence Partition test is also known as <a href=\"https:\/\/www.h2kinfosys.com\/blog\/equivalence-partition-test-design\/\" class=\"rank-math-link\">Equivalence partitioning<\/a> which is an important software testing technique used by the team of testers for the partitioning of the input data, which is then used for the aim of testing the software package into a variety of classes. These different classes resemble the required requirements and customary behavior of the aggregated inputs. Therefore the tests are designed and created based on each class attribute and one element or input.<\/p>\n\n\n\n<p>&nbsp;The following guidelines for equivalence partitioning:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If the condition in range is given as input, then one valid and we have two invalid equivalences classes are defined.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>If a specific value is given as input, then one valid and two invalid equivalence classes are defined.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>If a member of a group is given as an input then one valid and one invalid equivalence class is defined.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>If Boolean number is given as an input condition then one valid and invalid equivalence class is defined.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/d_6rZmYRyN7iS1zISxxwcugt0zCLd7guV5YGqtLp-MGabcdKzy-h25RWzMRWphoYyS43dUCmp49r790ZaSpMUKjPR3OFCwjP11QiCKmpIOA8n6hEZQproY_3kTtVP-mS-xJidzA\" alt=\"Lightbox\" title=\"\"><\/figure><\/div>\n\n\n\n<p>For example:<\/p>\n\n\n\n<p>We shall consider an example of any college admission process. Consider a college that gives the admissions to students based upon their percentage.<\/p>\n\n\n\n<p>Consider the percentage field which will accept percentage between 50% to 90%. More and even less than range will be not be accepted and application will automatically redirect the user to error page. If the percentage entered is between 50% to 90% then equivalence partitioning method will show valid percentage.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/mh2SUew-DbeYm3yr7ETu-b68qpNMvNYzO8tkAvrBm57F425XQGkXjj0BQZvIC2bQsNm2Az-OBjC3ITYQ8M8OatdmRIeZyvNFrqiehV0u3ztu3aviHf13WAnj3NUGYXlD-edKOC0\" alt=\"https:\/\/media.geeksforgeeks.org\/wp-content\/uploads\/20200619154049\/Untitled454.png\" title=\"\"><\/figure>\n\n\n\n<p>Equivalence partitioning is also called equivalence class partitioning. In this partitioning the inputs to the software or system are divided into groups that are expected to exhibit similar behaviour, so they are likely to be proposed in the same way.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to design test case in this testing?<\/strong><\/h2>\n\n\n\n<p>Consider a mobile number which has 10 digits<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Valid input digits are 10\nInvalid input 9 to 11 digits\nValid class: Enter 10 digit mobile number = 4406565401\nInvalid class Enter mobile which has less than 10 digits = 614344210\nInvalid class more than 11 digits are = 51365421012<\/pre>\n\n\n\n<p>When <a href=\"https:\/\/en.wikipedia.org\/wiki\/Test_design\" class=\"rank-math-link\" rel=\"nofollow noopener\" target=\"_blank\">designing test cases <\/a>for the software, we can make sure that the three valid equivalence partitions are covered and we would also test the invalid equivalence partition at least once. For example, we may choose to calculate the interest balances of -$10.00, $50.00, $260.00 and $1348.00. If we did not identify the partitions, it is possible that at least one of them could have been missed at the expense of testing another one several times. Similarly, we can apply equivalence partitioning to outputs as well. In this case, we have three interests rate: 3%, 5% and 7% plus the error. The output partitions line up exactly with the input partitions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Equivalence Partition Test Design? Equivalence partitioning also called as equivalence class partitioning. It is also called as ECP. It is a software testing design technique that divides the input test data of the software under test into different partitions. Each partition is a set of similar data elements, and one test data value [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8949,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-8931","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qa-tutorials"],"_links":{"self":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/8931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/comments?post=8931"}],"version-history":[{"count":0,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/8931\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media\/8949"}],"wp:attachment":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media?parent=8931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/categories?post=8931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/tags?post=8931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}