What is exact difference between “while” and “do while” in
QTP ?
Answer / 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 |
What is keyword view and Expert view in QTP?
What is a reusable action?
what is the diffrence bw qtp architectute and qtp framework?
hi radhaka plz tell me clearly to handle the earrors with out isng recovery scnerio this is sreenivas from delhi
Function to convert lowercase to uppercase in QTP Pls anybody can give the answer.. Thanks in advance...
What is the difference between Call to Action and Copy Action.?
Hi im new in Testing..can any one plz re-write this code SystemUtil.Run "C:\Program Files\Mozilla Firefox\firefox.exe","","C:\Program Files\Mozilla Firefox","open" ----using for loop(for i=0;i<=10;i++ )
What is iteration?
What is keyword view and Expert view in QTP?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
Write a command for setvalue function in a webedit
What is positive test case and Negative Test case? What is the meaning of Real World Scenario's?