| || |
Object Repository - don\'t want more objects
OK, I'm a newbie but not totally lost when creating objects.
I manually created objects for my "links", which are .gif files. I gave them meaningful names, such as "Finance Link", instead of the default name assigned by QTP.
I put them in a repository called "GlobalRepository" and associated this repository with my test. I changed the settings so that QTP only looks for the HTML tag and file name when creating a new object.
So when I started recording, I expected to see the test use the nicely named object in the associated Global_Repository, e.g. Browser("ABC").Page("ABC").Image("Finance Link").Click.
But QTP created a new object, so that the line reads Browser("ABC").Page("ABC").Image("Stupid Image Name").Click. It's putting this image in the local repository, with the exact same properties of the object that I put in the global repository.
I want fewer, better-named objects, and all in one place.
Why is QTP not re-using the object I created in Global_Repository? It appears to be identical to the object it created while recording.
I have tried changing settings on Page/Frame options without much luck. But maybe I'm overlooking something.
Thanks for your help.
Re: Object Repository - don\'t want more objects
OK, I guess I solved my own problem. not EVERYthing was identical. The ordinal property (create time) on the Frame was not the same, hence the inability of QTP to recognize the global object.
I used the "Update From Application" button to update the frame, and now it sees the object.