Micro Focus QTP (UFT) Forums
iterations in not all the code - 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: iterations in not all the code (/Thread-iterations-in-not-all-the-code)



iterations in not all the code - stevol - 06-06-2008

Hi,
when i fill n rows of datatable and run the code, i'll have n iterations of all code. Instead I would have n iterations only of a part of the code: is it possible?
(for example a part in which i do login on a website, fixed, made only one time, and then a part of n iterations about other operations)

thanks for every help


RE: iterations in not all the code - somisays - 06-06-2008

Hi,
You can divide the operations in to different actions.
For example create one action for login and different action for other operations and you can set the iterations for that particular action.

Hope it helps you.


RE: iterations in not all the code - stevol - 06-06-2008

that is... if first action is login and second action everything else (and datatable is used only in this second action), when I run the code only second action will do iterations?
Is there any example/link with syntax about use of actions?

thanks a lot


RE: iterations in not all the code - niranjan - 06-07-2008

In such a scenario, use local datatable for parameterization. Also, use action call properties to set the number of iterations to be run.
Please check user guide for more info on Actions.