Missing Verdict

Definition:

  • A test case does not set a verdict. Normally a test case should set a verdict before terminating.

Code Example:

testcase exampleTestCase ( ) runs on ExampleComponent {
  timer tguard;
  // . . .
  tguard.start(10.0);
  alt {
      [] pt.receive(aMessageOne) {
          tguard.stop;
          setverdict(pass);
          pt.send(aMessageTwo);
      }
      [] anyport.receive {
          repeat;
      }
      [] tguard.timeout {
          stop;
      }
  }
}

References:

Quality attributes

  • - Code Example

  • - Cause and Effect

  • - Frequency

  • - Refactoring