Micro Focus QTP (UFT) Forums

Full Version: Objects and object repository
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)
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
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
and what are the manadatory properties you have set for text field? check if these properties are changing by chance.
Hi Saket
Where do i set these mandatory properties ?

Regards

Jan Riis Soerensen
Go to Tools -> Object Identification & select 'VB' Environment & select 'VBEdit' Test Object class & see which mandatory Properties are given.
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)