Class Object Methods

Applies to TestComplete 15.20, last modified on January 19, 2022

The object-driven testing (ODT) functionality is deprecated. Do not use it to create new tests. It will be removed from the product in one of the future releases. As an alternative, you can create custom classes in your scripts. For more information, see Alternatives to the ODT functionality.

The Class object contains the following methods:

Method List

Name Description
AddMethod Creates a new method in the class and returns this method as the MethodDeclaration object.
AddProperty Adds a new property to the class and returns this property as the PropertyDeclaration object.
AddPropOfArrayType Adds a new array property to the class and returns this property as the ArrayType object.
AddPropOfClassType Adds a new “class” property to the class and returns this property as the Class object.
DeleteMethod Deletes a method from the specified class.
DeleteProperty Deletes a property from the specified class.

See Also

Class Object

Highlight search results