BASE I Using keywords

There are two ways to assign keywords to certain Modules. These are described in the chapters below.

For further information on Modules with keywords in the TestCase, please refer to the Tosca Commander™ Manual.

Parameter Keyword

If the parameter Keyword is used in the ObjectMap of a Module, the name of the keyword is specified as value, without the file extension .vbs. The keyword that is being used must be stored in the project folder.

The parameter KeyWord must be newly created for Modules that have been manually created. For this purpose, select Create Param from the context menu of the ObjectMap:

Adding parameters to an ObjectMap

Using multiple keywords

The Tosca Base Engine enables to specify multiple keywords under the parameter Keyword of the ObjectMap, separated by semicolons. The keywords are processed in the specified order. It is not recommended processing one TestStep several times. We recommend using either additional keywords for functions that are not part of the execution or processing specific module attributes by using multiple keywords. This ensures that test state information is not overwritten.

  1. Keyword writes log entries: this TestStep is executed under the following conditions: <sysinfos>

  2. Keyword processes all input attributes

  3. Keyword processes all read attributes

  4. Keyword navigates to another position in the test object

Each TestStepValue in the TestStep is processed once. Some keywords process tasks that are not part of the actual test specification.

Embedding keywords

In addition to managing keywords externally via the project folder it is also possible to embed them into Tosca Commander™ by dragging and dropping the .vbsfile to the Module. Further information about referencing files is can be found in chapter "Manage file attachments".

The parameter HasEmbeddedKeyWord is used for embedding keywords. The parameter value switches from True to False, depending on whether a keyword is embedded or not.

If several keywords have been embedded in a Module, only the keyword will be used which has either been added first or is named Keyword.vbs.

A keyword, which has been embedded into a Module, has a higher priority than the Keyword parameter.

Example of an embedded keyword