Objects Object Methods

Applies to TestComplete 14.90, last modified on June 15, 2021

The Objects object contains the following methods:

Method List

Name Description
Add Adds the specified file to the Objects collection and assigns a name to it. Returns True if the file was added successfully; otherwise, it returns False.
Compare Returns True if properties of the specified object and all of its children are identical to the properties stored in the given Objects collection item. Otherwise, it returns False.

Also this method can update the stored property collection with the property values of the specified object.

Contains Returns True if the Objects collection contains the item with the specified name and False otherwise.
ContainsFile Returns True if the Objects collection contains the file with the specified name and False otherwise.
Count Returns the number of items in the Objects collection.
FileNameByIndex Returns the name of the file stored in the Objects collection as an item with the specified index.
FileNameByName Returns the name of the file stored in the Objects collection as an item with the specified name.
FileNamesList Lists the names of files stored in the Objects collection as a string in which individual file names are separated by line breaks (0x13, 0x10) by default.
Items Returns the specified item stored in the Objects collection.
LastError Returns text of the last error generated by the object's methods (for example, "File not found", "Properties are not equal", etc.).
Load Loads all or some particular properties of the specified object with or without its children from the given item stored in the Objects collection.
NameByFileName Returns the item name under which the specified file is stored in the Objects collection.
NameByIndex Returns the name of the item with the index specified in the Objects collection.
NamesList Returns the list that contains the names of items stored in the Objects collection as a string in which individual item names are separated by line breaks (0x13, 0x10) by default.
Remove Removes the specified item from the Objects collection. Returns True if the item was deleted successful and False otherwise.
Save Saves all or some particular properties of the specified object with or without its children to an Objects collection item with the given name.
StoredObject Provides a scripting interface to property collections saved to the Stores project item.
Update Updates a property collection with property values of a tested object.

See Also

Objects Object

Highlight search results