how to use looping statement - 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 use looping statement (/Thread-how-to-use-looping-statement) |
how to use looping statement - dmvelic083185 - 09-26-2017 Hi, Good day to all, currently using UFT v14 I wanted to loop lines 1-13 using the data table which has 6 rows then after that run lines 14-16 once. What statement would be best to use? currently it runs 6 times login to logout. Thanks in advance for your comments Code: 1. Browser("VMware Service Manager").Page("VMware Service Manager").Link("Log a Call").Click RE: how to use looping statement - Ankur - 09-26-2017 This is a classical UFT quiz/certification question Put login/logout data in global data sheet and rest of the data which needs to be repeated in action sheets. So if you have to login once and then do iteration for 20 times and then logout. Put the login info once in global table, put 20 lines worth of data in action table and then a logout action. |