To record a single keyword, see
Recording a Keyword.
To record a new keyword-driven test:
-
Choose
.
The
New Asset dialog box opens.
-
Select
Keyword-Driven Test from the asset type list.
-
Type a name for the new
asset into the
Asset name field.
-
Select the project in which the new
asset should be included.
By default, if a project is active, the new
asset is created in the active project.
Note: To optimally use the functionality that
Silk Test Workbench provides, create an individual project for each application that you want to test, except when testing multiple applications
in the same test.
-
Check the
Begin Recording check box to start recording immediately.
-
Click
OK.
-
In the
Record Target dialog box, perform the following actions:
-
In the
Asset Type field, select whether the keyword-driven test should be stored as a .NET script or a visual test.
-
Optional: If you have selected to store the keyword-driven test as a .NET script, specify a name for the .NET script in the
Asset Name field.
The default name is the name of the last used .NET script.
-
Click
OK.
-
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.
-
Optional:
If you want to test a web application on a desktop browser with a predefined browser size, select the browser size from the
Browser size list.
For example, to test a web application on
Apple Safari and in a browser window which is as big as the screen of the Apple iPhone 7, select
Apple iPhone 7 from the list.
-
Optional:
Select an
Orientation for the browser window.
-
Optional: Click
Edit Browser Sizes to specify a new browser size and to select which browser sizes should be shown in the
Browser size list.
-
Depending on the dialog that is open, perform one of the following:
- In the
Select Application dialog box, click
OK.
- In the
Select Browser dialog box, click
Record.
-
In the application under test, perform the actions that you want to include in the first keyword.
For information about the actions available during recording,
see
Actions Available During Recording.
-
To specify a name for the keyword, hover the mouse cursor over the keyword name in the
Recording window and click
Edit.
Note: Silk Test Workbench automatically adds the keyword
Start application to the start of the keyword-driven test. In this keyword, the applications base state is executed to enable the test to replay
correctly. For additional information on the base state, see
Base State.
-
Type a name for the keyword into the
Keyword name field.
-
Click
OK.
-
To record the actions for the next keyword, type a name for the new keyword into the
New keyword name field and click
Add.
Silk Test Workbench records any new actions into the new keyword.
-
Create new keywords and record the actions for the keywords until you have recorded the entire keyword-driven test.
-
Click
Stop.
The
Record Complete dialog box opens.
Silk Test Workbench creates the new keyword-driven test with all recorded keywords.