DesignTimeAction Element

Applies to TestComplete 15.70, last modified on December 17, 2024
Description

The DesignTimeAction element is used in the description.xml file. The element corresponds to a custom action that will work at design time. When installing script extensions, TestComplete adds these actions to the Tools toolbar.

Parent Elements

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

Child Elements

A DesignTimeAction 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 Tools 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 only specify the file name and extension (without path). The size must be 16×16; with the 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 in TestComplete.

The specified routine must exist in the script file, which 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 perform the desired operations. For detailed information, see Creating Custom Actions. For an example of creating a design-time action, see Creating Actions Tutorial.

See Also

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

Highlight search results