TestCase and Verify example - callout style

Gallery
Tutorial
A TestCase for verifying a Requirement can be an Operation or a Behavior (such as an Activity):
Click on the image to view it full size

The block SoundMeter has a «testCase» Operation testSoundLevel() : VerdictKind.

There is also a «testCase» Activity (with verbose name):

'Visit neighbours and ask whether they are really annoyed by the loud sound'.

An Activity Diagram could be used to elaborate on the steps for the test, such as: knocking on the door of your neighbour's flat; asking politely whether you can do a sound test; phoning your flat-mate (still in your flat) to ask them to crank the sound system up to 11; asking the neighbour whether they are really annoyed by the loud sound; recording the neighbour's response; leaving the neighbour's flat; giving the neighbour a six-pack of beer later as thanks afterwards etc.

For some situations one might prefer a Sequence Diagram to specify a «testCase» Interaction.
We see next how composite (a.k.a. compound) requirements work.
Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)