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.
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
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

