Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flight Selection in Mercury Windows Appln
#5
Solved: 12 Years, 10 Months, 3 Weeks ago
Hi Basanth,
Thanks a bunch. This was what I was asking for.
I used the RO Property for the "items count" in the Winlist. And used that count value in the Random Number as you had mentioned above.

Code:
itemCount = Window("Flight Reservation").Dialog("Flights Table").WinList("From").GetROProperty("items count")

Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select RandomNumber(0, itemCount)

After execution, I am able to see the different random values that it takes, in the Results Window - Step Name - From.Select

But is there any way to observe this result in the QTP window either by using msgbox, print or Debug.
I tried all these, but not able to retrieve the flight selected randomly.

Any help is appreciated.

thanks,
Sumithra
Reply


Messages In This Thread
RE: Flight Selection in Mercury Windows Appln - by sumithra - 08-14-2009, 07:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT 12.53 trial version not recognizing its sample flight application login/password NehaRB 2 4,353 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 3,189 04-01-2016, 05:34 PM
Last Post: vinod123
  Weblist selection diya 11 22,842 06-16-2015, 08:27 PM
Last Post: rajpradeep32
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,811 05-31-2014, 12:00 PM
Last Post: excellentpawan123
  Selection of sub menu in Windows Desktop application Shilpa859 0 2,739 10-17-2013, 06:39 PM
Last Post: Shilpa859

Forum Jump:


Users browsing this thread: 1 Guest(s)