Posts: 1
Threads: 1
Joined: Jan 2008
Reputation:
0
01-16-2008, 05:11 PM
Hi, I am new to this site, i have a small query, can u help me how to recognize menu options in descriptive programming in qtp. for example in flight reservation window there is File and open order options, what properties are to be use for retreiving them
Posts: 13
Threads: 4
Joined: Jan 2008
Reputation:
0
01-17-2008, 10:08 PM
Hi Ankur,
I have the same problem. I am not able to identify the menu item through normal recording. For example-- I want to clear cache for a application in IE-6. I select Tools from the menu, which is getting recorded. But I am not able to select Internet options under Tools. The script is throwing an error "The Internet Options object was not found in the Object Repository".
Posts: 83
Threads: 16
Joined: Jan 2008
Reputation:
0
01-18-2008, 05:39 PM
(This post was last modified: 01-18-2008, 06:03 PM by Rajashekar Gouda.)
Really very big thanks to asking such good and wonderful question, I am working in automation since 8 month by using QTP 8.2, I have not thought such things. When I saw this question day before yesterday, I just tried in DP but I was unable to find the solution and neglected. Once again I took seriously and since morning I was trying to find the solution, I tried to use the DP in all manner (I used object spy in normal and low level mode) but was getting error “cannot find the ---objects……”.
So finally what I did is I recorded and play bake in normal mode then also I was getting the same error.
Lastly I tried with analog method of “Record Relative to the screen”, and was able to perform some action like clicking “New Order” and “Open Order” menu options of Flight Reservation.
Even just “Record and play” is working for performing some actions like “New Order” and “Open Order” menu options of Flight Reservation.
But it is not possible to create a new folder in favorites in IE unless other wise u use Analog Recording
As of now I feel that is only one question and I want to know how can we do perform the same actions in case of DP.
I guess this is one of the best interview question as I felt.
Please if any body know how can we perform the above said action in DP.. pls share ur view here.
Regards
Raj
rhotur@gmail.com
Posts: 33
Threads: 8
Joined: Jan 2008
Reputation:
0
01-21-2008, 09:14 PM
Hi Rajashekar,
Thanks for your comment, I know that the last 2 lines of the script wont run and the reason is as u said.
now my issue is, how can we write descriptive programming for the line "Window("text:=Flight Reservation").WinMenu("Menu").Select "File;New Order"
I don't know how to use Descriptive programming for WinMenu("Menu").
If possible can you give me some ideas.
Thanks,
Rajesh
Posts: 106
Threads: 28
Joined: Jan 2008
Reputation:
0
01-22-2008, 02:10 AM
I've tried the same code and tried object spy to spy File menu but not able to spy the menu object property instead of it shows Flight reservation properties.
Posts: 83
Threads: 16
Joined: Jan 2008
Reputation:
0
01-22-2008, 01:41 PM
Yes it is not possible to get the menu object property by spy.So i guess it is not possible to do with DP for menu options. If at all want to test the menu options, as i said the Analog recording the one method
Regards
Raj