h1. YAKINDU Statechart Tools – Testcase 08 - Genmodel

|_. Nr |_. Testname |_. Test Instructions |_. Postconditions |_. Status|
| 8.1 | Create generator model for Java | <ol><li><p>In the package explorer, select _TestProject_.</p></li><li><p>Select _File → New → Other_.</p></li><li><p>Select _YAKINDU SCT → Code Generator Model_.</p></li><li><p>Click on _Next_.</p></li><li><p>Enter _StaircaseJava.sgen_ as filename.</p></li><li><p>Click on _Next_.</p></li><li><p>Select _YAKINDU SCT Java Code Generator_.</p></li><li><p>Check _Staircase.sct_.</p></li><li><p>Click on _Finish_.</p></li></ol> | <ol><li><p>File _StaircaseJava.sgen_ has been created with initial settings.</p></li><li><p>Folders _src_ and _src-gen_ have been created and populated.</p></li></ol> | %{color:red}open% |
| 8.1.2 | Help integration | <ol><li><p>Hover over the *Outlet* feature.</p></li></ol> | The help text for that feature appears in a popup window. | %{color:red}open% |
| 8.1.3 | Help integration | <ol><li><p>Add the *Debug* feature to the _StaircaseJava.sgen_ file:</p><p>@feature Debug {@<br/>@dumpSexec = true@<br/>@}@</p></li><li><p>Hover over the *Debug* feature.</p></li></ol> | The help text for that feature appears in a popup window. | %{color:red}open% |
| 8.1.4 | Help integration | <ol><li><p>Add the *FunctionInlining* feature to the _StaircaseJava.sgen_ file:</p><p>@feature FunctionInlining {@<br/>@}@</p></li><li><p>Hover over the *FunctionInlining* feature.</p></li></ol> | The help text for that feature appears in a popup window. | %{color:red}open% |
| 8.1.5 | Help integration | <ol><li><p>Add the *GeneralFeatures* feature to the _StaircaseJava.sgen_ file:</p><p>@feature GeneralFeatures {@<br/>@}@</p></li><li><p>Hover over the *GeneralFeatures* feature.</p></li></ol> | The help text for that feature appears in a popup window. | %{color:red}open% |
| 8.1.6 | Help integration | <ol><li><p>Add the *LicenseHeader* feature to the _StaircaseJava.sgen_ file:</p><p>@feature LicenseHeader {@<br/>@licenseText = ""@<br/>@}@</p></li><li><p>Hover over the *LicenseHeader* feature.</p></li></ol> | The help text for that feature appears in a popup window. | %{color:red}open% |
| 8.1.7 | Help integration | <ol><li><p>Add the *Naming* feature to the _StaircaseJava.sgen_ file:</p><p>@feature Naming {@<br/>@basePackage = "my.base.name"@<br/>@implementationSuffix = "mysuffix"@<br/>@}@</p></li><li><p>Hover over the *Naming* feature.</p></li></ol> | The help text for that feature appears in a popup window. | %{color:red}open% |
| 8.1.8 | Help integration | <ol><li><p>Add the *RunnableWrapper* feature to the _StaircaseJava.sgen_ file:</p><p>@feature RunnableWrapper {@<br/>@}@</p></li><li><p>Hover over the *RunnableWrapper* feature.</p></li></ol> | The help text for that feature appears in a popup window. | %{color:red}open% |
| 8.1.9 | Open statechart from generator model | <ol><li><p>Open file _StaircaseJava.sgen_.</p></li><li><p>Hover over the statechart reference, i.e. @Staircase.Staircase@.</p></li><li><p>Press and hold @[Ctrl].</p></li><li><p>Click on the hyperlink.</p></li></ol> | The statechart opens in the statechart editor. | %{color:red}open% |
| 8.2 | Create generator model for C | <ol><li><p>In the package explorer, select _TestProject_.</p></li><li><p>Select _File → New → Other_.</p></li><li><p>Select _YAKINDU SCT → Code Generator Model_.</p></li><li><p>Click on _Next_.</p></li><li><p>Enter _StaircaseC.sgen_ as filename.</p></li><li><p>Click on _Next_.</p></li><li><p>Select _YAKINDU SCT C Code Generator_.</p></li><li><p>Check _Staircase.sct_.</p></li><li><p>Click on _Finish_.</p></li></ol> | <ol><li><p>File _StaircaseC.sgen_ has been created with initial settings.</p></li><li><p>Folders _src_ and _src-gen_ have been created and populated.</p></li></ol> | %{color:red}open% |
| 8.2.1 | Change output folder | <ol><li><p>Open file _StaircaseC.sgen_.</p></li><li><p>Change _targetFolder_ from _src-gen_ to _src-gen-c_.</p></li><li><p>Save the file, e.g. by pressing @[Ctrl+S]@.</p></li></ol> | Folder _src-gen-c_ has been created and populated with with generated code. | %{color:red}open% |
| 8.3 | Create generator model for C++ | <ol><li><p>In the package explorer, select _TestProject_.</p></li><li><p>Select _File → New → Other_.</p></li><li><p>Select _YAKINDU SCT → Code Generator Model_.</p></li><li><p>Click on _Next_.</p></li><li><p>Enter _StaircaseCpp.sgen_ as filename.</p></li><li><p>Click on _Next_.</p></li><li><p>Select _YAKINDU SCT C++ Code Generator_.</p></li><li><p>Check _Staircase.sct_.</p></li><li><p>Click on _Finish_.</p></li></ol> | <ol><li><p>File _StaircaseCpp.sgen_ has been created with initial settings.</p></li><li><p>Folders _src_ and _src-gen_ have been created and populated.</p></li></ol> | %{color:red}open% |
| 8.3.1 | Change output folder | <ol><li><p>Open file _StaircaseCpp.sgen_.</p></li><li><p>Change _targetFolder_ from _src-gen_ to _src-gen-cpp_.</p></li><li><p>Save the file, e.g. by pressing @[Ctrl+S]@.</p></li></ol> | Folder _src-gen-cpp_ has been created and populated with with generated code. | %{color:red}open% |
