GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 78 of 648    Print  
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 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 03, 2006 00:02:47   #1  
dsharma Member Since: February 2006   Contribution: 59    

RE: How to write QTP script to exit from loop? suppose...

If it is a do loop try exit do

If it is a for loop try exit for


 
Is this answer useful? Yes | No
February 26, 2008 02:43:09   #2  
ramupalanki Member Since: December 2007   Contribution: 10    

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

Try this .I think I answered your clarifications

 
Is this answer useful? Yes | No
February 28, 2008 02:27:21   #3  
kavitamurala Member Since: February 2008   Contribution: 5    

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.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape