Recording a Keyword in Silk4J

You can only record actions for a keyword that already exists in a keyword-driven test, not for a keyword that is completely new. To record a new keyword-driven test, see Recording a Keyword-Driven Test.
To record the actions for a new keyword:
  1. Open a keyword-driven test that includes the keyword that you want to record.
  2. In the Keyword-Driven Test Editor, click Implement Keyword to the left of the keyword that you want to implement. The Select Keyword Location dialog box opens.
  3. Click Select to select the package and class to which you want to add the keyword implementation.
  4. Optional: Define the package name for the new keyword implementation in the Package field.
  5. Define the class name for the new keyword implementation in the Class field.
  6. Click OK.
  7. If you have set an application configuration for the current project and you are testing a Web application, the Select Browser dialog box opens. Select the browser on which you want to record the keyword.
  8. Click Record.
    The Recording window opens and Silk4J starts recording the actions for the keyword.
  9. In the application under test, perform the actions that you want to test.
    For information about the actions available during recording, see Actions Available During Recording.
  10. Click Stop. The Record Complete dialog box opens.

The recorded actions are displayed in the context of the defined class.