Create Test Object in Object Repository Manager - 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: Create Test Object in Object Repository Manager (/Thread-Create-Test-Object-in-Object-Repository-Manager) |
Create Test Object in Object Repository Manager - bgold01 - 05-03-2012 I am using QTP with a Terminal Emulator. I use the Navigate and Learn function within the Object Repository Manager to build my test objects for a given screen. Works great except for the field I need. There is a 2 character protected field I want to read, lets say it's AB. When the test object is built, instead of a field name, is shows AB(protected). It has the correct row and column, but I can't use that field in my scripts. When I change the record, it has a different value in it. I tried to create on with a specifice name and the row/column, but it says it can't find it on the application. How can I identify the object to use in a script? Thansk. RE: Create Test Object in Object Repository Manager - Brian.Osborne - 05-04-2012 There are a few things you can and should do to fix this. First TE needs to be set up to ID these fields a diferent way. Do this... Go to Tools - Object Identification. Then to the Environment dropbox choose Terminal Emulator. There should be 3 object classes to work on. Set TeField to Maditory Properties of length, start column and start row. Most mainframes don't have a large amount of feild location and size changes so this should get you done. I have assistive properties set Field id just in case. TeScreen and TeWindow shouldn't need any tweeks. Second thing is DON'T use Navigate and Learn. It places way too much stuff in your Object Repository. Unless you are touching each and every field for your test it's a waste of time and way too much to try to maintain. RE: Create Test Object in Object Repository Manager - bgold01 - 05-08-2012 Thanks for your help. I've tried setting fields up this way, and when I try to find the new field, I get the following error........ The selection object cannot be found in the application. Check that the application is open to the correct page or window and that the objects and it's parents do not have parameterized values. What am I missing? RE: Create Test Object in Object Repository Manager - Brian.Osborne - 10-09-2012 Not sure what's missing, but I think you can get to the bottom of it if you haven't already. When you do get that error, immediately go to the object spy and look at the properties of the object in question. If you truly have ONLY start row and start column used to ID fields, I'm not sure what could be the issue. Did you remove the other test object details? If not, that may be the issue. Turn Ordinal identifier to None and make sure if you are in qtp11 that the Visual relation identifier settings are alson None. |