How to automatically generate Sequence diagram for NUnit project using Sparx Enterprise Architect - nunit

Hi How do we Autogenerate Sequence diagrams using Enterprise architect software? I have gone through article http://blog.lieberlieber.com/2012/03/13/tutorial-nunit-and-sequence-diagram-recording-in-enterprise-architect-9-3/ but in that blog, its not shown how to generate diagrams using NUnit project. He has mentioned that we could do using nUnit, but its not explained how to do. Also is there any way to generate same diagrams using SpecFlow project?
Thanks in advance.

Sparx EA uses debug symbol output to identify sequences of calls between in-memory objects and build a sequence diagram, e.g. from the call stack. To leverage this you need to attach EA into a process that is emitting debug symbols (in a similar way to how you might attach an IDE into a process to debug it) and use the EA 'debug' tools to add breakpoints, step through lines and so on. How you get hold of these tools depends on the version of EA that you're using (ribbon, menus etc often get changed between versions), but somewhere you will find the Debugger window. From there just follow your nose.

Related

How do you create a Reports diagram in Enterprise Architect?

I am trying to create a Reports diagram with a model document and report specification in Enterprise Architect. The embarrassing part of this is that I've done this before, but can't work out how I did it. And I didn't take notes which I probably should do since this is something like a once every 2 years task for me.
In an older EA project, I have model document w/ custom templates in a reports diagram that will generate a data dictionary. Works great and I want that same thing for an EA project for a different, unrelated project.
But I can seem to figure out the first step, which is that Reports Diagram.
I am using version EA 13.0.1307.
Make sure you have the required MDG technology active.
You need the Core Extentions MDG to be able to create documentation diagrams
Create a Documentation Diagram
When creating a new diagram select Extented from the left pane, and Documentation from the right pane
Now the toolbox should show the elements you need to create your virtual document.

Changing between the generated diagrams txtUML

I am trying to generate multiple class and state machine diagrams using txtUML software in Eclipse. After adding multiple txtUML diagram descriptions-(see picture1) in order to generate them, it seems everything is going fine.
My problem is that after everything is finished successfully (see picture2) I just see one of the diagrams and I can not see the other diagram.
I am using :
MacBook Pro - Mac OS Sierra version 10.12 (16A323)
Eclipse IDE for Java Developers Version: Mars.2 Release (4.5.2)
After adding multiple txtUML diagram descriptions-(see picture1) in order to generate them, it seems everything is going fine.
If there was no error message during the generation of diagrams then indeed, the diagrams were generated without issues.
As to your issue, you can switch the diagrams from the panel right below your current diagram. I have highlighted the panel I am talking about in your image.
There are three tabs in the panel in the image you provided and it corresponds to the three diagrams you were generating.

Eclipse modeling

I search for tool that can generate code from UML diagram for Eclipse. The tool should generate code from UML diagram, reverse engeneering to see code changes, and merge option to prevent the deletion of the file for any change.
Is there tool that do that, or is it too much to ask?
If you like Eclipse based tools, I could recommend the free Uml to Java generator from Obeo, which may be downloaded from the Marketplace:
Help -> Eclipse Marketplace...
However, I think that it doesn´t completely fit your needs, since I believe that it doesn´t provide reverse engineering facilities. Also note that they use Acceleo for code generation, which is the reference OMG specification implementation.

Using ant and netbeans how can I generate a UML diagram

We are trying to include the generation of an UML diagram on build via a task in ant.
So far I can't seem to find an easy way to do this and everything seem to point to eclipse.
We are using NetBeans 7.1.
Any pointers on this ?
Which UML diagrams do you want to generate? If you want to generate the class and sequence diagrams for a use case, MaintainJ is an option.
If you have JUnit test cases for your application, you can generate the class and sequence diagrams for every test case. Check this demo video.
You should probably view this demo video to get an overview of MaintainJ.
Once you understand how to generate the diagrams for every JUnit test case, it is quite easy to integrate it with Ant script. This way, for every new build, you could run all the test cases and generate the UML diagrams for all the test cases.
I am the author of MaintainJ, by the way.
I think this is not a question about the IDE you're using when you want to do this with ant. You have to find a ant plugin/task that can generate graphics out of your class hierarchy.
I only now plugins generating code out of UML diagramms but not the other way round, but a solution for you could be to develop your own ant task maby using ImageMagick to generate the diagramm.

How to generate code by Papyrus on Eclipse?

I install Papyrus at here. So how to generate code using Papyrus ?
To generate the java code from UML you can follow the below steps.
New Project->EMF Project Press Next
give the project name
In Model Importer page select UML model and press Next
Select UML model which is created by using Papyrus.Press next
In Package selection page select all the root packages
click finish, it will generate genmodel.
Use the genmodel to generate Java code.
I hope this information helps.
In order to generate any text artifacts from UML models in the Eclipse Modelling Environment (i.e. Papyrus, TopCased, etc.) you should use Acceleo which is an eclipse implementation of the MOF models to text transformation language, the OMG standard language for models to text transformations.
It is a very well made technology but it could take some time to become familiar with it especially if you do not know MOF and the Model Driven Architecture.
QVT is another OMG language but its aim is models to models transformations (not models to text). It is therefore not the right answer to your question.
These can help you.
Papyrus Tutorials
Papyrus is an Eclipse lugin for modeling, you need to use additional Eclipse plugin to do model transformations. In the other answer you can find link to tutorials. First of them indicates you should use QVTo.
Resources:
http://wiki.eclipse.org/M2M/Operational_QVT_Language_%28QVTO%29
http://www.eclipse.org/m2m/qvto/doc
http://www.eclipse.org/modeling/m2m/downloads/index.php?project=qvtoml
To generate code from a UML diagram created with Papyrus must create a run configuration for Papyrus.
More information and a demo video at the following links.
http://www.papyrusuml.org/scripts/home/publigen/content/templates/show.asp?P=140&L=EN
http://www.papyrusuml.org/home/liblocal/docs/Documentation/Java-Code-Gen/Papyrus-GenJava-GenerateCode.swf
You need to install Papyrus Java Classes Generator.
Help --> install new software
work with : http://download.eclipse.org/modeling/mdt/papyrus/updates/releases/mars
Check group items by category
Check show only the latest version of available software
Check Papyrus Java
Next --> accept terms and conditions
finish
Now, in your model.di : right click on your class --> Java --> Generate java code.
And you're done !
It doesn't work with Java because even if you get a code from a class diagram then this code is so dirty that it is totally unusable.
It seems that this tool has been written by modelers who have never done any java codding :-)