Creating keywords

You can create new keywords using one of three methods: by creating new steps in the Manual Test editor, by associating manual test scripts with a keyword, or by dragging steps in a manual test script to the Keyword View.

About this task

Use one of the following procedures to create a new keyword:

Procedure

  1. To create a new keyword using the Manual Test editor:
    1. Point to Construction, (Construction), and click All Keywords.
    2. In the toolbar, click the Create Keyword icon (Create Keywords) to open the New Keyword dialog box.
    3. In the Name field, provide a descriptive name that identifies it as a keyword, such as Login Keyword.
    4. Specify tags to associate with the keywords. Tags are words used for searching purposes.
    5. Click OK. The keyword shell is created.
    6. To open the keyword in the Manual Test editor, click the keyword name in the Associated Script column.
    7. Optional: Provide a description by editing the text, Keyword Implementation.
    8. To begin typing your statements, click Click to add from the text editor. Keywords are small test scripts. Follow the instructions in Creating manual test scripts to create the script steps in the keyword.
    9. When you have finished adding steps, click Save at the top of the page to save the keyword.
  2. To create a keyword by associating the keyword with a manual test script:
    1. Point to Construction, (Construction), and click All Keywords.
    2. In the toolbar, click the Create Keyword icon (Create Keywords) to open the New Keyword dialog box.
    3. In the Name field, provide a descriptive name that identifies it as a keyword, such as Login Keyword.
    4. Specify tags to associate with the keywords. Tags are words used for searching purposes.
    5. Select Associate Existing Manual Test Script, and click OK.
    6. In the New Keyword dialog box, select the test script to associate with the keyword, and click OK.
    7. To open the keyword in the Manual Test editor, click the keyword name in the Associated Script column.
  3. To create a keyword from steps in a manual test script:
    1. From an open manual test script, select the group of steps to be the keyword.
      Tip: To select a group of steps, click the first step in the group. Then Shift+Click the last step in the group.
    2. Drag the selected steps to the Keyword View. The New Keyword dialog box opens.
    3. In the Name field, type the name of the keyword.
    4. Optional: Type tags to associate with the keyword in the Tags field.
    5. Click OK.
    6. If you want to replace the selected steps with the new keyword, click Yes to the confirmation; otherwise, click No.
      Note: When a keyword is added to a script, it is marked with the Keyword (Keyword) icon.
    7. Click Save at the top of the page to save changes.

Results

The keyword is added to the Keyword View in the Manual Test editor.

Feedback