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.

Showing Answers 1 - 18 of 18 Answers

ramupalanki

  • Feb 26th, 2008
 

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

Try this .I think I answered your clarifications

  Was this answer useful?  Yes

QVENCHI

  • Jul 20th, 2011
 

I think we can use recovery scenario.Please correct me if i am wrong.

  Was this answer useful?  Yes

venkat

  • Dec 6th, 2011
 

We cannot use the last row for recovery scenario it will be not executed.

  Was this answer useful?  Yes

venkat

  • Dec 6th, 2011
 

The last row is not executed using Recovery Scenario.

Tell me if I am wrong.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions