Micro Focus QTP (UFT) Forums
UFT unable to identify Java app objects consistently - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: UFT unable to identify Java app objects consistently (/Thread-UFT-unable-to-identify-Java-app-objects-consistently)



UFT unable to identify Java app objects consistently - lester - 07-11-2018

hi,

Im new to UFT, im try to automate a java awt base apps, when i run the script it stopped in: 



Code:
 JavaWindow("winA").JavaTable("tblA").SelectColumnHeader "ColA"  

said it cannot locate the javatable tblA, I push the debug button, and try to locate the object in objRepository, still no luck, but when i stop the script and back to normal mode, and try again in objRepository, i can locate the object

and when i use "Run from step ..." to start the script at the middle it able to go though and perform the action !

I tried this many time, dont know why UFT cannot locate the object at the first 

pls help

thx
Lester


RE: UFT unable to identify Java app objects consistently - Ankur - 07-12-2018

See if there are any 1) synchronization issues whereby UFT is running too fast for app to load and process info. OR 2) check for dynamic property values in the objects. (but this shouldn't be the case since you say they are being identified on a later run)