Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A tricky QTP Question
#1
Not Solved
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)
   
Reply
#2
Not Solved
Hi Prabhakar

Save the objects with different logical name in the object repository then use them in your code.

Regards,
K
Reply
#3
Not Solved
Hi Gaurav Varshney

Even if I change the logical names Same issue occurs, Since it is in a tree format.
Reply
#4
Not Solved
Can you pls share the object spy screenshots.
Reply
#5
Not Solved
Hi ,

I have attached the screen shot of object repository. Kindly find it and help me.


Attached Files Image(s)
   
Reply
#6
Not Solved
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
Reply
#7
Not Solved
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.
Reply
#8
Not Solved
Did you checked your code and OR for any regular expressions?
Thanks,
SUpputuri
Reply
#9
Not Solved
Hi,

This is my code ...

Code:
OracleFormWindow("RMS Start Menu").OracleTree("Contents Of Items").Select "Items"
OracleFormWindow("RMS Start Menu").OracleTree("Selected item := Items").Select "Items"

I don't know to check regexp.

**NOTE: 'Selected item' is the property . Got it by using object spy.
Reply
#10
Not Solved
hi Can you share me the screen shot of the Object Spy for "Items" child tree object.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP/UFT 12.02 recording question .Page vs .SAPPortal LG.Campbell 5 4,969 03-16-2016, 10:10 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)