I have an oracle tree in my app and qtp recognizes the following
OracleFormWindow("Main Menu").OracleTree("OracleTree").Select " Boxes-> Shipper"
this is fine, however during playback
it opens a dif screen called
Boxes-> Other Shipper"
Ive tried recording both and the only one that seems to work is the other shipper node. It records it correctly and plays it back correctly. Any help would be appreciated.
Any one worked with oracle tree items using descriptive programing?
You can use the index to select the correct value but you have to write a loop until you find the index for the value that you are trying to select which in this case is " Boxes-> Shipper"
I don't build Software but I make them work better, Testing is a Passion
Im not getting an index for the oracle tree, i tried using a little descriptive prog but im fairly new at it so I might be messing it up.
set otr_arr = OracleFormWindow("title:=Main Screen").OracleTree("OracleTree").ChildObjects
msgbox "There are a total of " & otr_arr.count() & " oracle nodes boxes on the screen"
took this from the help doc on QTP.
I don't think you can mix Descriptive Programming with Object Repository references.
If you change the OracleTree("OracleTree") part to use Descriptive Programming as well it should work
Set GCDesc = Description.Create()
Tried the following....
set otr_arr = OracleFormWindow("title:=Main Menu").ChildObjects(GCdesc)
msgbox "There are a total of " & otr_arr.count() & " oracle tree nodes on the screen"
Just got one item returned... Am I doing this correctly?
I have not done much with Descriptive Programming so this might be wrong.
However I think your code is asking for a Child Object of the OracleFormWindow and what you want is a Child Object of the OracleTree
Set otr_arr = OracleFormWindow("title:=Main Menu").OracleTree("micclass:=OracleTree").ChildObj ects