| || |
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 :
Re: classes & testcases
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!