Software testing Logic coverage

profileanu_pash
Logic_coverage21.docx

Answer the following questions for each predicate

1. P1 = ab

2. P2 = a ˄(¬b˅ c)

(b) Compute (and simplify) the conditions under which each of the clauses determines

predicateP1 and P2.

(c) Write the complete truth table for the predicate P1.

Truth table for P1

a

b

P

Pa =

Pb =

1

T

T

2

T

F

3

F

T

4

F

F

(d) Identify all pairs of rows from your table that satisfy General Active Clause Coverage (GACC) with respect to each clause.

(e) Identify all pairs of rows from your table that satisfy Correlated Active Clause

Coverage (CACC) with respect to each clause.

(f) Identify all pairs of rows from your table that satisfy Restricted Active Clause

Coverage (RACC) with respect to each clause.

(g) Identify all 4-tuples of rows from your table that satisfy General Inactive Clause

Coverage (GICC) with respect to each clause. Identify any infeasible GICC test

requirements.

(h) Identify all 4-tuples of rows from your table that satisfy Restricted Inactive Clause

Coverage (RICC) with respect to each clause. Identify any infeasible RICC test

Requirements

(j) Write the complete truth table for the predicate P2.

Truth table for P2

a

b

c

P

Pa =

Pb =

Pc =

1

T

T

T

2

T

T

F

3

T

F

T

4

T

F

F

5

F

T

T

6

F

T

F

7

F

F

T

8

F

F

F

(k) Identify all pairs of rows from your table that satisfy General Active Clause Coverage (GACC) with respect to each clause.

(l) Identify all pairs of rows from your table that satisfy Correlated Active Clause

Coverage (CACC) with respect to each clause.

(m) Identify all pairs of rows from your table that satisfy Restricted Active Clause

Coverage (RACC) with respect to each clause.

(n) Identify all 4-tuples of rows from your table that satisfy General Inactive Clause

Coverage (GICC) with respect to each clause. Identify any infeasible GICC test

requirements.

(o) Identify all 4-tuples of rows from your table that satisfy Restricted Inactive Clause

Coverage (RICC) with respect to each clause. Identify any infeasible RICC test

requirements.