Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to write the descriptive programing in Flight Reservation form
#2
Not Solved
Code:
'invokeApplication"C:Program FilesMercury InteractiveQuickTest Professionalsamplesflightappflight4a.exe"
window("text:=Login").Activate
window("text:=Login").winedit("attached text:=Agent Name:").Set "user1"
window("text:=Login").winedit("attached text:=Password:").Set"mercury"
window("text:=Login").WinButton("text:=OK").Click
window("text:=Flight Reservation").Activate
'window("text:=Flight Reservation").winmenu("menuobjtype:=1").Select "File;New Order..."
'window("text:=Flight Reservation").winmenu("menuobjtype:=2").Select "File;Open Order..."
Window("text:=Flight Reservation").winedit("acx_name:=MaskEdBox").Set "11/11/11"
window("text:=Flight Reservation").Type micTab
window("text:=Flight Reservation").WinComboBox("attached text:=Fly From:").Select "Denver"
window("text:=Flight Reservation").Type micTab
window("text:=Flight Reservation").WinComboBox("attached text:=Fly To:").Select "London"
window("text:=Flight Reservation").WinButton("text:=Flight").Click
dialog("regexpwndtitle:=Flights Table").WinButton("text:=OK").Click

'window("text:=Flight Reservation").winmenu("menuobjtype:=2").Select "File;Open Order..."
'window("text:=Flight Reservations").winButton("text:=&Yes").Click
'window("text:=Flight Reservations").winButton("text:=OK").Click
window("text:=Flight Reservation").winedit("window id:=1014").Set "shek"
window("text:=Flight Reservation").winradiobutton("text:=First").Click
window("text:=Flight Reservation"). winButton("text:=&Insert Order").click
'window("text:=Flight Reservations").WinButton("text:=OK").Click
wait(8)
window("text:= Flight Reservation").winbutton("text:= &Delete Order").Click
dialog("text:=Flight Reservations").winbutton("text:= &Yes").Click
'window("text:=Flight Reservation").winmenu("menuobjtype:=1").Select "File;Exit"

here is DP in flight reservations..I'm still working on menu boject property..trying some combinations..if you have any suggestion.Let us all know.

Thanks,
NewQtp
Reply


Messages In This Thread
RE: How to write the descriptive programing in Flight Reservation form - by newqtp - 02-21-2008, 08:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Descriptive programing kedala 1 2,587 10-04-2016, 09:25 PM
Last Post: venkatesh9032
  Clicking command button in accesss form mark_cielos24@yahoo.com 1 3,185 05-07-2013, 10:52 PM
Last Post: agarwl.anurag
  How to write In PDF Form using QTP anukapoor 3 5,371 04-05-2012, 06:00 PM
Last Post: atulparate
  QTP cannot recognize a web form inside SAP QTP_Gaspar 2 4,196 01-13-2012, 12:19 AM
Last Post: QTP_Gaspar
  QTP throws error on web elements when Descriptive programing used. nistalaramesh 20 22,827 10-11-2011, 09:53 AM
Last Post: nistalaramesh

Forum Jump:


Users browsing this thread: 1 Guest(s)