h1. YAKINDU Statechart Tools – Testcase 06 - Expression Language Proposals

|_. Nr |_. Testname |_. Test Instructions |_. Postconditions |_. Status|
| 6.1 | Extend statechart interface | <ol><li><p>Replace the contents of the definition section by the following:</p><p>@namespace Staircase@</p><p>    @internal:@<br/>    @var light : boolean@</p><p>@interface A:@<br/>    @in event keypress@</p><p>@interface B:@<br/>   @in event keypress@</p></li><li><p>Select the transition with the _keypress_ trigger and double-click on the trigger.</p></li><li><p>Replace @keypress@ by @A.keypress@ to qualify the event.</p></li><li><p>Save the model.</p></li></ol> | No error messages are shown. | %{color:red}open% |
| 6.2 | Create another statechart | <ol><li><p>In the _TestProject_, create a new statechart model and name it _OtherStatechart.sct_.</p></li><li><p>Replace the default text in the definition section by the following:</p><p>@namespace OtherStatechart@</p><p>@interface A:@<br/>    @out event e1@<br/>  @in event e2@</p><p>    @interface B:@<br/>  @out event e1@<br/>  @in event e2@</p></li><li><p>Save the model.</p></li></ol> | The new statechart _OtherStatechart_ is created. It does not have any error markers. | %{color:red}open% |
| 6.3 | Test state proposals | <ol><li><p>Select state *LightOff*.</p></li><li><p>Open the _properties_ view.</p></li><li><p>Place the cursor in front of the expression in the state specification and press @[Ctrl+Space]@.</p></li></ol> | Only the following proposals should be displayed:<p>&emsp;- A<br>&emsp;- B<br>&emsp;- [<br>&emsp;- after<br>&emsp;- always<br>&emsp;- entry<br>&emsp;- every<br>&emsp;- exit<br>&emsp;- oncycle <p>If a variable (e.g., _light_) is proposed, selecting it should add an error marker to the transition with the following error message: <p>"Trigger <span>'light'</span> is no event!"</p> </p> | %{color:red}open% |
| 6.4 | Test transitions proposals | Select transition with trigger A.keypress.<p>Open properties view.</p><p>Move cursor in front of A.keypress and press @[Ctrl+Space]@.</p> | Only following proposals should be displayed:<p>&emsp;- A<br>&emsp;- B<br>&emsp;- #<br>&emsp;- /<br>&emsp;- [<br>&emsp;- after<br>&emsp;- always<br>&emsp;- default<br>&emsp;- else<br>&emsp;- every<br>&emsp;- oncycle <p>If a variable (e.g _light_) is proposed, selecting it should add an error marker to the transition with the following error message: <p>"Trigger <span>'light'</span> is no event!"</p> </p> | %{color:red}open% |
| 6.5 | Test transitions proposals | Move cursor behind A.keypress and press @[Ctrl+Space]@. | Only following proposals should be displayed:<p>&emsp;- keypress<br>&emsp;- #<br>&emsp;- ,<br>&emsp;- .<br>&emsp;- /<br>&emsp;- [ | %{color:red}open% |