After you have added keywords to the repository, you can
add them to a new or existing script. Keyword-enabled manual test
scripts can be composed solely of keywords, or they can be a mix of
keywords and manual statements.
To create a keyword-enabled script:
- Open a script by pointing to the Construction icon
(
),
and clicking View Test Scripts. The View
Test Scripts window opens.
- Click Run to view all of the test
scripts in the project or use the View Builder to narrow down the
list. See Viewing existing test scripts in a project for details.
- Click the script to open it in the Manual Testeditor.
- Use the Manual Test editor to add
keywords:
- From the Keyword View, type the
name of the keyword in the text field labeled Type Filter
Text. As you type, the search filters the list of existing
keywords and returns those keywords that contain your search string.
- In the Manual Test editor, position
your cursor at the statement where you want to insert the keyword.
- In the Keyword view, right-click
the keyword, and then click Insert Before or Replace
Statement. The keyword is added to the script and marked
with the Keyword icon (
). Note: You
can also drag keywords from the Keyword View to
the manual test script.
- After adding keywords, click Save at
the top of the page to save the test script.