Silk4J: How can Keyword-Driven Tests be Grouped in Eclipse, so they can be executed together?
There is currently no built-in support for Grouping multiple Keyword-Driven Tests, so they can be executed together as a suite. This type of functionality has been requested by a number of SilkTest users, and will be considered for implementation in a future release.
In the meantime it is possible to use the 'Launch Group' feature of the Eclipse IDE to accomplish this. This functionality is not available by default, and will need to be enabled by installing the 'C/C++ Remote Launch' feature:
1. Launch Eclipse and select 'Help > Install New Software' from the menubar.
2. On the 'Install Dialog' click the dropdown button on the 'Work With' field, and select the option 'Neon - http://download.eclipse.org/releases/neon' from the list.
*If this option is not available please enter the full url manually.
When the available software packages have loaded you should find 'C/C++ Remote Launch' within the 'Progamming Languages' node. Enable this option and step through the wizard to install the package:
Once the installation is complete you can configure 'Launch Groups' by performing the following steps:
i. Select 'Run > Run Configurations'.
ii. On the 'Run Configurations' dialog, right-click 'Launch Group' from the panel on the left and select 'New':
iii. Click 'Add' - expand the 'Keyword-Driven Test' node and select a test from the list.
* It is important to select 'Wait until terminated' from the 'Post Launch action' dropdown list, so that the tests are launched one after the other and not in parallel:
iv. Repeat this process for each Keyword-Driven Test that you wish to add to the Launch Group:
v. The Launch Group can be executed directly from the 'Run Configurations' dialog, or from the Eclipse IDE by selecting the 'Launch Group' from the 'Run' button dropdown list:
* The same general approach can be used to Group standard Silk4J/JUnit tests, so that they can be executed together. Existing 'Launch Groups' can also be added as children of other Launch Groups; providing a great deal of flexibility over how you group and deploy your automated tests in the Eclipse IDE.