Posts: 5
Threads: 1
Joined: Jan 2008
Reputation:
0
01-12-2008, 08:34 AM
I have scripts which keeps giving run errors saying the object' parent properties does not match with what is displayed in the application. Meanwhile, Im able to view all these properties in the object repository manager.can somebody help if there is a special way to go around this.
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
01-12-2008, 11:39 AM
Make use of object spy and compare the recorded properties of that particular object with the one you get from spy.
Posts: 5
Threads: 1
Joined: Jan 2008
Reputation:
0
01-12-2008, 07:36 PM
Hi Ankur, Thanks for the reply. I do use the object spy to compare the properties and they are exactly the same, when I view it in the object repository,its also the same but running the script always give me an error for those objects.
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
01-12-2008, 08:59 PM
You mean to say that properties as well as their values are matching on both the places? and still its giving the said error message, bit strange!
Can you let us know the exact error message you are getting? If possible paste the message here.
Posts: 5
Threads: 1
Joined: Jan 2008
Reputation:
0
01-13-2008, 04:18 AM
Yes Ankur, they exactly match in both places, im wondering if Im not doing something right. I have that particular item in almost all my scripts and they all give me the same error. I want to know if there is a special way to keep object properties in the repository.
I also have another issue with URL parameterization. I want to run my scripts in two different URLs,is there anyway I can put this in the script without using the data table?
NB Im not sure if the attachment is uploaded but if it doesnt,i ll load it again
Posts: 5
Threads: 1
Joined: Jan 2008
Reputation:
0
01-13-2008, 04:23 AM
Cannot identify the specified item of the wlw-select_key:{actionForm.bus object. Confirm that
The specified item is included in the object’s item collection.
Posts: 5
Threads: 1
Joined: Jan 2008
Reputation:
0
01-14-2008, 12:36 AM
My attachment is unable to be uploaded.
Posts: 1
Threads: 0
Joined: Nov 2009
Reputation:
0
11-04-2009, 04:05 AM
Hi Ankur,
I am trying to understand OR properties and way it recognize the objects.
Created one application with 2 buttons, both buttons are same position and same name and same class also.
When I read that objects both button properties Text, Native Class and Enabled are same.
So it has to recognize on the basis of ordinal identifier location.
Because I put both buttons are same location so ordinal identifier also same.
But when I click 'Highlight in application' it is showing correctly...
My query is on what basis it is recognizing the objects when both properties are same and ordinal identifier is same and smart identification is off.
Any idea? How and Why it is recongnizing correctly?
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
11-04-2009, 10:33 AM
qtp must have to identify atleast one unique property in order to recognise the object uniquely.
the way QTP works is -it recognize all objects in the AUT, using the set of mandatory properties that it stores. If itis not able to recognize the objects using the set of mandatory properties it uses assistive properties. Incase the assistive properties are also not enough to uniquely identify an object QTP uses the ordinal identifiers ie -index, location and time of creation of the object. If all this fails QTP resorts to the smart identification mechanism.
For your scenario my question will be - how did you add the two objects which are at the same location in OR? I am asking this because QTP will identify the object the way it has learned the object.
makes sense?