Posts: 5
Threads: 1
Joined: Jul 2012
Reputation:
0
07-24-2012, 03:04 PM
How to perform action on objects, If two objects have the almost the same name ?
example :
Object 1 : "EDI New Items"
Object 2 : "Items"
Whenever I ask QTP to perform an action on Object 2 it performs action on Object 1.
Note: The two objects are present in an Oracle Application tree.
Attached Files
Image(s)
Posts: 25
Threads: 1
Joined: May 2012
Reputation:
0
07-24-2012, 03:16 PM
(This post was last modified: 07-24-2012, 03:17 PM by K Gaurav Varshney .)
Hi Prabhakar
Save the objects with different logical name in the object repository then use them in your code.
Regards,
K
Posts: 5
Threads: 1
Joined: Jul 2012
Reputation:
0
07-24-2012, 05:34 PM
Hi Gaurav Varshney
Even if I change the logical names Same issue occurs, Since it is in a tree format.
Posts: 25
Threads: 1
Joined: May 2012
Reputation:
0
07-24-2012, 06:24 PM
Can you pls share the object spy screenshots.
Posts: 5
Threads: 1
Joined: Jul 2012
Reputation:
0
07-25-2012, 10:40 AM
Hi ,
I have attached the screen shot of object repository. Kindly find it and help me.
Attached Files
Image(s)
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
07-25-2012, 12:25 PM
HI Prabhakar,
If my guess is correct there might be some regular expression used in your script or OR. Checkout for that and turnit off, becareful before doing that. Do the impact analysis. If you want I will help you , to achieve the backward compatibility.
Thanks,
SUpputuri
Posts: 5
Threads: 1
Joined: Jul 2012
Reputation:
0
07-25-2012, 02:30 PM
hi supputuri ,
Ya sure help me out... How to proceed ??..
I am using QTP 11 and an Oracle application with jinitiator in windows 7 OS.
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
07-26-2012, 12:08 PM
Did you checked your code and OR for any regular expressions?
Thanks,
SUpputuri
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
07-26-2012, 03:13 PM
hi Can you share me the screen shot of the Object Spy for "Items" child tree object.
Thanks,
SUpputuri