Tuesday, 21 July 2015

TEST DESIGN TECHNIQES IN SOFTWARE TESTING TOOLS


Test design techniques:

Technique is something i.e., used for accomplishing a complex task in an easy manner.

Boundary value analysis and equivalence partitioning both are test case design strategies in black box testing.

‘Boundary value analysis’ testing technique is used to identify errors at boundaries rather than finding those exist in center of input domain.


Boundary value analysis


For the instance consider the 5 digit mob number which starts with 9, so the valid range can be from 90000 to 99999. Then by boundary value analysis we get 6 input
Data
 
1. Input less than lower boundary => 90000-1.
2. Input equals to the lower boundary => 90000.
3. Input greater than the lower boundary =>1 90000+1.
4. Input less than upper boundary => 99999-1.
5. Input equals to the upper boundary => 99999.
6. Input greater than the upper boundary => 99999+1.
 
 From the above test cases four test (2, 3, 4, and 5) cases will 
Pass the conditions and rest two (1, 6) will fail.

Equivalence class partition

In this method the input domain data is divided into different equivalence data classes. This method is typically used to reduce the total number of test cases to a finite set of testable test cases, still covering maximum requirements.


Consider a form field which asks for the age of a person.
Let the age should be >=18 and <=50.
This range can be divided into three classes.
 
==>> Values less than 18(invalid class)
==>> Values between 18-50(valid class)
==>> value greater than 50(invalid class)
 
We can see that there are two invalid and one valid class. It is not necessary that we have to use multiple values from each class. One value from each class is more than 
Enough.
 
Boundary Value Analysis
--------------------------
Consider the same scenario used above.
 
Here we can give the test inputs as follows
==>>lower limit+1 & lower limti-1(i.e. 17 & 19)
==>>lower & upper limits (i.e. 18 & 50)
==>>upper limit+1 & upper limit-1 (i.e. 49 & 51)
 
There will be six test inputs when we are using boundary Value analysis.





No comments:

Post a Comment