Lately I been investigating the options Enterprise Architect offers to record Sequence Diagrams from code, because we want to learn for LieberLieber AMUSE.

And I found a pretty interesting result:

It only takes into account “Classes” and not “Instances”.

There is two links that proved helpful – a video tutorial from Sparx Systems and a Blog post from Tom Peplow.

 

Setting up works in a similar way than it does for NUnit – refer to this Posts for hints.

I used my very Simple Account Class from the NUnit sample.

image

Then I prepared a little runner that would record a Sequence Chart using Enterprise Architects Debugger.

image

The result I’m getting from Enterprise Architect looks like this:

clip_image002

It doesn’t take into account that I have two instances of the same class – I would have rather expected it to look like:

clip_image002[4]

What do you think? Is there value in a Sequence Diagram based on classes rather than on instances?