Event Element

Applies to TestComplete 14.92, last modified on September 16, 2021
Description

The Event element of the description.xml file is used to define a script routine that is executed by a custom keyword test operation when a certain event occurs. For example, when a new operation instance is created, when the operation is executed during the test run or needs to be set up at design-time, and so on.

Parent Elements

An Event element must be a child of the Events or Column element.

Child Elements

An Event element has no child elements.

Attributes

The element has the following attributes:

Name

Required. The event name. For a full list of events that occur in keyword test operations, see Creating Keyword Test Operations - Events Reference.

Routine

Required. The name of the script routine used as the event handler. This routine must be implemented in the script file specified in the Name attribute of the Script element.

The routine must meet the requirements of the event that it handles. That is, the routine must have the same number of parameters as the event and, if needed, must have an appropriate return value.

See Also

Elements Reference
Structure of the Description File
Creating Keyword Test Operations
Creating Keyword Test Operations Tutorial

Highlight search results