h1(#Test2). Yakindu SCT Testcase 03 - Simulation


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