Book a Demo

Author Topic: Generate scenario from the manually created diag  (Read 3929 times)

pha

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Generate scenario from the manually created diag
« on: February 25, 2013, 12:22:45 am »
Hello!

Is there any way to solve problem with creating use case scenario or test case (EA generates TC from UC scenario into note) from the manually created activity diagrams?
Maybe someone tried to create TC scenarios by iterating activity diagrams? :)
« Last Edit: February 25, 2013, 12:28:43 am by 666999 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Generate scenario from the manually created di
« Reply #1 on: February 25, 2013, 12:32:52 am »
IIRC you can only create diagrams from scenarios, not vice versa. This sounds reasonable as a diagram can contain invalid scenarios/elements which will like drive any parser mad.

q.

pha

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Generate scenario from the manually created di
« Reply #2 on: February 25, 2013, 12:55:20 am »
But EA can reverse generated from scenario Activity Diagrams.

Is there some trick to replace generated diagrams with own activity diag? :)

There is another idea: maybe can i simulate manually created diagram and write sequence of steps for example into local file? Is there API method to simulate my diagrams?

IAT

pha

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Generate scenario from the manually created di
« Reply #3 on: February 26, 2013, 07:06:47 am »
any ideas?

Gary

  • EA User
  • **
  • Posts: 84
  • Karma: +1/-0
    • View Profile
Re: Generate scenario from the manually created di
« Reply #4 on: February 27, 2013, 12:59:49 am »
Underneath to Use Case that you want to import the activity diagram to :
1) Create an activity element.
2) Create a tagged value called diagramType with a value of ActivityGraph on the activity element from step 1.
3) Place your previously created activity diagram as a child of the activity element created in step 1.
4) Open the scenario tab of the Use Case
5) Right click the first step and select Create Structure From Generated Activity Diagram
6) Navigate to the activity element created in step 1.

Decisions can cause problems so make sure that the alternate flows from the descision have guards and if they end the use case go to a Flow Final.
If your alternate links back to the ActivityFinal, when you import the diagram a step is created in the alternate called ActivityFinal. If you then update the Use Case and regenerate the diagram an activity is created called ActivityFinal which then flows to a Flow Final which is not what you wanted.

Hope this helps

Gary