Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Objects and object repository
#1
Solved: 11 Years, 4 Months ago
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)
Reply
#2
Solved: 11 Years, 4 Months ago
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

Reply
#3
Solved: 11 Years, 4 Months ago
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
Reply
#4
Solved: 11 Years, 4 Months ago
and what are the manadatory properties you have set for text field? check if these properties are changing by chance.

Reply
#5
Solved: 11 Years, 4 Months ago
Hi Saket
Where do i set these mandatory properties ?

Regards

Jan Riis Soerensen
Reply
#6
Solved: 11 Years, 4 Months ago
Go to Tools -> Object Identification & select 'VB' Environment & select 'VBEdit' Test Object class & see which mandatory Properties are given.
Reply
#7
Solved: 11 Years, 4 Months ago
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)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Collecting Objects And Object State At Runtime zunebuggy 3 1,725 11-22-2017, 02:37 PM
Last Post: supputuri
  Do we need object repository?? subhashinid 0 1,972 07-06-2016, 10:07 AM
Last Post: subhashinid
  Object repository losing object properties ishan.mahajan@adp.com 2 3,770 08-20-2015, 11:33 PM
Last Post: ADITI1992
  login object not found in object repository Akram 2 3,125 06-01-2015, 07:47 PM
Last Post: babu123
  object was not found in the Object Repository reynard 0 6,855 03-17-2015, 10:54 PM
Last Post: reynard

Forum Jump:


Users browsing this thread: 1 Guest(s)