Reconciling retries and duplicate harness records

A test harness plans eight cases with identifiers A through H. Retries and duplicate message delivery can produce several records for one case. The harness processes the records below in row order.


An accepted record is the first record for a planned case that satisfies all three requirements: setup succeeded, an output comparison was produced, and cleanup succeeded. The reporting rules are:

  • Discard records for identifiers outside A through H.
  • Discard records that do not satisfy all three requirements. Such a record does not prevent a later record for that case from being accepted.
  • After accepting a record for a case, discard every later record for that case.
  • An accepted match counts as one passed case; an accepted mismatch counts as one failed case.

Here, match and mismatch describe the returned output compared with the expected output. Not run means that stage did not execute.


Record

Case

Setup

Output comparison

Cleanup

1

A

Succeeded

Match

Succeeded

2

B

Succeeded

Mismatch

Succeeded

3

C

Succeeded

Match

Failed

4

D

Succeeded

Match

Succeeded

5

B

Succeeded

Match

Succeeded

6

X

Succeeded

Match

Succeeded

7

C

Succeeded

Mismatch

Succeeded

8

E

Failed

Not run

Not run

9

F

Succeeded

Match

Succeeded

10

H

Succeeded

Match

Succeeded

11

A

Succeeded

Mismatch

Succeeded

12

E

Succeeded

Match

Succeeded


Find the numbers of passed planned cases, failed planned cases, discarded records, and planned cases with no accepted record. Enter each count as an exact integer.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Test Harnesses Questions: