Editing a Keyword-Driven Test

Note: In Silk4J, you can edit and execute keyword-driven tests that are located in Silk4J, and you can execute keyword-driven tests that are stored in Silk Central. To edit a keyword-driven test, which is stored in Silk Central, open the keyword-driven test in the Keyword-Driven Test Editor and click Edit.

To edit a keyword-driven test:

  1. Open the keyword-driven test in the Keyword-Driven Test Editor.
    1. In the Package Explorer, expand the project in which the keyword-driven test resides.
    2. Expand the Keyword Driven Tests folder.
    3. Double-click the keyword-driven test that you want to edit.
  2. To add a new keyword to the keyword-driven test:
    1. Click into the New Keyword field.
    2. Type a name for the new keyword.
    3. Press Enter.
  3. To edit an existing keyword, click Open Keyword to the left of the keyword.
    Note: Silk Central has the ownership of any keyword that has been created in Silk Central, which means any changes that you make to such keywords are saved in Silk Central, not in Silk4J.
  4. To copy a keyword into the keyword-driven test:
    1. Select the keyword.
      Tip: Use Ctrl+Click or Shift+Click on the row number column to select multiple keywords.
    2. Press Ctrl+C.
    3. Select the row above which you want to insert the keyword.
    4. Press Ctrl+V.
  5. To move a keyword to another location in the keyword-driven test, click on the keyword and drag it to the new location, or:
    1. Select the keyword.
      Tip: Use Ctrl+Click or Shift+Click on the row number column to select multiple keywords.
    2. Press Ctrl+X.
    3. Select the row above which you want to insert the keyword.
    4. Press Ctrl+V.
  6. To remove the keyword from the keyword-driven test, click Delete Keyword to the left of the keyword. The keyword is still available in the Keywords window and you can re-add it to the keyword-driven test at any time.
  7. To save your changes, click File > Save.