RuntimeObject Element

Applies to TestComplete 15.46, last modified on January 09, 2023
Description

The RuntimeObject element is used in the description.xml file. The element corresponds to a custom scripting object that will be added to the TestComplete object model. The object will be displayed in the TestComplete Code Completion window.

Parent Elements

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

Child Elements

A RuntimeObject element may contain any number of child Method and Property elements in any combination and optionally one Description element.

Attributes

The element has the following attributes:

Name

Required. Specifies the object name. This name must be a valid identifier for any scripting language supported by TestComplete. The name must contain only letters (A..Z, a..z), digits (0..9) and underscores (_) and must start with a letter. For other information about creating valid object names, see Creating Runtime Objects - Basic Concepts.

Namespace

Optional. Specifies the namespace, to which the object belongs. If this attribute is empty or not specified, TestComplete places the object to the root of the object’s hierarchy and the object can be addressed in scripts by its name like Sys, Log and other top-level objects:

MyObj.MyMethod(...)

If this attribute is specified, then the object can only be addressed via the namespace:

MyNamespace.MyObj.MyMethod(...)

The namespace name must be a valid identifier for all scripting languages supported by TestComplete. To match this rule, the name must start with a letter and include only letters, digits and underscore characters. For more information about creating valid namespace names, see Creating Runtime Objects - Basic Concepts.

Remarks

The child Description element specifies the object’s description, which will be displayed in the Code Completion window.

For information about creating custom scripting objects with script extensions, see Creating Runtime Objects Tutorial.

See Also

Elements Reference
Structure of the Description File
Creating Runtime Objects
Creating Runtime Objects - Basic Concepts
Creating Runtime Objects Tutorial

Highlight search results