What is an equivalence class

Answers were Sorted based on User's Feedback



What is an equivalence class..

Answer / gayathri

Equivalence Class Testing is when you create sets of input
that have equivalent expected behavior. You do this until
all possible inputs show up in one of the groupings. Now
when you test one item from each of the inputs you should be
covering all the possible inputs in that grouping.

Some types of inputs lend themselves really well to this
type of testing – the first is a range of values. You break
it down into values within the valid range, invalid values
above the valid range and invalid values below the valid
range. Lets have an example to better illustrate what I am
trying to describe. We are going to test the
appointment-making part of the program. An appointment has
four fields:

1. Time
2. Day
3. Month
4. Year


Lets look at the month input field. Depending on how it is
implemented it could take valid values from 1-12 or it could
take the months in a string format. Lets look at the input
of values from 1-12 and what equivalence classes world be
necessary to test this input.

* valid range of 1-12
* invalid range below the valid range <1
* invalid range above the valid range >12


If the input was a string you would end up with two sets.
One that had the valid inputs in it and one that had every
thing else you could think to put in it.

So along with the month input you would also have a day,
year, and time input. The program is written in such a way
that they all have to be tested at the same time. So you
list all the groupings for all the other inputs fields and
test them at the same time. You will notice that you can
test most of the valid test cases at the same time, but you
will have to test the error cases one field at a time so you
can make sure the error is handled appropriately.

This kind of testing will allow you to keep the number of
test cases small, and you could use this type of testing at
any level of testing from unit all the way up to acceptance
testing. One of the limiting factors of this type of testing
is that it assumes identical behavior for all items in a
grouping. This is best suited to testing programs where
inputs are within ranges or values in sets

Is This Answer Correct ?    3 Yes 0 No

What is an equivalence class..

Answer / d.radhika

E.C.P is equivalence class Partision.
Its one of the Block box testingteschnique.
In this the data can be devided into two different classes.
those are
1.valid
2.invalid
ex for valid data:
for ex user enter name with alphabets and 4 to 16 chracters
long
Then it allows only alphabets and 4 to 16.then only cond.
is pass
ex for invalid test:
if user enter name field <4 then test fail
if user enter name field >16 then also test fail
if user enter name with special character like ,.?
*&@...test fail
all these are invalid data

Is This Answer Correct ?    1 Yes 0 No

What is an equivalence class..

Answer / bayana

EQC =equlience class particision, this is used to find the
defect in less time, by dividing
example in a login screen user ID accpect up 100 string ,if
we want to test every time we have to pass onstring and it
is time waste ,so we divide in to 10 parts and check

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Manual Testing Interview Questions

Can anyone give me a sample bug report, Iam right now taking training on Testing Tools.

5 Answers  


Who Prepare the Master Test Plan? Who Prepare the Test Plan?

1 Answers   Patni,


give an example for load testing

3 Answers  


How will you assign priorities to test cases?

4 Answers  


how does a client /server environment affects testing?

3 Answers   HCL,






wt is the difference between client and customer?

14 Answers   MTN,


What is Integration Testing?What is Bottom Up & Top Down Testing? What actually the Stub & Driver is? Explain me giving practical example?

3 Answers   IBM, MNC,


What are the limitations for testing?

4 Answers   Thatavarti Technologies,


What is Bugzilla? Can I used it manually, If yes then how can i used it? Can I used it in .NET Environment?

4 Answers  


How to test URl of a website manualy?

3 Answers   Oracle, Wipro,


1.What is configuration Management? 2. Explain Impact Analysis 3. Explain Peer Review 4. what i kickoff phase of Formal Review. 5. Whatv are the phases of fundamental test process. 6. what is state transition testing. 7. what is LCSAJ 8. Test conditions are derived from where?

0 Answers  


What is the bug life cycle? In which part u involved?

2 Answers   AMES Technology, Covansys, Sankhya Infotech,


Categories