Poll: Mostly used QTP version
You do not have permission to vote in this poll.
9.2
100.00%
1 100.00%
9.5 and above
0%
0 0%
Total 1 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Independence - Sample Flight Login
#1
Not Solved Cool 
Hi Friends,
I have created three actions.
1 Login
2 Insert Flight order.
3 Exit application
In first action I am parameterizing Login
In second action I am parameterizing Fly From dates.
In third action I am Closing application (Since invoke command is used in Action1)

Code is as shown below:
Code for "Login" Action :

Code:
invokeapplication "D:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"
dialog("Login").WinEdit("Agent Name:").Set DataTable("Uname", dtGlobalSheet)
dialog("Login").WinEdit("Password:").Set DataTable("Pwd", dtGlobalSheet)
dialog("Login").WinButton("OK").Click

Code for "Insert_FlightOrder" Action :

Code:
Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"
Window("Flight Reservation").WinObject("Date of Flight:").Type DataTable("Fight_Date", dtLocalSheet)
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select 0
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "sree"
Window("Flight Reservation").WinRadioButton("First").Set
Window("Flight Reservation").WinEdit("Tickets:").Set "2"
Window("Flight Reservation").WinButton("Insert Order").Click
wait(5)

Code for "Exit" Action :

Code:
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"

My Aim: I will use login details in Action sheet 1 i.e username and password. (For Example; say 2 records)

In action sheet 2, I enter 5 records for login 1 user and 10 records for login 2 user.

Problem: QTP is inserting all the values for both login users.


Hope you guys help me

Thnks in advance
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT 12.53 trial version not recognizing its sample flight application login/password NehaRB 2 3,586 10-07-2016, 06:49 PM
Last Post: pradeep537
  Path of Flight reservation Window is not recorded in HP UFT 12.52 version mailtokopalverma@gmail.com 1 2,389 04-01-2016, 05:34 PM
Last Post: vinod123
  Not able to record Airline Application (sample) bundled with QTP Atul 1 3,527 10-04-2014, 10:57 PM
Last Post: Atul
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 10,692 07-09-2014, 10:43 PM
Last Post: hhamilton
  Unable to Click on Login Button Paurav 1 3,155 07-03-2014, 05:27 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)