There are some techniques which is used for black box testing-
1. Equivalence Class Partitioning :
The concept of equivalence partitioning technique comes from equivalence class which in turn comes from equivalence relation. Equivalence class partitioning is a technique of software black box testing in which input data is divided into partitions of equivalent data that is valid and invalid values. This strategy is used to minimize the number of possible test cases while maintains reasonable test coverage.
Steps involves in this technique are:
- Divide any input domain into two sets that is valid values and invalid values.
- Test cases are developed :
- Assign unique identification number to each valid and invalid class of input.
- Write the test cases i.e. valid and invalid test cases.
2. Boundary Value Analysis:
Boundaries are the values near the range where the behavior of the system alters. As name defines, this technique focused on the boundaries because there is a higher chances of errors. So that if test cases are designed at the boundaries then the probability of finding errors increased. Boundary value analysis is a software testing technique in which test cases are designed at the boundaries and just below or above of the boundaries. In boundary value analysis strategy, the valid inputs and invalid inputs are being tested to verify the software. It only checks that the software is producing correct output or not.
For example- If we test a field and the range of the field is 1 to 100 then we select the boundary values: 0, 1, 2, 99, 100 and 101 instead of choosing all the values.
3. Cause Effect Graph :
Cause-effect graph is a software testing technique that involves specifying the causes (input conditions) and effects (output conditions) and producing a Cause-Effect Graph, and designed test cases. Causes are the input conditions and effects are the output conditions. The causes and effects are represented using Boolean graphs.
steps involved in this technique are :
- Specify causes and effects.
- Produce the cause effect graph.
- Convert the cause-effect graph into decision table.
- Convert decision table rules into the test cases.
4. Decision Table Testing :
Decision table testing is a software testing technique in which various input combinations and their system behavior are represented in a tabular form. A decision table places the causes (input conditions) and effects (output conditions) in a matrix. Each column represents unique combination.
As the name describes that, there are logical relationships like :
if(Condition = True){
then action 1 ;
}else{
action 2;
}
Then a tester will identify two outputs for two conditions so based on the probable scenarios a Decision table is created to design the test cases.