Creating a Keyword-Driven Test in Silk4NET

Before you can create a keyword-driven test in Silk4NET, you have to select a project.

Use the Keyword-Driven Test Editor to combine new keywords and existing keywords into new keyword-driven tests. New keywords need to be implemented as automated test methods in a later step.

  1. Select the project in which the new test should be included. By default, if a project is active, the new test is created in the active project.
    Note: To optimally use the functionality that Silk4NET provides, create an individual project for each application that you want to test, except when testing multiple applications in the same test.
  2. Click Silk4NET > New Keyword-Driven Test. The Add New Item dialog box opens.
  3. Type a name for the test into the Name field and click Add.
    The Create a Silk4NET Test dialog box opens.
    Note: If a security warning displays, stating that running this text template might potentially harm your computer, check the check box to no longer display this message and click OK to run the template, as the template is required by Silk4NET.
  4. Select Create an empty Silk4NET test. To record a new keyword-driven test, see Recording a Keyword-Driven Test.
  5. Click OK.
    The Keyword-Driven Test Editor opens.
  6. Perform one of the following actions:
    • To add a new keyword, type a name for the keyword into the New Keyword field.
    • To add an existing keyword, expand the list and select the keyword that you want to add.
  7. Press Enter.
  8. Repeat the previous two steps until the test includes all the keywords that you want to execute.
  9. Click File > Save.

Continue with implementing the keywords or with executing the test, if all keywords are already implemented.