RecordAction Element

Applies to TestComplete 15.42, last modified on September 08, 2022
Description

The RecordAction element is used in the description.xml file. The element corresponds to a custom action that will work during test recording. When installing script extensions, TestComplete adds these actions to the Recording toolbar.

Parent Elements

A RecordAction element must be a child of the Script element.

Child Elements

A RecordAction element does not have child elements.

Attributes

The element has the following attributes:

Name

Required. Specifies the action name. This name is used as the title of the item that will be added to the Recording toolbar of TestComplete.

Icon

Optional. Specifies the name of the BMP or PNG file that contains the icon of the action. The file must be in the same package, in which the description file is located, so you should specify only the file name and extension (without path). The size must be 16×16; 24-bit or lower color depth. The color of the leftmost-bottom pixel is treated as transparent.

If the Icon attribute is not specified, the toolbar item corresponding to the action will only display the action name.

Routine

Required. Specifies the scripting routine that will be executed when a user selects the action from the Recording toolbar.

The specified routine must exist in the script file that is specified by the Name attribute of the parent Script element.

The routine should not use any parameters.

Remarks

The action’s script routine may display a form asking the user to input some values. It may also use specific scripting objects to generate script statements and insert them into the recorded script. For detailed information, see Creating Custom Actions. For an example of creating a record-time action, see Creating Actions Tutorial.

See Also

Elements Reference
Structure of the Description File
Creating Custom Actions
Creating Actions Tutorial

Highlight search results