How to capture data from winlist. - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How to capture data from winlist. (/Thread-How-to-capture-data-from-winlist) |
How to capture data from winlist. - neeraj.engg - 05-06-2012 Hi , While practicing with Mercury flight Application i want to retrieve few values which i could not as i am novice to QTP.can anyone help me ? In Flight reservation app , I have selected date , From & To location now when i select flight button i got win list with details of all available flight on that date to particular location. Now how to - 1. Check if there is any flight after 7:00 AM ? 2. How to select Cheapest Flight ? 3. Find out if any flight with AA airline ? 4. Count Number of flights available ? I have tried to do it myself but I could not find any way to capture data from WinTable. Your help will be highly appreciated. Thanks Neeraj RE: How to capture data from winlist. - sree.85 - 08-03-2012 Code: Rcount=Window("Flight Reservation").Dialog("FlightsTable").WinList("From").getroproperty("itemscount") The above code will help u to get the data from winlist view to an array. now u can use regular expressions to filter the data as per your requirement to find the cheapest flight use right() function and move the values into another array and compare the values of the array |