Thanks:  0
Likes:  0
Dislikes:  0

1. ## Equivalence Classes

what is an equivalence classes testing.Please provide an easy example to guide me.

2. ## Re: Equivalence Classes

Hello Ananya!

Here is the defenition for ECP:
Partitioning the input domain of a program into a finite number of classes [sets], to identify a minimal set of well selected test cases to represent these classes. There are two types of input equivalence classes, valid and invalid.

Equivalence Class Testing
Partition test cases into classes such that:

(i)Every possible input belongs to one of the classes
(ii) No input belongs to two different classes
(iii) If we demonstrate a fault in the code for a given input, we should demonstrate a fault with any other input from the same class (with a high probability)
(iv) Classes are identified by looking at boundary values for the variables of the application.

Hope it helps. If you require more info on this, i have some pdf's which may be of some use to you. Tell me if you need any.

Regards,
FC.

3. ## Re: Equivalence Classes

Ananya:

Here's a practical example.

Let's say a bank charges for a checking account at various levels. Minors (ages 0 to 17) are charged \$3 a month. Seniors (ages 65 +) are free. Everyone else is \$6 a month.

There would be 4 equivalence classes. First class = 0 to 17 years. Second class = 18 to 64 years. Third class = 65 and up. Fourth class is negative ages (don't forget the invalid classes when doing partitioning).

Equivalence classes become useful when used in conjunction with boundary analysis and testing. All the interesting stuff happens at the edges, or boundaries, of the classes. So in this case, I would choose to test ages 17, 18, 64, 65, 0 and -1 (if possible to generate that age). Theoretically, this should be sufficient to prove that all other members of the classes will work.

4. ## Re: Equivalence Classes

Hi,

hope it would help u.
http://www.qaforums.com/cgi-bin/foru...=000978#000003

---------------

5. ## Re: Equivalence Classes

thanks Fulgid_Crony for your help on this topic.
i was wondering whether you can send me the pdf's to acquire more info in this.

6. ## Re: Equivalence Classes

Originally posted by Ananya:
i was wondering whether you can send me the pdf's to acquire more info in this.
<font size="2" face="Verdana, Arial, Helvetica">But i too wonder how can i send you those with out knowing ur mail id.... [img]images/icons/smile.gif[/img] Pl give ur e-mail id so that i can send it across.

7. ## Re: Equivalence Classes

HI
Fulgid_Crony

I just forgot.. [img]images/icons/smile.gif[/img]
here's my email id:

........................
navyseal_agni@yahoo.com

8. ## Re: Equivalence Classes

Thank you all for answering my query.

I like to bother you guys one more time.

1)can ECP can be used for a set of drop down values ?
2)i am creating test cases and was wondering whether can i used ECP in set of functions that has been implemneted in different module. i mean a sets of function producing the same output when used with different module.

regards,
ananya

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.