Unit I Introduction SW Testing
Unit I Introduction SW Testing
1. if (x > 0)
2. {
3. a = a + b;
4. }
5. if (y>10)
6. {
7. c=c+d;
8. }
• The possible paths are: ACE, ABCE, ACDE and
ABCDE
• However, if we choose x = 9 and y = 15, all
statements are covered. Hence only one test
case is sufficient for 100% statement coverage
by traversing only one path ABCDE. Therefore,
100% statement coverage may not be
sufficient.
SOME TERMINOLOGIES
inter-related and confusing but commonly used in the area of software testing.