h1. YAKINDU Statechart Tools – Testcase 02 - Editor |_. Nr |_. Testname |_. Test Instructions |_. Postconditions |_. Status| | 2.1 | Create a Java project |
  1. In the main menu, select _File → New → Project…_.

  2. In the _New_ wizard, select _Java → Java Project_.

  3. Click on _Next_.

  4. Enter @TestProject@ as new project name.

  5. Click on _Finish_ to create the project.

| An new project TestProject is created in the workspace | %{color:red}open% | | 2.2 | Create a statechart |
  1. Press [Ctrl-N] to open the _New_ wizard.

  2. Expand the _YAKINDU SCT_ tree entry.

  3. Select _Statechart Model_.

  4. Click on _Next_.

  5. Enter @Staircase.sct@ as file name.

  6. Click on _Finish_ to create the statechart.

| The _Confirm Perspective Switch_ dialog opens, suggesting to switch to the _YAKINDU Modeling_ perspective. | %{color:red}open% | | 2.3 | Complete statechart creating | In the _Confirm Perspective Switch_ dialog, click _Yes_. | | %{color:red}open% | | 2.4 | Open properties view |
  1. Right-click on the state to open the context menu.

  2. Select _Show Properties View_.

| The _properties_ view is opened, displaying the selected state's properties. | %{color:red}open% | | 2.5 | Change state name |
  1. In the _properties_ view, enter *LightOff* as the new _State Name_, overriding *StateA*.

  2. Press @[Tab]@ to change focus.

| The state's name changes to *LightOff*. | %{color:red}open% | | 2.6 | Create a new state |
  1. In the tools palette, click on the _State_ entry.

  2. Click inside the region at the position where you want to insert a new state.

  3. Change the new state's name to *LightOn*.

|