Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is the object name a value instead of a name?
#1
Not Solved
Why do some objects in the object repository have the value of the object instead of a name in the object name property? So far I have only seen this occur in display only fields and when the Object Class property is "SwfObject.

The problem, of course, is that I have to assign a more reasonable name manually to use the object in a test and then the name is not maintained from version to version of the code under test.

Is the assignment of the object value to the object name property due to QTP or is this a result of a setting in the tool used to set up the object in Virtual Studio?

If this is a setting that the developer can change or if I could specify QTP to use the swfname from the Description Properties by default, for example, it would make writing tests, so much easier!

From what I have read, the name of the object must be "properly exposed" for the compiler to associate an object name with it.. but the developers tell me they don't know what controls this.

Anyone know how this works?

(I am using QTP ver 10.00 Build 513 on Windows XP).

Thank you,
David
Gainesville, FL. USA
Reply
#2
Not Solved
I am not sure if i have understood your question, but you may want to explore "Object Identification properties" screen on QTP. You can define the object properties based on your custom mandatory and assistive properties. Object Repository would then use your defined properties to store the object.

Does that help??
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)