Setting the Base State for a Keyword-Driven Test in Silk Test Workbench

When you execute a keyword-driven test with Silk Test Workbench and the keyword-driven test calls a base state keyword, Silk Test Workbench starts your AUT from the base state.

During the recording of a keyword-driven test, Silk Test Workbench searches in the current project for a base state keyword, which is a keyword for which the IsBaseState property is set to True.

  • If a base state keyword exists in the current project, Silk Test Workbench inserts this keyword as the first keyword of the keyword-driven test.
  • If there is no base state keyword in the project, Silk Test Workbench creates a new base state keyword with the name Start application and inserts it as the first keyword of the keyword-driven test.
To manually mark a keyword, which is implemented as a .NET method, as a base state keyword, add the IsBaseState property to the Keyword attribute, and set the value of the property to True:
<Keyword( "Start application" , IsBaseState:= True )>
Public Sub Start_application()
End Sub

To manually mark a keyword, which is implemented as a visual test, as a base state keyword, open the properties of the <<Start>> step of the visual test and set the Is base state property in the Keywords section to Yes.

Application configurations for keyword-driven tests are stored in the current project. To manage the application configuration, select Tools > Edit Application Configurations in the Silk Test Workbench menu. This opens the Select Project dialog box with all of the projects to which you have access. Select the project and click Edit to edit an application configuration.

During the execution of a keyword-driven test which includes a base state, the application configurations of the project, in which the keyword-driven test is defined, are used.