Performance Issue with using GetPropertyValue and checkProperty with "Exists"
- 4 years ago
wmtan01 :
Hi,
Thank you for your observation and sharing the result.
Considering your result, my opinion and explanation is like this:
-- object.Exists considers timeout setting because TestComplete 'knows' that the code works with the onscreen object from the Object Browser tree;
-- aqObject.GetPropertyValue(object, "Exists") does not consider timeout because .GetPropertyValue() method works with plain COM object and has no reason to wait until the object appears if it does not exist at the moment of call. Note that aqObject.GetPropertyValue() can be used to get a value of some property for any COM object. This is a generic method and it is not bound to onscreen objects from Object Browser tree.
Hope, this explains the situation and corresponds to the implementation.