Slides 20 - Control Flow Based Glass Box Testing Flashcards

1
Q

Test coverage

A

Degree, expressed as a percentage, to which specified test coverage items have been exercised by a test case or test case suite

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Control flow diagram

A

Diagram that depicts the set of all possible sequences in which operations can be performed during the execution of a system or program
(Diagramm, das die Menge aller möglichen Sequenzen darstellt, in denen Operationen während der Ausführung eines Systems oder Programms ausgeführt werden können)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Control flow based coverage

A

● Statement coverage
● Branch coverage
● Decision coverage
● Path coverage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does Branch coverage demands?

A

Branch coverage demands that every edge (branch) of the CFG is executed by at least once.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Variants of Condition Coverage

A

● Basic Condition Coverage

● Branch and Condition Coverage

● Modified Condition Decision Coverage

● Compound Condition Coverage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Branch Coverage Guarantees

A

● complete branch coverage

● basic condition coverage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Compound Condition Coverage

A

Compound condition coverage requires the test of all possible combinations of basic conditions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Path Coverage

A

Path coverage requires that every path in the control flow graph of a program is exercised by a test case.

  • Full path coverage is not feasible!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Practical criterion for Path Coverage

A

● limiting the number of traversals of loops

● avoids the path explosion caused by loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Approaches to Path Coverage

A

● Path coverage

● Structured path coverage

● Boundary-interior coverage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly