4.5. Scenarios and Testing

The actual execution of a use case, with real data values, is called a scenario. (A scenario is also sometimes defined as an instance of a use case.) We formally define a scenario in Chapter 15: Domain Verification:

A scenario is the planned execution of a use case with ranges of values for signal parameters, initial states for state machine instances, and ranges of values for attributes of objects, so that there is only path through the model.

A scenario is therefore an excellent way to define a test case, but running the test depends on having values for attributes, states, and parameters. At this stage in a system's development, we can supply values for only one of the three: the parameters.

To define the test cases ...

Get Executable UML: A Foundation for Model-Driven Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.