Forum Discussion

pravin_k99's avatar
pravin_k99
Contributor
12 years ago

DEFECT in TC 9.30 - WaitProperty Waits untill the timeout even if the property has achieved desired value

- Add a WaitProperty Action for Exists Property and provide a timeout of lets say 60 Seconds

- Run the test so that it starts on some other operation and the next statement is our WaitProperty Action.



You will note that, even if our object already exists in the Object Browser, TC will still wait fr 60 seconds.



Very Annoying, I dont want to change all my 10000 tests for this single defect.



Pravin
  • There are other, better Wait commands to check for an object's existence.



    I can't see how WaitProperty("Exists", true, 60) could make sense or ever work.
  • Hello Smartbear Team,



    Are you looking at fixing this defect any soon?



    Pravin
  • maximojo's avatar
    maximojo
    Frequent Contributor
    Can you post your script? I'm curious as to what it looks like.



    Why are you waiting for the "Exists" property?
  • maximojo's avatar
    maximojo
    Frequent Contributor
    Normally you would just have:



    Aliases.IEXPLORE.myAlias.Exists



    and wait the default timeout out.



    you can even change the default timeout at runtime if you want it to be faster/slower for a particular comparison:



    Options.Run.Timeout = 500



    and then reset it back to the default afterward.



    or else



    Aliases.IEXPLORE.WaitAliasChild("myAlias", 1000);
  • hlalumiere's avatar
    hlalumiere
    Regular Contributor
    The oddball example should probably not be swept aside, as this was a known issue in a few earlier releases. It's not improbable that the previous fix might have been inadvertantly reverted, or did not fix the entire problem originally.

  • Hi Pravin,


     


    I've checked the WaitProperty method in TestComplete 9.30. It works as expected - pauses the test execution only if the current value of the property isn't equal to the needed one. Can you post here the sample you are using?