Sequence diagrams A more useful approach, therefore, is to take all events (message departures and arrivals) in order, and compare them without using the exact time. This kind of comparison, although simple, still shows when two SDs are essentially identical. Because some messages can be “noise,” the comparison algorithm should also be able to decide whether a message is legitimate, and if not, mark it and continue with the comparison starting with the next message. The point in comparing two SDs is not to show when one sequence is identical to another, but rather where and why they are different. Therefore, yes/no answers are not sufficient.
Proper results must detail precisely what is identical and what is different. This is the approach that Rational Rhapsody takes when comparing message sequences. Comparing sequence diagrams Once you have saved two SDs illustrating the same scenario, for example, a specification and an execution version or two subsequent runs to test for regression, you are ready to start the sequence comparison. To start the comparison: 1. Select Tools > Sequence Diagram Compare . The Sequence Diagrams Comparison window opens, as shown in the following figure. 2. Using the SD1 and SD2 list controls, select two sequence diagrams to compare. 3. Set options for the sequence comparison as wanted.
See Sequence comparison options . 4. When all options are set and you are ready to start the comparison, click OK . 708 User Guide