In the previous lesson, you edited the test script, New
Customer Order Test Script, by adding test data to a statement. In
this lesson, you continue as the tester to create and add a keyword.
A keyword is any statement or group of statements that you
can reuse in other test scripts. When a keyword is modified, all scripts
that are associated with that keyword are updated automatically.
To use keywords in manual test scripts:
- If you have not already done so, log in as the tester (Userid: tony, Password: tony).
- Return to the New Customer Order Test Script by clicking
the tab. If you do not already have the test script open, point to Construction (
), and click View
Test Scripts. From the list, click New Customer
Order Test Script to open it.
- Using Ctrl+Click, select steps 6 through 8 in the test
script.
- Using the mouse, drag the selected steps to the Keyword
View.
Note: You might need to expand the Keyword View by
clicking the arrows in the heading.
- In the New Keyword window, type Classics Java
Login Keyword in Name, and click OK.
- When the Confirmation window opens,
click Yes to replace the selected steps in
the test script with the keyword.
- Save the test script.
The keyword is created and takes the place of the selected
steps.
Note: When you edit a keyword in the All Keywords page, all test scripts that use the keyword are updated.
In the next lesson, you continue as the tester and run a
test execution record.