Micro Focus QTP (UFT) Forums
Objects and object repository - 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: Objects and object repository (/Thread-Objects-and-object-repository)



Objects and object repository - janriis - 01-12-2010

Hi all

I am getting quite frustrated with QTP 9.5 these days. When im running my scripts, they fail on random places due to objects not recognized.

So my question is

Why are my objects sometimes recognized and sometimes not ?
What do i have to do to create shared repositories of my local ones and must i have one repo per action ?

FYI im testing a VB6 application (not web and not .Net)


RE: Objects and object repository - Saket - 01-12-2010

what do you mean when you say - Why are my objects sometimes recognized and sometimes not ?
are theses objects remain same on every run, unless the object properties has not changed QTP will not give you such errors.
observe the properties of your objects.

for your second query - open local OR and export it.

dont be frustrate keep trying, you will definetly learn it Smile


RE: Objects and object repository - janriis - 01-12-2010

Hi Saket

I have a text field called txtSocialSecurityNumber. Sometimes i get the error the "txtSocialSecurityNumber" object was not found in the Object Repository.

This error does not occur on each run but randomly.

I have added the object several times


RE: Objects and object repository - Saket - 01-13-2010

and what are the manadatory properties you have set for text field? check if these properties are changing by chance.


RE: Objects and object repository - janriis - 01-13-2010

Hi Saket
Where do i set these mandatory properties ?

Regards

Jan Riis Soerensen


RE: Objects and object repository - sreekanth chilam - 01-13-2010

Go to Tools -> Object Identification & select 'VB' Environment & select 'VBEdit' Test Object class & see which mandatory Properties are given.


RE: Objects and object repository - janriis - 01-13-2010

Thx. I have added abs_x and abs_y to see if that helps with identification. Enabling smart identification should not be a good idea (or so I've heard)