h1(#Test2). Yakindu SCT Testcase 03 - Simulation |_. Nr |_. Testname |_. Test Instructions |_. Postconditions |_. Status| | 3.1 | Run Configuration | Select the TestProject project.
Select *Run->Run Configurations...*
Select Statechart Simulation.
Click on the *New* button (upper left corner).
Click the search Button
Enter Staircase as name.
Choose Staircase.sct as model file (start typing "Sta…" to have matching files shown).
Click on *Apply* button to save settings.
Click on *Run* button to start simulation.
| The simulation is started.The SC Simulation perspective is activated.
State LightOff is highlighted (red).
The Simulation view displays the variable light (value false), the keypress event, and the time event.
| %{color:red}open% | | 3.2 | Change the state | Click on the event keypress in the Declarations View | State LightOn is highlighted (red).The transition from LightOff to LightOn is colored orange.
Variable light is set to true.
After 30 seconds state LightOff and it's incoming transition become highlighted, while LightOn and its incoming transactions become unhighlighted.
Variable light is set to false.
| %{color:red}open% | | 3.3 | Stop the simulation | Click the *Terminate* button in the Debug View to stop the simulation. | Simulation is stopped.No state is highlighted.
The Simulation view is empty.
| %{color:red}open% |