Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Descriptive Programming in Window Applications.
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,
This is the for flight sample application..

'Invoking the Application
Code:
invokeapplication"C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"

'Loginging to the Application
Code:
Dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set "sridhar"
Dialog("text:=Login").WinEdit("attached text:=Password:").SetSecure "47e2b30da686ac4f243e9c695c64fa76c5931577"
Dialog("text:=Login").WinButton("text:=OK").Click

'Opening a particular order
Code:
window("text:=Flight Reservation").winmenu("menuobjtype:=2").Select "File;Open Order..."
window("text:=Flight Reservation").Dialog("text:=Open Order").Click
Window("text:=Flight Reservation").Dialog("text:=Open Order").WinCheckBox("text:=&Order No.").Set "ON"
Window("text:=Flight Reservation").Dialog("text:=Open Order").WinEdit("window id:=1016").Set "4"
Window("text:=Flight Reservation").Dialog("text:=Open Order").WinButton("text:=OK").Click

So Explore this script according to your needs..

Regards
Sridhar
Reply


Messages In This Thread
RE: Descriptive Programming in Window Applications. - by somisays - 06-05-2008, 12:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Deal with AngularJS Applications with UFT 15 nistalaramesh 0 1,243 07-29-2021, 09:53 PM
Last Post: nistalaramesh
  Dynamic descriptive Programming issue in Terminal Emulator cprasad 1 1,959 04-25-2019, 08:17 PM
Last Post: Ankur
  UFT Tool support with Descriptive programming laks 1 1,798 07-05-2018, 05:31 PM
Last Post: Ankur
  UFT Descriptive Programming objects not identified in a secure & private intranet env bugfinder2 1 1,840 06-07-2017, 01:41 PM
Last Post: Ankur
  UFT descriptive programming Browser("creationtime:=-1") not always working SOUMYADEEP 0 3,094 01-20-2017, 01:53 AM
Last Post: SOUMYADEEP

Forum Jump:


Users browsing this thread: 1 Guest(s)