What is exact difference between “while” and “do while” in
QTP ?
Answer Posted / rico
The basic difference is in the time of checking the
condition during execution of loop. In while loop the
condition is checked at the start, if it is true then
statements enclosed in the loop structure are executed ,
otherwise the loop exits and control transfers to the
statements following this loop and this process continues
until the condition becomes false.
As:
While (condition)
{
statement1;
statement2;
.
.
}
Statements following the loop
But in the case of do-while loop condition is checked at
the end of structure (i.e., at least one time the
statements enclosed in this loop structure are executed
before checking the condition)
After executing the loop statements at least once, the loop
condition is checked; if it is true then the loop body is
executed again otherwise loop exits. As:
Do
{
statement1;
statement2;
.
.
}
While (condition)
Statements following the loop
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
What is synchronization? What are the ways you can synchronize?
What does it mean when a check point is in red color? What do you do?
what is supply chain management?
breef description of batch testing ?
What are the two types of repositories available, explain them?
What is 'sleep' in sync point?
how to create flat file datasubmission in qtp
write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script
How will you report the bug and explain the defect tracking sheet you handled?
What are the properties you would use for identifying a browser and page when using descriptive programming?
how to test Web application using QTP software
What is test object model in quicktest professional?
What is the basic concept of quicktest professional?
hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com
What is text/text area checkpoint?