PropValueSet Object

Applies to TestComplete 14.60, last modified on April 22, 2021

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.

Description

The ODT project item includes specific means for walking down the object hierarchy and processing objects at each level of the hierarchy. For more information, see Controlling Object-Driven Tests. It also includes certain means for including objects to or excluding them from processing during the walk. The PropValueSet object serves as a programming facility for filtering objects that will participate in testing.

To obtain the object in scripts, call the PropValueSet property of a desired Class object. The PropValueSet object that is returned provides a scripting interface to the collection of property values of all objects that are based on this class. TestComplete uses this collection, for instance, to display property values in the Filter dialog that is called from the context menu of the ODT editor. Note that the collection does not include duplicated values. Therefore, if the property Caption of two or more objects holds the string example, the PropValueSet collection for this property will hold one item example.

Members

Example

Using properties of the PropValueSet object you can easily filter the desired objects. See Example.

See Also

Controlling Object-Driven Tests

Highlight search results