QuestionQ1

VerifiedTest Analysis and Test Design

You are designing test cases from the following state-transition diagram.

Question Image

So far, the only test case designed is:

TC1: start, model, error, error, ready, model, switch, switch, switch, switch.

You use the ROUND TRIP coverage approach. What round-trip coverage is achieved by this test case?

Explanation

Round-trip coverage requires testing every elementary loop from each possible start/end state, without repeating an intermediate state. There are 10 round trips. The executed sequence covers three: the Repair self-loop, Primary→Backup→Primary, and Backup→Primary→Backup. The other loops are not completed as contiguous elementary loops, so the achieved coverage is 3/10, or 30%.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!