# Thread: classes & testcases

1. ## classes & testcases

hi, would appreciate if anyone would answer my questions..
1. what is the different between equivalance classes & testcases?
2. what is test case :
boundary
stress

thanx ..

2. ## Re: classes & testcases

Equivalence partitioning
==========================
The input domain is usually too large for exhaustive testing.
It is therefore partitioned into a finite number of sub-domains for the selection of test inputs.
Each sub-domain is known as an equivalence class and serves as a source of at least one test input.

Suppose that program P takes an input X, X being an integer.
For X<0 the program is required to perform task T1 and for X>=0 task T2.
Boundary Value Analysis
=========================
Another way to generate test cases is to look for boundary values.
Suppose a program takes an integer X as input.
In the absence of any information, we assume that X=0 is a boundary. Inputs to the program might lie on the boundary or on either side of the boundary.

This leads to 3 test inputs:
X=0, X=-20, and X=14.
Note that the values -20 and 14 are on either side of the boundary and are chosen arbitrarily.
Notice that using BVA we get 3 equivalence classes. One of these three classes contains only one value (X=0), the other two are large!

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

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:00 PM.