Recording Sequence Diagrams with EA is a powerful feature, nevertheless it takes some time to figure out how to do it. This Article is not a full tutorial but it should help you to get started. This content was originally posted on our blog.
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 are two links that proved helpful – a video tutorial from Sparx Systems and a Blog post from Tom Peplow.
Setup is similar to what is required for NUnit – refer to this Post for hints.
I used my very Simple Account Class from the NUnit sample.

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

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

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

The feature is usable but you have to be careful when interpreting the results EA is showing to you.
This article contains content available for registered members only. You need to be logged in to view/download this content.