How to write QTP script to exit from loop? suppose I am using parametize functionality and in data table there is 3 password corresponding 3 username and second pasword is wrong. Now I want to exit after completion of second iteration and continue with third iteration.
Total Answers and Comments: 3
Last Update: February 28, 2008 Asked by: Ravi kumar
RE: How to write QTP script to exit from loop? suppose I am using parametize functionality and in data table there is 3 password corresponding 3 username and second pasword is wrong. Now I want to exit after completion of second iteration and continue wit
These is no seperate command to exit the current iteration and continue with third iteration.But you can do one thing to get out of this problem.
Keep one IF loop in that FOR loop.Make sure that if the IF condition false control should navigate to end of FOR loop
RE: How to write QTP script to exit from loop? suppose I am using parametize functionality and in data table there is 3 password corresponding 3 username and second pasword is wrong. Now I want to exit after completion of second iteration and continue wit
Hi
you can use Exit For to come from that loop whenever wrong data is given and continue for furthe data. I hope u got the answer.