TestCoeUs1337
7 months agoOccasional Contributor
How to speed up checking for non-existence of objects in TestComplete?
I'm running into an issue where asserting that an object does NOT exist is taking an unexpectedly long time (~10 seconds) in my TestComplete tests. I've tried using both:
if(!Aliases.restOftheCode.exists)
and
aqObject.CheckProperty("Exists", False)
But they both take around 10.25 seconds to execute.
I suspect this has to do with some global timeout setting, but I'm not sure exactly which one. Is there a way to override this timeout for just a single test case or step, rather than changing it globally for the entire project?
My goal is to make these "object does not exist" checks run much faster, ideally just taking a fraction of a second. Any tips on the optimal way to achieve this would be greatly appreciated!