Micro Focus QTP (UFT) Forums
How to write the descriptive programing in Flight Reservation form - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to write the descriptive programing in Flight Reservation form (/Thread-How-to-write-the-descriptive-programing-in-Flight-Reservation-form)



How to write the descriptive programing in Flight Reservation form - rajaselvan.d - 01-23-2008

Hi Ankur
Please give some example for descriptive programming.

1.How to write the DP in flight reservation form.
2.How to write the DP in flight reservation login form.


RE: How to write the descriptive programing in Flight Reservation form - newqtp - 02-21-2008

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