We are testing an GUI with UFT 14.52. For each Popup, Schema, View we have an single Component. I would like to add validations points for each component, so i can validate that the application is in the right state.
For Example: I do have this Popup and an Component which handles the Popup (selecting street, and clicking buttons).
When the Component starts, i want to verify that the Popup is up. With UFT Checkpoints this works flawless by using enabled as identification.
But if i want an verification point at the end (Check if the Popup is closed via enabled) i do get an "object not found exception from uft" as expected, because the given popup is closed. Validing the object is not existing by JavaObject.Exist(5) is not feasible because it will actually wait the timeout and then return the state.
Is there any workaround for this? Is there something similar as javaObject.NonExists(5)? Is this state validation at the end even useful?


If Not javaObject.Exist(5) Thenshould work for your requirement - DaveExistis boolean and tests for both conditions (true = it's there and false = it's not) so there's no such thing as aNonexist- it is essentially the same thing asExistwith a different name. If all you want is to speed things up, maybe reduce the wait to half a second if you're not expecting the object to be present - DaveExistwill return either once the object is found or after the timeout elapses (whichever comes first) if you want to check if the object exists without waiting just pass0as the timeout. As @Dave said, there's no logical need forNotExist. Perhaps we've misunderstood the question, if so please try to clarify. - MottiExist(0)and leave it in case it helps someone in the future. - Motti