Tool Mentor: Model Verification with Rhapsody
This tool mentor describes how to verify the model in Rhapsody®.
Relationships
Main Description

A model is verified and validated through model execution on the basis of the captured use case scenarios. The correctness and completeness analysis is based on the visual inspection of the model behavior.

Rhapsody provides two ways to visualize model behavior:

  • Visualization of the state-based behavior through animation of respective Statecharts and
  • Visualization of message sequences by means of automatically generated sequence diagrams.

The analysis via sequence diagrams is supported by the Rhapsody Sequence Diagram Compare feature. This feature enables to perform comparisons between two sequence diagrams, e.g. one capturing the sequence of a required scenario and the other showing the recorded scenario. The differences between the diagrams are shown color-coded. This feature may also be used to compare two runs for regression testing.



Arrow Color
Name Color
Description
Green Blue Msg matches in both SD
Pink Pink Msg is missing in the other SD
Green Pink Msg has different arguments in the other SD
Orange Orange Msg arrives at a different time in the other SD
Gray Gray Msg was excluded from comparison


Sequence Diagram Compare Color Code


Animated Statechart Diagram

Animated Statechart Diagram (Uc1_ControlEntryCtrl)