Trouble with iterations - 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: Trouble with iterations (/Thread-Trouble-with-iterations) |
Trouble with iterations - VREntropy - 06-10-2009 I am trying to test multiple web stores with QTPor 9.0. Action 1 opens a store and logs in using line one from the global datasheet. Action 2 then needs to run using multiple rows from its local datasheet, but not all of the rows, say rows 1-3. Action 3 then needs to run using some of the rows from its local datasheet. Then a couple of actions that only need to run once. Then another action that needs to run using more than one row from its datasheet. Then the browser is closed and the whole thing starts over with row two in the global datasheet, but the later actions need to run a different set of rows from their local datasheets. Is this even possible? When I try to place a looping statement around a call to an Action it just runs the first local row with each loop. Thoughts? Suggestions? Thanks, Don Rolfson RE: Trouble with iterations - VREntropy - 06-12-2009 So, apparently nooneelse has any clue IF this can even bo done, let alone how? bummer. RE: Trouble with iterations - niranjan - 06-13-2009 I guess you can use " RUN ACTION action name [Iteration name Iteration range] ". But I am not 100% sure. Let me know if it works in your scenario. Example: RunAction ActionName, "26-35" RE: Trouble with iterations - basanth27 - 07-03-2009 Don - This is possible, you will need to juggle with Test Iterations & If loops depending upon your case. The key lies in the way how you want to manage your datatable entries and the looping from there on. |