Forum Discussion

wmtan01's avatar
wmtan01
Contributor
4 years ago
Solved

Performance Issue with using GetPropertyValue and checkProperty with "Exists"

Hi,   I'm not sure if someone has already noticed this before but I think it might be worth sharing and asking people about their opinions on it.   So normally we use Property Checkpoints and Get...
  • AlexKaras's avatar
    AlexKaras
    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.