Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read next datatable rather than login again
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
QTP10
IE8
XP

I apoligize for opening a new thread, as I'm just trying to get this datatable understood. I've created, what I hope will be an easier method to explain:

Now here we loginto the flight reservations system and select a rate. We seem to be bound to perform an next step from here. We can use a datatable with multiple signins & passwords.

Code:
ystemUtil.Run "D:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe","","D:\Program Files\HP\QuickTest Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "cocojava"
Dialog("Login").WinEdit("Password:").Set "mercury"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type "111110"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "London"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "11121   FRA   03:48 PM   LON   04:31 PM   AA     $111.00"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click

What I need to be able to do is signin ONCE. Use an App (like to ck the status of a flight, and then another and another (which would be like in a datatable; but I don't want to logout each time.

I've tried to split this action into two, one for login and one for performing the flight; but as it goes through the datatable it wants to log back in. As I said, that was under the action that I split.

This is getting very discouraging.
Overall-once user logs in I want to stay in the App.
Reply


Messages In This Thread
Read next datatable rather than login again - by cocojava - 10-21-2010, 09:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,174 07-10-2017, 04:20 PM
Last Post: rajeevk7
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 10,729 07-09-2014, 10:43 PM
Last Post: hhamilton
  Unable to Click on Login Button Paurav 1 3,168 07-03-2014, 05:27 AM
Last Post: supputuri
  for help.Run a test to login,and then it didn't jump to another page maosilu 0 2,592 11-01-2013, 01:27 PM
Last Post: maosilu
  Datatable add and datatable import sheet wheelercha 4 33,366 06-14-2012, 04:53 PM
Last Post: Arul

Forum Jump:


Users browsing this thread: 1 Guest(s)