< Previous | Next >

Lesson 4.3: Add keywords to a manual test script

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:

  1. If you have not already done so, log in as the tester (Userid: tony, Password: tony).
  2. 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 (Construction), and click View Test Scripts. From the list, click New Customer Order Test Script to open it.
  3. Using Ctrl+Click, select steps 6 through 8 in the test script.
  4. 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.
  5. In the New Keyword window, type Classics Java Login Keyword in Name, and click OK.
  6. When the Confirmation window opens, click Yes to replace the selected steps in the test script with the keyword.
  7. 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.
< Previous | Next >

Feedback