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
- To create a keyword from one or more steps in a manual
test script:
- 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 (
).
- Select the steps that you want to use in the keyword.
Shift + click to select multiple steps at a time.
- Click the Action Menu beside
the number of a selected step. Then, click Create New Keyword.
- In the New Keyword window, type
the name of the keyword and any tags to associate with it, and then
click OK.
- 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 (

) icon.
- Save the changes by clicking Save at
the top of the page.
- To quickly create a keyword from the whole script, click
the Create a keyword from this script icon
at the top of the page.
- To create and manage keywords with the keyword editor:
- Click . A
new keyword opens in the keyword editor.
- 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.
- 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 .