![]() |
exit iteration - 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: exit iteration (/Thread-exit-iteration) |
exit iteration - stevol - 07-09-2008 Hi, I need an instruction to exit from the current interation of the script, starting with the next row of the datatable. Is it possible? 'ExitIteration' or 'Exit Iteration' is not recognized. Thanks RE: exit iteration - surya_7mar - 07-28-2008 Please be clear on this question. Need more clarity on requirement RE: exit iteration - stevol - 07-28-2008 I have some rows in DataTable, so some iterations when I run the script. I would like to have a command to exit from the current iteration withouth exit from the script, so that after this command the script continues to run with the next row of DataTable. [and I would want that this command is available also within functions/subroutines] thanks RE: exit iteration - Rajashekar Gouda - 07-28-2008 Nice Question. Let me know pls Regards Raj RE: exit iteration - Rajashekar Gouda - 07-31-2008 Can any one give the solution on this pls Regards Raj RE: exit iteration - somisays - 07-31-2008 Hi, You can use the following statements... ExitActionIteration Object.ExitCode Exititeration RE: exit iteration - Rajashekar Gouda - 08-01-2008 Hi Sridhar, It wub be great if u give the solution with example and code(if possible). I tried to use the function which u have given above are not working. I wrote the script as below and it is working fine. Code: Dim currentNo here i m skipping iteration based on values which are present in the row not on the basis of iterations. For expl if row consist value "2" then i m saying to skip that. For for my knowledge shake i wud like to know what are all the functions we have in QTP to skip the iterations. pls give me the answer with example Regards Raj RE: exit iteration - somisays - 08-02-2008 Dear Raj and All, This is the example for ExitTestIteration...Please explore your self according to your needs. 1)First create a column with Name as no in DataTable and then enter five values say 1,2,3,4,5 in each row. Please find the attached Screenshot for this. 2)Just write the following code in expert view.. Code: no = DataTable("no",DtGlobalSheet) File-->settings..>>Run..>>Select Run On All Rows. In this example i am skipping no 2 from the datatable. Regards |