Grouping Keywords

To better structure the keywords in a library, you can group them.

This topic shows how you can add a keyword to a specific group These group names are also used by Silk Central and your keywords are grouped accordingly.

To add a keyword to a specific group:

  1. Open the implementation of the keyword.
    1. Open the project in which the keyword is implemented.
    2. Open the Keywords window.
    3. In the Keywords window, select the keyword.
    4. Click Go to implementation.
  2. To add all methods in a class to the keyword group, add the keyword group before the start of the class. For example, to add the group calculator to the keywords, type:
    // VB .NET code
    <KeywordGroup("Calculator")>
    // C# code
    [KeywordGroup("Calculator")]
In the Keywords window, the displayed keyword name now includes the group. For example, the keyword Addition in the group Calculator is displayed as Calculator.Addition.