astah professional logo

Content

Back

Tutorial - [State Transition Table]

Next

Tutorial - [DSM]

[State Transition Path] Generate a TestCase directly from Statemachine Diagram

State Transition Paths help to verify Software Behavior. We'll explain the basic operation to the State Transition Path using a sample Statemachine diagram.

    1. Start Astah Professional and create a Statemachine diagram
    2. Display State Transition Path
    3. Export the State Transition Path to Excel

1. Start Astah Professional and create a Statemachine diagram

Download Astah Professional and install State Transition Path Plug-in (See how to install). To create a Statemachine Diagram, go to [Diagram] - [Statemachine Diagram].

Astah Professional sample Statemachine Diagram

Then draw a Statemachine diagram as figure below.
Astah Professional sample Statemachine Diagram

2. Display State Transition Path

If you have installed State Transition Path Plug-in correctly, [State Transition Path] tab should appear in the bottom pane ust below the Diagram Editor.

Astah Professional State Transition Path1

Click [Update] button to update the State Transition Path.

Astah Professional State Transition Path2

You can specify the number of transitions by choosing from 1 - 4 from its drop-down menu.

Astah Professional State Transition Path3

When you click a path in the State Transition Path View, related models would be highlighted in the diagram above. (Models in Yellow and Lines in red), so that you can easily see where the path specifies in the diagram.

Astah Professional State Transition Path4

Let's generate a Test Case with the 3 times of transitions. So select "3" from its Combo box.

Astah Professional State Transition Path Select Transition number

Now you have a list of 3 pathes with 3 transitions. Let's export it to Excel.

3. Export the State Transition Path to Excel

To export the State Transition Path to Excel, simply specify the number of transitions, and then click "Export to Excel".

Export Astah State Transition Path to Excel

Select the directly where you want it to be exported in [Export] dialog.

Astah Export dialog

You can modify this output and use it as a Test Case which displays the connection and check your models to assure they correctly reflect the software’s true behavior.

Astah State Transition Path Test Case