Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Unique Identification of object
#1
Not Solved Rolleyes 

While running my script,I get the following error
"The "Object Type:" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the obj"

How can I add properties for unique identification of same object?
Reply
#2
Not Solved
Open the Onject properties by clicking on '+' sign in the Object repository. Select the properties you want to add and click ok...

Hope this helps
Reply
#3
Not Solved
Yes. I understand that. My confusion is that how I can include that property in my script.For example : If the "attached text or value" is the unique property,How I can include that in my script?
Reply
#4
Not Solved
This happens if two objects in the application has similar properties..

You can use object spy and find another property and use it in your application for QTP to recognize it.

Regards,
Ujwala
Reply
#5
Not Solved Rolleyes 
Hi Ujwala,
Yes.I did that.By Object Spy,I got which is the unique property.But how I can include it in script.
Reply
#6
Not Solved
You can write VBScript to get it done.

If you need further help on this, let us know what you exactly your application is.


Regards,
Ujwala
Reply
#7
Not Solved
My application is based on java swing.
Reply
#8
Not Solved
Post the piece of code here to suggest you with a better answer.

Regards
Ujwala
Reply
#9
Not Solved
Hi,

You can add that unique property in descriptive manner.

Code:
browser("xxx").page("xxx").WebLink("visible:=True,Class Name:=WebLink,Text:=Inbox").Click

Thanks & Regards,
Baba Fakruddin.D
Reply
#10
Not Solved
Hi,

I hope someone will know the solution to solve my problem.

I am also facing same problem.

I would like to tell detail.

The following lines are written, when i had record the step.

Code:
JavaWindow("NetSim - Simulation -").JavaButton("Router_Blue").Click

(This is while choose router icon (button) from tool bar.)

Then, it would be list out of routers.

Now i have click the router icon in the list.

then following line are written.

Code:
JavaWindow("NetSim - Simulation -").JavaButton("Router_Blue_2").Click

While reply the error comes in first line which i have mentioned in above.
Code:
(JavaWindow("NetSim - Simulation -").JavaButton("Router_Blue").Click)

Then i saw "Blue Router" property in object repository.

There "Blue Router" has nothing.

But "Blue Router_2" has some properties like x, y pos, class name, text and etc.

I don't why "Blue Router" doesn't have anything.

And if i change "Blue Router_2" to first line , then its working fine.

Why it's happen.

Like that i have faced so many place.

Please anyone help me what's problem in that? and how to resolve that?

Regards
Charles J
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Enabling Smart Identification for SAP Gui object prasanna.kale5@gmail.com 0 929 12-05-2019, 08:04 PM
Last Post: prasanna.kale5@gmail.com
  Web Object Unique ID Number zunebuggy 0 1,541 07-10-2017, 05:37 PM
Last Post: zunebuggy
  Object identification is taking too much time JACKSPARROW 0 1,691 01-17-2017, 11:08 AM
Last Post: JACKSPARROW
  Object Identification approach sams001 2 2,551 06-29-2016, 02:17 PM
Last Post: Ankesh
  Uft 12 - Identification of Google Chrome Object's Property value as plain text teja2730 0 2,566 02-02-2015, 05:22 PM
Last Post: teja2730

Forum Jump:


Users browsing this thread: 1 Guest(s)