Book a Demo

Author Topic: Generate custom CSV file from Use Case model  (Read 4749 times)

quentin

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Generate custom CSV file from Use Case model
« on: July 18, 2012, 11:52:40 pm »
Hello,

I would like to generate a custom CSV file containing, all Use case scenario steps (like what I get in the HTML report on Use Cases).

For instance:

Use Case;Scenario Name;Scenario Step Seq;Scenario Step Name
Use Case1;Basic Path;1;step1
Use Case1;Basic Path;2;step2
Use Case1;Basic Path;3;step3
Use Case1;Basic Path;4;step4
Use Case1;alt path;1;Step2.1
Use Case1;alt path;2;Step2.2
Use Case1;alt path;3;Step2.3

Is it possible to do it with:
1° a standard feature (by configuring) of Enterprise Architect
2° do I need to make a custom template.

If the second is the solution, I am able to acces to the Use Cases attributes of the EA data model? Also, if this is the solution, could you give me some pointer to docs to help me writting such template.

Best regards
Quentin
« Last Edit: July 18, 2012, 11:52:57 pm by qdallons »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Generate custom CSV file from Use Case model
« Reply #1 on: July 19, 2012, 12:19:41 am »
AFAIK the csv export is only for elements. Scenario steps are something different. They are coded in an XML string as part of t_objectscenarios. So you need to write a script to select and parse the appropriate entries in order to get them out.

q.

quentin

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Generate custom CSV file from Use Case model
« Reply #2 on: July 19, 2012, 12:56:23 am »
@qwerty : do you have some good web resources or tutorials to help me building this script?

Kind regards
Quentin

adoo

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Generate custom CSV file from Use Case model
« Reply #3 on: July 19, 2012, 01:15:53 am »
there are some helpful example on the EA.Script Location!
e.g the CSV JScript.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Generate custom CSV file from Use Case model
« Reply #4 on: July 19, 2012, 05:10:34 am »
Of course I can recommend my book :-) See below.

q.