123456789101112 |
- h1. YAKINDU Statechart Tools – Testcase 18 - Definition section
- |_. Nr |_. Testname |_. Test Instructions |_. Postconditions |_. Status|
- | 18.1 | Open Digital Watch Example | <ol><li><p>Open _watch.sct_ in folder *<project>/model*.</p></li> | <ol><li><p>No errors are displayed in the definition section at the left side of the main window.</p></li><li><p>The definition section has its inline mode activated.</p></li><li><p>The definition section thus can be dragged within the main window.</p></li><li><p>The definition section has a pin icon at top left.</p></li></ol>| %{color:red}open% |
- | 18.2 | Switch definition section mode | <ol><li><p>Click on the pin icon at the top left of the definition section to pin the definition section.</p></li><li><p>Click on the pin icon at the top right of the pinned definition section.</p></li><li><p>Scroll the definition section up and down.</p></li></ol> | The definition section does not contain any error markers but *4* warnings in the annotation border at the left side of the main window. | %{color:red}open% |
- | 18.3 | Collapse/Expand definition section | <ol><li><p>Click on the triangle at the top left to collapse the pinned definition section.</p></li><li><p>Click on the flipped triangle at the top of the collapsed definition section or on the collapsed border itself to expand it again.</p></li></ol> | <ol><li><p>Before clicking on the triangle, the tooltip "*Hide definition section*" is shown.</p></li><li><p>After clicked, the definition section is collapsed and displayed as vertical border.</p></li><li><p>The vertical border contains the text "*Definition section*" which is fully visible within the border.</p></li><li><p>The triangle to expand the definition section again is flipped to the right.</p></li><li><p>Before expanding again, when hovering over the triangle or the collapsed border, the tooltip "*Show definition section*" is shown.</p></li><li><p>The expanded definition section has the same width as before.</p></li></ol> | %{color:red}open% |
- | 18.4 | Save statechart | <ol><li><p>Close the _watch.sct_ file without saving it.</p></li><li><p>Reopen the statechart and switch the inline mode to the pinned mode.</p></li><li><p>Save the statechart by pressing *Ctrl+S* or by selecting.</p></li><li><p>Close and reopen the statechart again.</p></li></ol> | <ol><li><p>The statechart is closed without errors.</p></li><li><p>After reopening, the statechart is displayed in inlined mode.</p></li><li><p>After the mode is changed, the editor tab is marked as dirty.</p></li><li><p>After pressing *Ctrl+S* the statechart is saved without errors.</p></li><li><p>After save and reopen the statechart is displayed in pinned mode.</p></li><li><p>The editor is not marked as dirty.</p></li></ol> | %{color:red}open% |
- | 18.5 | Resize definition section | <ol><li><p>In pinned mode, grab the right side of the definition section and resize it to an arbitrary width.</p></li><li><p>Close and reopen the statechart.</p></li><li><p>Resize the definition section to a smaller size.</p></li><li><p>Close and reopen the statechart.</p></li></ol>| <ol><li><p>The definition section can be resized to any size.</p></li><li><p>When reopening the statechart, its previous width is restored.</p></li></ol> |%{color:red}open%|
- | 18.6.1 | Editing statechart name | <ol><li><p>In pinned mode, edit the name of the statechart at the top of the definition section.</p></li><li><p>Save the statechart.</p></li></ol> | <ol><li><p>The name of the statechart can be edited.</p></li><li><p>If the name is changed, the editor is marked as dirty.</p></li><li><p>After saving the statechart the new name of the statechart is displayed within the _Project Explorer View_ under */model/watch.sct/NewStatechartName*.</p></li></ol> |%{color:red}open%|
- | 18.6.2 | Editing the statechart specification | <ol><li><p>Add a new arbitrary definition to any interface in the displayed statechart specification.</p></li><li><p>Open the _Properties View_ and place it besides the main window.</p></li></ol> | <ol><li><p>All entered keywords are displayed with syntax highlighting all the time.</p></li><li><p>If the variable definition contains any errors/warnings, they are displayed as error or warning markers at the left side of the definition section and with squiggly lines under the corresponding definition.</p></li><li><p>All changes in the definition section are reflected to the specification that is displayed within the _Properties View_.</p></li></ol> | %{color:red}open% |
- | 18.7 | Rename refactoring | <ol><li><p>In the _watch.sct_ statechart open the context menu by *Right click -> Refactoring -> Rename...* for any declaration.</p></li><li><p>Select any arbitrary name for renaming and press *Ok* or *Enter* on the keyboard.</p></li><li><p>Save the statechart.</p></li><li><p>Switch definition section mode by selecting the pin icon.</p></li></ol> | <ol><li><p>A rename refactoring dialog is opened after context menu entry *Refactoring* has been selected.</p></li><li><p>After *Ok* or *Enter* was pressed, every occurrence (in definition section and in the diagram) of the refactored declaration is updated with the new name.</p></li><li><p>The editor tab is marked as dirty.</p></li><li><p>The statechart is saved and no errors are shown.</p></li><li><p>The renamed declaration has the new name in both definition section modes (inlined and pinned).</p></li></ol>|%{color:red}open%|
|