Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to recognize menu options in dp in qtp
#5
Solved: 10 Years, 9 Months, 3 Weeks ago
@Satyavathi, webapp, Rajashekhar:

Here is a sample recording for your reference. Use VB and ActiveX add-in only, since this is a windows based application.

Normal Recording:
Code:
SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "mercury"
Dialog("Login").WinEdit("Agent Name:").Type  micTab
Dialog("Login").WinEdit("Password:").SetSecure "4791e267c9e855ee42eecb1f216641f320bd96f9"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"
Window("Flight Reservation").WinMenu("Menu").Select "Analysis;Reports..."
Window("Notepad").Close
Window("Flight Reservation").Close

In Descriptive Programming: I have only changed the first line to DP for your understanding. You can change the all the lines and check by yourself.
Code:
SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open"
Dialog("text:=Login", "nativeclass:=#32770").WinEdit( "nativeclass:=Edit", "attached text:=Agent Name:").Set "mercury"
Dialog("Login").WinEdit("Agent Name:").Type  micTab
Dialog("Login").WinEdit("Password:").SetSecure "4791e267c9e855ee42eecb1f216641f320bd96f9"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"
Window("Flight Reservation").WinMenu("Menu").Select "Analysis;Reports..."
Window("Notepad").Close
Window("Flight Reservation").Close

Both codes above are working fine and there is no problem in recognizing the menu options.

@Rajashekhar: A word of advice-- Use analog/low level recording only when you have no other means left to record application. It can create problems with different screen sizes and monitor resolutions.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Messages In This Thread
RE: how to recognize menu options in dp in qtp - by Ankur - 01-19-2008, 05:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to recognize objects in SilverLight application through QTP Guest877 1 2,526 08-03-2018, 08:33 AM
Last Post: Manisha
  When trying to recognize the object in QTP, each object is recognized as “WinObject:S geetasarvadnya 2 3,502 10-28-2015, 12:34 PM
Last Post: vinod123
  QTP does recognize object chadadus 7 4,194 09-05-2014, 01:16 AM
Last Post: chadadus
  QTP 11 and IE9 64bit on Win7&SP1 64bit, QTP does not recognize objects in website jpalos 4 8,561 08-27-2014, 10:11 AM
Last Post: vinod123
  Handling .NET framework menu in webpage using QTP 10 vishnu1067 0 2,212 05-15-2014, 05:30 PM
Last Post: vishnu1067

Forum Jump:


Users browsing this thread: 1 Guest(s)