Decision testing is also called branch testing. It is test design technique for white box testing. The white box testing is performed by the developers using the development tools. The programs and interfaces between the programs are tested. The white box testing is also called structural testing. There are two types of white box testing techniques:
statement testing or statement coverage
decision testing or decision coverage
Decision Testing:
The decision testing is a process which checks the behaviour of the application by providing different combinations of input and obtains various results. It is also called as Branch Testing where the different types of inputs are supplied to check a particular condition.
Example 1:
To check if a number is greater than 50
algorithm:
int a
read a
if a > 50 then
print: a is greater than 50
end if
flowchart:
Refer to the above flowchart, there are two paths: TRUE & FALSE. As per decision testing, 100% decision coverage can be achieved when all the possible paths between start to end are covered. To cover the two possible paths below data sets can be considered for testing:
a = 60 (TRUE path) , a = 50 (FALSE path)
a = 60 (TRUE path) , a = 40 (FALSE path)
Check your understanding:
1. List down the different symbols used in flowchart & their purpose