Professional Documents
Culture Documents
Essay
Statement Coverage: It verifies that each line of source code has been
executed and tested
Decision Coverage: It ensures that every decision in the source code
is executed and tested
Path Coverage: It ensures that every possible route through a given
part of the code is executed and tested
A simple, elegant and finite criterion that requires loops to be executed as well as
skipped
MCQ
1-How many test cases are necessary to cover all the possible
sequences of the statements(paths) for the Following program ?
Assume that two conditions are independent of each other
If(condition1)
Then statement 1
Else statement 2
If(condition2)
Then statement 3
a) 1 test Cases
b) 4 test Cases
c) 2 test Cases
d) 3 test Cases
a) A minimal test set that achieves 100% statement coverage will generally detect
more faults than one that achieves 100% branch coverage
b) A minimal test set that achieves 100% path coverage will also achieve 100%
statement coverage
c) A minimal test set that achieves 100% LCSAJ coverage will also achieve 100%
branch coverage
d) A minimal test set that achieves 100% path coverage will generally detect more
faults than one that achieve 100% statement coverage
Read q
IF p+q> 100
ENDIF
IF p > 50
ENDIF
True or False
(
1-Test Criterion are the Rules that define test requirements True )
2-Structural Coverage Criteria Requires a graph to be annotated with
references to variables(False)