Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - What is exact difference between while and do while in QTP ?




291
views
asked marvit September 7, 2014 12:46 AM  

What is exact difference between while and do while in QTP ?


           

1 Answers



 
answered By Dharma   0  

The only difference between do while and do until is that the first one loops as long as the condition is true, while the second one loops as long as the condition is false.

In Javascript you use do {} while() or while() {}. Example:

var cnt = 0;

do {

cnt++;

} while (cnt < 10);

and:

var cnt = 0;

while (cnt < 10) {

cnt++;

}

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert