Before implementing a keyword, define the keyword as part of a keyword-driven test.
This functionality is supported only if you are using the Open Agent.
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
Start Recording dialog box opens.
-
Perform one of the following actions:
- To record the keyword, click
Yes.
- To create an empty keyword method, click
No.
-
In the
Create Keyword Script dialog box, click
Yes to implement the keyword in a new script file, or click
No to add the keyword implementation to an existing script file.
-
If you have set an application configuration for the current project and you are testing a Web application, the
Select Browser dialog box opens. Select the browser on which you want to record the keyword.
You can now record or manually script actions for the keyword.