Test Adequacy Assessment Flashcards

1
Q

A criterion C is a ____ test adequacy criterion if the corresponding coverage domain Ce depends solely on requirements R for the program P under test

A

Black-box

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

A criterion C is a ____ test adequacy criterion if the corresponding coverage domain Ce depends solely on program P under test

A

White-box

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

Given that Ce has n >= 0 elements, we say that T ____ Ce if for each element e’ in Ce there is at least one test case in T that tests e’

A

Covers

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

T is considered ____ with respect to C if it covers all elements in the coverage domain

A

Adequate

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

T is considered ____ with respect to C if it covers k elements of Ce where k < n

A

Inadequate

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

The fraction k/n is known as the ____ of T with respect to C, P, and R

A

Coverage

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

In case the program contains a loop, then it is adequate to traverse the loop body zero times and once

A

Modified Path Coverage Criterion

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

An element of the coverage domain is ____ if it cannot be covered by any test in the input domain of the program under test

A

Infeasible

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

T/F An algorithm exists that would analyze a given program and determine if a given element in the coverage domain is infeasible or not

A

F, no such algorithm exists

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

T/F It is usually the tester who determines whether or not an element of the coverage domain is infeasible

A

T

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

T/F Feasibility can be demonstrated by executing the
program under test against a test case and showing
that the element under consideration is covered

A

T

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

T/F Infeasibility can be demonstrated by program

execution against a finite number of test cases

A

F, it cannot

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

T/F An attempt to enhance a test set by executing a test t aimed at covering element e of program P may fail

A

T

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

A ____ C is considered infeasible for predicate pr if there exists no input values for the variables in pr that satisfy C

A

Constraint

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

T/F Infeasibility is the same as reachability

A

F

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

In the presence of one or more infeasible elements in the coverage domain, a test is considered adequate when all ____ elements in the domain have been covered

A

Feasible

17
Q

Who is concerned with infeasible elements?

A

Testers

18
Q

T/F It is only during the attempt to construct a test case to cover an element that one may realize the infeasibility of an element

A

T

19
Q

T/F An adequate test set might will reveal even the most obvious error in a program

A

F, it might not

20
Q

T/F Test adequacy is not a complete answer to the question of whether our testing is good enough

A

T

21
Q

T/F A while loop has an indeterminate number of paths

A

T