[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


...equivalence partitioning?

<< Back to general questions

Question by Garry
Submitted on 6/1/2004
Related FAQ: N/A
Rating: Rate this question: Vote
What is equivalence partitioning?


Answer by krishna
Submitted on 7/13/2004
Rating:  Rate this answer: Vote
Dividing the input domain of the data into class of intervals from which the test cases can be derived

 

Answer by MVSREDDY
Submitted on 9/24/2004
Rating: Not yet rated Rate this answer: Vote
Equivalence partitioning is a black-box testing method is one, which divides the input domain of a program into classes of data and derives test cases based on these partitions.

Test case design for equivalence partitioning is based on an evaluation of equivalence classes for an input domain.

An equivalence class represents a set of valid or invalid states for input condition.


Ø   A Specific numeric value, a range of values.
Ø   A set of related values, or Boolean conditions.


 

Answer by Scott
Submitted on 4/25/2005
Rating: Not yet rated Rate this answer: Vote
P=(D1...Dn)
Each input in a partition is 'categorized'. Testing one input of a partition should be as good as testing any member of a partition.

 

Answer by Manikandan sridharan
Submitted on 7/22/2005
Rating: Not yet rated Rate this answer: Vote
A software testing technique that involves identifying a small set of values that invoke as many as input conditions as possible

 

Answer by Navdeep Singh
Submitted on 8/6/2005
Rating: Not yet rated Rate this answer: Vote
Dividing the input domain in numbers of classes ..mainly three.i.e
POSITIVE
NEGATIVE
ZEROS
and it helps in making test cases easier.
testing members of one class is same as testing other members of same class.

 

Answer by Nithya Jayachandran
Submitted on 8/31/2005
Rating: Not yet rated Rate this answer: Vote
Equivalence partitioning is a Black Box Testing technique.This is done by dividing the input domain of the program into classes that have a similar effect on the program.These classes are termed as equivalence classes.

The idea is to
* identify and test one member of each partition to gain a good coverage with less number of test cases
*Testing one member of a partition is as good as testing the entire set of values in the partition

For example if the input domain has a range of values say 1...10,then we require 3 equivalence classes

1)One Valid Class {1,..10}
2)Two Invalid classes {x|x<1} and {x|x>10}



 

Answer by Mida
Submitted on 9/5/2005
Rating: Not yet rated Rate this answer: Vote
(1) recognizing your input category
(2) partitioning them in such a way that testing an input value from one partition would cause the system to react in one way, and using an input value from other partition would cause the system to react in another way.

example:
for a window containing many form, equivalence partition might be:

1. all valid input
reaction: successfull operation

2. mandatory field length 0
reaction: error message about mandatory field should not be left blank.
( this can be further partitioned into each field length)

3. alphabetic input for numerical field
reaction: error message about invalid format entered. Example: entering a name for a phone number field.

etc...

depending on the application, EQC derived will be different. Consult your requirement document.

 

Answer by Gudge
Submitted on 9/7/2005
Rating: Not yet rated Rate this answer: Vote
Data can be separated into sections (partitions) and then a representative portion of the data can be tested giving good coverage of the data without actually testing all of the  data in the section. This saves time and provides adequate code coverage of software.

 

Answer by aneela mehwish khan
Submitted on 10/8/2005
Rating: Not yet rated Rate this answer: Vote
a software technique that involves identifying a small set of representative input values that invoke as many different input conditions as possible.
  for example
  consider data maintained as part of an automated banking application .the user can "dial" the bank using his or her personal computer,provide a six digit password,and follow with a series of keyword commands that trigger various banking functions.the software supplied for the banking application accepts data in the form:
*area code-blank or three digit number.
*prefix-three digit number not beginning with 0 or 1.
*suffix-four digit number.
*password-six digit alphanumeric values.
*commands-"check","deposit","bill pay", etc

 

Answer by aneela mehwish khan
Submitted on 10/8/2005
Rating: Not yet rated Rate this answer: Vote
a software technique that involves identifying a small set of representative input values that invoke as many different input conditions as possible.
  for example
  consider data maintained as part of an automated banking application .the user can "dial" the bank using his or her personal computer,provide a six digit password,and follow with a series of keyword commands that trigger various banking functions.the software supplied for the banking application accepts data in the form:
*area code-blank or three digit number.
*prefix-three digit number not beginning with 0 or 1.
*suffix-four digit number.
*password-six digit alphanumeric values.
*commands-"check","deposit","bill pay", etc

 

Answer by Muralidhar A Kulkarni
Submitted on 11/17/2005
Rating: Not yet rated Rate this answer: Vote
Dividing the input domain of the data into valid and invalid data classes from which the test cases can be derived is known as equivalence partitioning

 

Answer by pc
Submitted on 2/10/2006
Rating: Not yet rated Rate this answer: Vote
Input data for a program unit usually falls into a number of partitions.

e.g. all negative integers, zero, all positive numbers.

Each partition of input data makes the program behave in a similar way.

Two test cases based on members from the same partition is likely to reveal the same bugs

 

Answer by Ashwini
Submitted on 4/24/2006
Rating: Not yet rated Rate this answer: Vote
Equivalence Partitioning is a black box method that divides the input domain of a program into classes of data from which test cases can be derived.

 

Answer by ky
Submitted on 7/17/2006
Rating: Not yet rated Rate this answer: Vote
Equivalence partitioning
From Wikipedia, the free encyclopedia
Jump to: navigation, search
To meet Wikipedia'squality standards, this article or section may require cleanup.
Please discuss this issue on the talk page, and/or replace this tag with a more specific message. Editing help is available. This article has been tagged since July 2006.




Equivalence partitioning is a software testing related technique with the goal:

To reduce the number of test cases to a necessary minimum.
To select the right test cases to cover all possible scenarios.
Although in rare cases equivalence partitioning is also applied to outputs of a software component, typically it is applied to the inputs of a tested component. The equivalence partitions are usually derived from the specification of the component's behaviour. An input has certain ranges which are valid and other ranges which are invalid. This may be best explained at the following example of a function which has the pass parameter "month" of a date. The valid range for the month is 1 to 12, standing for January to December. This valid range is called a partition. In this example there are two further partitions of invalid ranges. The first invalid partition would be <= 0 and the second invalid partition would be >= 13.

        ... -2 -1  0 1 .............. 12 13  14  15 .....
      --------------|-------------------|---------------------
invalid partion 1     valid partition    invalid partition 2
The testing theory related to equivalence partitioning says that only one test case of each partition is needed to evaluate the behaviour of the program for the related partition. In other words it is sufficient to select one test case out of each partition to check the behaviour of the program. To use more or even all test cases of a partition will not find new faults in the program. The values within one partition are considered to be "equivalent". Thus the number of test cases can be reduced considerably.

An additional effect by applying this technique is that you also find the so called "dirty" test cases. An unexperienced tester may be tempted to use as test cases the input data 1 to 12 for the month and forget to select some out of the invalid partitions. This would lead to a huge number of unnecessary test cases on the one hand, and a lack of test cases for the dirty ranges on the other hand.

The tendency is to relate equivalence partitioning to the so called black box testing which is strictly checking a software component at its interface, without consideration of internal structures of the software. But having a closer look on the subject there are cases where it applies to the white box testing as well. Imagine an interface to a component which has a valid range between 1 and 12 like in the example above. However internally the function may have a differentiation of values between 1 and 6 and the values between 7 and 12. Depending on the input value the software internally will run through different paths to perform slightly different actions. Regarding the input and output interfaces to the component this difference will not be noticed, however in your white-box testing you would like to make sure that both paths are examined. To achieve this it is necessary to introduce additional equivalence partitions which would not be needed for black-box testing. For this example this would be:

        ... -2 -1  0 1 ..... 6 7 ..... 12 13  14  15 .....
      --------------|---------|----------|---------------------
invalid partion 1      P1         P2     invalid partition 2
                       valid partitions

To check for the expected results you would need to evaluate some internal intermediate values rather than the output interface.

Equivalence partitioning is no stand alone method to determine test cases. It has to be supplemented by boundary value analysis. Having determined the partitions of possible inputs the method of boundary value analysis has to be applied to select the most effective test cases out of these partitions.

Retrieved from "http://en.wikipedia.org/wiki/Equivalence_partitioning"

 

Answer by vijivishali
Submitted on 10/13/2006
Rating: Not yet rated Rate this answer: Vote
A technique of black box testing. Equivalence
partitioning is basically applied for the testdata. Divide the Test data in groups called Equivalent Classes. Each Class is the Set of input condition that handles the application in the similar way.
Main goal of this technique is to reduce the number of substeps in the testcase and also to cover all possible scenarios

 

Answer by uday
Submitted on 11/3/2006
Rating: Not yet rated Rate this answer: Vote
WHAT IS EQUIVALENCE PARTITIONING?
Concepts:   Equivalence partitioning is a method for deriving test cases.  In this
method, classes of input conditions  called equivalence classes  are
identified such that each member of the class causes the same kind of
processing and output to occur.
In this method, the tester identifies various equivalence classes for partitioning.  A class
is a set of input conditions that are is likely to be handled the same way
by the system.  If the system were to handle one case in the class
erroneously, it would handle all cases erroneously.

 

Answer by Achint Mishra
Submitted on 12/24/2006
Rating: Not yet rated Rate this answer: Vote
Input data for a program unit usually falls into a number of partitions.e.g. all negative integers, zero, all positive numbers.Each partition of input data makes the program behave in a similar way.Two test cases based on members from the same partition is likely to reveal the same bugs.By identifying and testing one member of each partition we gain a 'good' coverage with 'small' number of test cases.Testing one member of a partition should be as good as testing any member of the partition. Equivalence partitioning is a software testing related technique with the goal:

To reduce the number of test cases to a necessary minimum.
To select the right test cases to cover all possible scenarios.

 

Answer by P. Anand
Submitted on 3/9/2007
Rating: Not yet rated Rate this answer: Vote
Equivalence partition is a method of deriving test cases. This will reduce the test cases drastically.
1. Identify the equivalence classes
2. Derive test cases
Equivalence classes are input conditions such that each member of the class causes the same kind of processing and output.
One is valid input class
Two invalid input classes
Sometimes one input class


 

Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to general questions


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.