How to handle iterations for different actions in QTP - 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 handle iterations for different actions in QTP (/Thread-How-to-handle-iterations-for-different-actions-in-QTP) |
How to handle iterations for different actions in QTP - jaganad - 04-23-2010 Hi All, I have a question on handling the iterations and how many times the Actions are run based on the iterations. here is my scenario ,i have a qtp script with 2 actions and i have 5 rows of data in each of the action specific data tables. now i want to run the the first action with the first row of its data and then the second action with the first row of its data. for eg. i have action 1 and action 2 and action1 has 5 rows of data in its datatable and similarly action 2 has 5 rows of data in its own data table and my global data sheet does not have any data. now when i run the script action 1 should be run with the row 1 data and then after that action 2 should be run with the row 1 data (from its own data sheet) and then action 1 again should run with row 2 data and then action 2 with row 2 data and so on how do i handle this situation, also is there a way we can handle the iteration and action calling when both the actions have data in their own data sheets but the number of data rows are different. any help in this is greatly appreciated thanks in advance prasad RE: How to handle iterations for different actions in QTP - basanth27 - 04-28-2010 Prasad, It is fairly possible. Would you mind posting in formatted state the code you have tried so far ? |