Creating keywords

Keywords are small, reusable test scripts. You can create keywords in two ways: by dragging the steps of a manual test script to the Keyword View, or by using the keyword editor.

Procedure

  1. To create a keyword from one or more steps in a manual test script:
    1. From an open manual test script, open the editor by clicking text or white space in the Manual Steps area. On the editor toolbar, click the Show Keyword View icon (Keyword).
    2. Select the steps that you want to use in the keyword. Shift + click to select multiple steps at a time.
    3. Click the Action Menu beside the number of a selected step. Then, click Create New Keyword.
    4. In the New Keyword window, type the name of the keyword and any tags to associate with it, and then click OK.
    5. If you want to replace the selected steps with the new keyword, when you are prompted to do so, click Yes; otherwise, click No.
      Remember: When a keyword is added to a script, it is marked with the Keyword (Keyword) icon.
    6. Save the changes by clicking Save at the top of the page.
  2. To quickly create a keyword from the whole script, click the Create a keyword from this script icon at the top of the page.
  3. To create and manage keywords with the keyword editor:
    1. Click Construction > Create Keyword. A new keyword opens in the keyword editor.
    2. Type a name for the new keyword, and then type other information about the keyword, such as the summary, tags, description, and associated scripts. When you create a keyword, you are not required to associate a script with it. You can make that association later. Associate a script with your keyword using a channel to take advantage of the Channels feature. Multiple scripts can be associated with a channel. Each channel, including the None channel, must have a default script.
      Note: When a script is marked as the default on a channel, that script is used even if other scripts are associated with the keyword on the same channel. For example, on Channel X, Script B is the default script. If Script A and Script B are associated with a keyword on Channel X, Script B runs instead of Script A.
    3. When you are finished creating the keyword, click Save.

Results

The new keyword is added to the Keyword View in the manual test script editor, and to the Keywords page, which you can access by clicking Construction > Browse Keywords.


Have a problem or a question? Post it in the Jazz.net forum.