You can only record actions for a keyword that already exists in a keyword-driven test, not for a keyword that is completely new.
To record a new keyword-driven test, see
Recording a Keyword-Driven Test.
This functionality is supported only if you are using the Open Agent.
To record the actions for a new keyword:
Open a keyword-driven test that includes the keyword that you want to record.
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.
Click
Yes.
Click
Yes.
The
Recording window opens and
Silk Test Classic starts recording the actions for the keyword.
In the application under test, perform the actions that you want to test. For information about the actions available during recording,
see
Actions Available During Recording.
Click
Stop.
The
Record Actions on Open Agent dialog box opens.
Click
Paste to Editor.
The
Update Files dialog box opens.
Click
Paste script and update window declaration(s).
Click
OK.
The
Record Actions on Open Agent dialog box opens.
Click
Close.
The recorded actions are displayed in the defined
4Test script.