Recording a Keyword-Driven Test in Silk Test Workbench

To record a single keyword, see Recording a Keyword.

To record a new keyword-driven test:

  1. Choose File > New.
    The New Asset dialog box opens.
  2. Select Keyword-Driven Test from the asset type list.
  3. Type a name for the new asset into the Asset name field.
  4. Select the project in which the new asset should be included. By default, if a project is active, the new asset is created in the active project.
    Note: To optimally use the functionality that Silk Test Workbench provides, create an individual project for each application that you want to test, except when testing multiple applications in the same test.
  5. Check the Begin Recording check box to start recording immediately.
  6. Click OK.
  7. In the Record Target dialog box, perform the following actions:
    1. In the Asset Type field, select whether the keyword-driven test should be stored as a .NET script or a visual test.
    2. Optional: If you have selected to store the keyword-driven test as a .NET script, specify a name for the .NET script in the Asset Name field. The default name is the name of the last used .NET script.
    3. Click OK.
  8. If you have set an application configuration for the current project and you are testing a web application, the Select Browser dialog box opens:
    1. Select the browser.
    2. Optional: If you want to test a web application on a desktop browser with a predefined browser size, select the browser size from the Browser size list.
      For example, to test a web application on Apple Safari and in a browser window which is as big as the screen of the Apple iPhone 7, select Apple iPhone 7 from the list.
    3. Optional: Select an Orientation for the browser window.
    4. Optional: Click Edit Browser Sizes to specify a new browser size and to select which browser sizes should be shown in the Browser size list.
  9. Depending on the dialog that is open, perform one of the following:
    • In the Select Application dialog box, click OK.
    • In the Select Browser dialog box, click Record.
  10. In the application under test, perform the actions that you want to include in the first keyword.
    For information about the actions available during recording, see Actions Available During Recording.
  11. To specify a name for the keyword, hover the mouse cursor over the keyword name in the Recording window and click Edit.
    Note: Silk Test Workbench automatically adds the keyword Start application to the start of the keyword-driven test. In this keyword, the applications base state is executed to enable the test to replay correctly. For additional information on the base state, see Base State.
  12. Type a name for the keyword into the Keyword name field.
  13. Click OK.
  14. To record the actions for the next keyword, type a name for the new keyword into the New keyword name field and click Add. Silk Test Workbench records any new actions into the new keyword.
  15. Create new keywords and record the actions for the keywords until you have recorded the entire keyword-driven test.
  16. Click Stop. The Record Complete dialog box opens.
Silk Test Workbench creates the new keyword-driven test with all recorded keywords.