Author Topic: How to generate test cases from  activity diagram?  (Read 2366 times)

govind

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
How to generate test cases from  activity diagram?
« on: March 13, 2015, 04:46:17 pm »
Hi,

   1. I created a Use case diagram.
   2. For the above use case I created a activity diagram manually.
   3. Then I right click the use case and select the properties option
   4. Then I selected the Scenarios tab and selected the Structured     Specification tab.
   5.Right-click in the empty space within the tab  and selected the Create Structure From Generated Activity Diagram from context menu option.
   6.New pop window launched containing folder structure  hierarchy as

     Model
        Use Case Model
           Actors
           Primary Use Cases

     Here Actors and Primary use Cases folders are empty and henceforth I was not able to generate test case for activity diagram.

     Kindly let us know how to generate automated test cases from the activity diagram.  
« Last Edit: March 13, 2015, 04:46:49 pm by prgovind »

Gary

  • EA User
  • **
  • Posts: 84
  • Karma: +1/-0
    • View Profile
Re: How to generate test cases from  activity diag
« Reply #1 on: March 19, 2015, 11:00:31 pm »
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.

Now you have the activity diagram in the use case scenario you can generate an external test case with the steps in.

Gary