Before implementing a keyword, define the keyword as part of a keyword-driven test.
To implement a keyword for reuse in keyword-driven tests:
-
Open a keyword-driven test that includes the keyword that you want to implement.
-
In the
Keyword-Driven Test Editor, click
Implement Keyword to the left of the keyword that you want to implement.
The
Implement Keyword dialog box opens.
-
Select which type of asset the new keyword should be:
- To implement the keyword as a .NET method, click
.NET Script. You can add the new keyword to an existing .NET script or create a new .NET script for the keyword by typing a name into
the
Asset Name field.
- To implement the keyword as a keyword sequence, click
Keyword. You cannot record a mid-level keyword, as it is a sequence of other keywords.
- To implement the keyword as a visual test, click
Visual Test.
-
Type a name for the keyword into the
Asset Name field.
-
Optional: To record the keyword, check the
Start Recording check box.
-
Click
OK.
-
Click
Record.
For additional information on recording, see
Recording a Keyword.